zktx-mcp

Sui MCP

Community zktx-mcp
Updated

Local-first MCP toolkit for Sui DeFi in the AI conversation you already use. Explore assets and market data, review supported transactions, and approve them in your own wallet via WalletConnect. No custody or autonomous execution.

Sui MCP

Sui MCP is a local-first Sui review and evidence layer for AI clients.

It turns a supported Sui action into an internal Review card where you inspectverified transaction facts and a PTB graph, then request approval in your ownwallet. The backend builds or verifies the material, binds the reviewed accountand digest, and uses WalletConnect for a sign-only request. It verifies thewallet's returned bytes and signature before one submission to Sui mainnet.

The AI and card never receive executable transaction bytes or signatures.Neither a review nor a wallet connection is standing transaction permission.Only an explicit user action and that transaction's wallet approval authorizethe request. Lost replies are resolved by reading the known digest; they do notcause another signing or submission request. Request failures and unknownoutcomes are separate from independently observed chain success/failure.

Account, Receipt and Chart cards provide read-only evidence independently ofsigning. Connect and Review also run inside the MCP host. Settings currentlyuses a local token page. Human-readable review is not a guarantee of safety orof complete interpretation of every transaction detail; the raw PTB structureand addresses remain inspectable.

Users can ask ordinary questions:

  • "Can I cover a 1000 dollar payment with my assets?"
  • "How much are my USD-denominated assets together?"
  • "What is the shortfall?"

This document describes @zktx.io/[email protected]. Confirm that version ispublished before using npm installation commands. For a local build, followDeveloper Checkout Setup.

Product Scope in Two Layers

  • Implemented: Sui mainnet read evidence, non-signable external proposal review, and account-bound DeepBook swap review using protocol-agnostic adapters. Five internal cards use the same SQLite state and permission model. The backend verifies stored material, ownership, quote/policy provenance, human-readable facts, simulation and PTB evidence before an explicit user request. WalletConnect carries bytes only between the backend and wallet; ordinary MCP responses expose facts, request status and observed execution results. Settings remains a local token page; an internal Settings card is not implemented.
  • Never (permanently unsupported at every layer): no private-key custody, no MCP or AI autonomous execution, no forwarding of opaque external transaction bytes to a wallet, no silent settlement-token or route choice, no fiat cash-out, no P&L, no peg guarantee.

DeepBook provides the current scoped Sui conversion, price, and orderbookevidence through the shared protocol adapter contracts. Wallet and Sui balance readsdescribe held assets. They do not define the whole product.

Sui MCP does not custody funds, hold private keys, or autonomously tradeon behalf of users.By current design, it does not rank venues, choose routes, make best-pricerecommendations, or silently choose settlement tokens for users.

Account-bound transaction building, signing requests and chain observation stayin the local backend. The Review card displays evidence and current permittedactions. Public review JSON, model-facing card data and backups never contain transactionbytes, signatures, SDK keys or signing permission. Reopening a card reads itsstored state and never replays a financial request.

The current release flow is:

The user states an intent in natural language.
Sui MCP resolves the supported Sui mainnet evidence surface.
The AI answers only from returned evidence and boundaries.
Supported swap transaction material build is an account-bound review step, not
part of the natural-language intent evidence answer.

The current release implements intent evidence for supported Sui mainnet reads.It can also create a read-only, non-signable local review session from astructured external payment or Sui action proposal. External proposal ingestiondoes not trust external transaction material or send anything for wallet signing.

For setup, see docs/MCP_SETUP.md.For the MCP API reference, see docs/MCP_TOOLS.md.For the AI-client answer playbook, see docs/AGENT_BEHAVIOR.md.For manual maintainer and developer utilities, see docs/UTILITY_INDEX.md.

User-question flows for USD-denominated coverage, balance totals, and shortfall answers live in docs/AGENT_BEHAVIOR.md. The response fields for those answers live in docs/MCP_TOOLS.md.

What Works Today

The current release can run as a local stdio MCP server and expose mainnet Sui DeFi evidence:

  • wallet balances with verified display units;
  • coin-balance classification;
  • USD-denominated settlement asset groups derived from pinned DeepBook SDK registry metadata;
  • intent evidence with response summaries for natural-language USD-denominated payment coverage, balance-total, and shortfall questions;
  • DeepBook pools, tokens, mid price, orderbook context, raw quotes, display-amount quotes, and account inventory;
  • user-requested bounded Sui transaction digest lookup, account activity scans, sent-function activity scans with known-wallet-only persistence, and stored normalized activity summaries;
  • read-only external proposal review sessions that display proposed action, asset flow, recipient or target, freshness, missing evidence, user choices, unsupported claims, and non-signable reason;
  • local Sui MCP review evidence and review-session status reads;
  • account-bound DeepBook review with verified material, digest, ownership, policy, human-readable facts, simulation and PTB visualization, followed by explicit card selection and wallet approval through the backend;
  • separately recorded request state and chain success/failure, shown in the Review card and available through ordinary reads;
  • a Receipt card for server-read facts about any transaction digest, independent of signing.

It also includes:

  • a local review server bound to 127.0.0.1;
  • a local SQLite store for active account read context and review evidence;
  • MCP output checks that reject forbidden executable, signing, token, seed, andkey-material field names from responses.

Screens

Wallet connection. Connect one Sui mainnet wallet and use one of its approvedaddresses. A manage card shows Connect wallet when no connection is active;opening it alone does not pair. A connect-intent card starts pairing after itsView confirms permission and current state. Each disconnection requires theuser to confirm its exact target. Connection is not transaction approval.

Review and result. The internal Review card automatically prepares and renews verified conditions for one selected wallet/account. Users inspect its transaction graph, amounts and costs, then choose Request wallet approval and approve in their wallet. One wallet connection is used at a time; choose among its approved addresses when needed. Conflicting saved connections must be resolved through targeted disconnection. Failed preparation has an explicit retry. Receipt and completed Review show the executed transaction graph, actual asset changes and net network fee. Supplementary facts are in one Details slide; earlier estimates in Review remain distinct from actual chain results. Missing graph or receipt data is marked unavailable. Cards use a single document layout without nested card panels.

DeepBook USDC chart. ui.open_chart opens an internal MCP Apps card withofficial DeepBookV3 Indexer candles and volume for one selected USDC pool.The saved result shows the selected pair, interval, UTC period and source time. Limited and empty results are identified.

Current Limits

Not Implemented

External proposal execution is not implemented. Further local analysis viewsbeyond the current inline review receipt and internal Receipt card arenot implemented. Transaction material review, backend WalletConnect requests under user control,signature verification, single submission and independent receipt observationare implemented for the account-bound DeepBook swap reviewthrough a plan-factory registry.

External proposal ingestion is implemented only for read-only local reviewsessions. It accepts structured proposal facts, rejects forbidden executable orsigning fields, recognized Sui private-key strings, valid English BIP39mnemonic phrases, obvious sensitive markers, and suspicious raw secret-likepayloads before storage, and records why the review is non-signable.

A blocked review lacks required evidence for that session. Only a completeTransactionReviewData binds human-readable facts and simulation to the exactreviewed digest. This is pre-signing evidence, not authority or guaranteedexecution. The backend checks returned bytes and the selected account'ssignature before submitting. See the adapter contract.

Fiat cash-out, P&L, tax, and cost-basis support are not part of the current release.

Permanent Safety and Correctness Boundaries

These are product boundaries and must not be relaxed by ordinary feature work:

  • Sui MCP does not custody funds, hold private keys, or autonomously trade.
  • It does not treat USDC, USDT, or any USD-denominated settlement asset as fiatUSD, a bank cash-out amount, or a USDC/USD peg guarantee.
  • It does not turn quote-only conversion candidates into payment coverage, shortfall evidence, funding readiness, payment execution readiness, or signing readiness.

Out of Scope by Current Design

These product behaviors are out of scope in the current release by design:

  • It does not silently choose USDC, USDT, or another settlement token for auser. It can report supported settlement asset groups and can use a settlementtoken only when the user selected it explicitly.
  • It does not rank venues, choose routes, or make best-price recommendations.

Quote Response Limits

Quote tools such as read.quote_deepbook_action andread.quote_deepbook_display_amount return scoped quote facts and raw quoteevidence only.

Their semantics mark quote output as price evidence, not payment coverage or shortfall evidence. Coverage and shortfall answers come from read.preview_intent_evidence.responseSummary.

For quote responses alone, these conclusions are unsupported:

  • payment coverage is not available;
  • shortfall contribution is not available;
  • route-dependent payment support is not available;
  • final min-out values are not available;
  • route recommendations are not available;
  • venue comparisons are not available;
  • effective-price claims are not available;
  • price-impact calculations are not available;
  • quote-vs-mid slippage is not available;
  • fiat cash-out estimates are not available;
  • external market lookups are not available;
  • USDC/USD peg assumptions are not available;
  • P&L is not available;
  • cost basis is not available;
  • actionable signing data is not available.

Install

Use the checkout setup above for unpublished changes. A local commit or successfulpackage check does not publish a release.

This release uses npm package @zktx.io/sui-mcp and MCP Registry nameio.github.zktx-mcp/sui-mcp. Once the requested version is published,install through your client's registry support or run npx -y @zktx.io/sui-mcp.For per-client configuration (Claude Code, Claude Desktop, Codex, Cursor) andrunning from a local checkout, see docs/MCP_SETUP.md.

Package and repository transition

The package for this release is @zktx.io/[email protected], and its repository iszktx-mcp/sui-mcp. The previous package is @zktx.io/say-ur-intent (through0.4.4). The older @stelis/[email protected] is also a separate package.Existing installations and MCP client registrations do not change namesautomatically. Before switching, confirm the new package withnpm view @zktx.io/[email protected] version; renaming the repository does not publishan npm package or MCP Registry entry.

Use the full scoped package name: the unscoped sui-mcp package is a differentproject. Keep the MCP registration name sui-mcp, without a suffix. This releasestarts with a new local data directory and does not import orconvert data from the previous package. See thesetup guide for installationand shared-server restart instructions.

After the MCP server is connected, use docs/MCP_SETUP.md for first-use setup, docs/MCP_TOOLS.md for API fields and statuses, and docs/AGENT_BEHAVIOR.md for user-question flow and response wording.

Mainnet-Only Product Surface

Product docs, registry, AI responses, UX copy, and signable actions are mainnet-only.

Unsupported protocol experiments are not product functionality and are not included in the package docs, MCP resources, registry support lists, UX copy, or signable-action lists.

MCP Tools

The canonical MCP API reference lives in docs/MCP_TOOLS.md.

The server also exposes read.get_server_status. It returns the package version, evidence policy version, implementedToolsCount, and implemented tool list at runtime.

DeepBook pool-price context is exposed through read.get_deepbook_mid_price. Use docs/MCP_TOOLS.md for the response fields and unsupported conclusions.

Tool names use dot prefixes because the MCP spec recommends ASCII letters, digits, underscore, hyphen, and dot for tool names. action.prepare_sui_action_review returns a reviewSessionId and an internal card; it does not return executable transaction bytes.

Documentation Map

The server exposes only a subset of repository documents as MCP resources.

Runtime-facing MCP resources currently include:

  • this README;
  • docs/MCP_SETUP.md;
  • docs/MCP_TOOLS.md;
  • docs/WALLET_CONNECTION.md;
  • docs/AGENT_BEHAVIOR.md;
  • protocols/deepbook-v3.md;
  • protocols/deepbook-margin.md.

Protocol resources are explanatory references. Current support is declared by read.get_server_status, read.list_supported_protocols, concrete tool schemas, and concrete tool responses, not by protocol Markdown alone.

Development-only or release-review documents can define contributor rules and checks.

AI client answer behavior must be mirrored in runtime-facing instructions, resources, prompts, schemas, or returned evidence fields before it is treated as product behavior.

  • README.md: Public entry document: product purpose, current release boundary, setup path, and documentation map.
  • docs/MCP_SETUP.md: Setup guide: installation, MCP client connection, first-use flow, settings, and troubleshooting.
  • docs/MCP_TOOLS.md: API reference: tool contracts, response fields, statuses, follow-up fields, and output boundaries.
  • docs/AGENT_BEHAVIOR.md: Answer playbook: user-question flows, tool selection, and response wording boundaries.
  • docs/WALLET_CONNECTION.md: Wallet connection reference: active read context, private SDK ownership and user-approved transaction requests.
  • protocols/deepbook-v3.md: Protocol reference only; use MCP tool responses and read.list_supported_protocols for current support.
  • protocols/deepbook-margin.md: Protocol reference only; no margin MCP read tools or signable actions are exposed in this release.
  • docs/golden-scenarios/INTENT_EVIDENCE_MATRIX.md: current-release question, tool-path, and standard-answer matrix for AI client release review.
  • docs/golden-scenarios/BEHAVIOR_MATRIX.md: broader behavior scenario matrix for supported and unsupported user prompts.
  • docs/TRANSACTION_ACTIVITY_LOG.md: transaction activity evidence, storage, scan, and summary boundaries.
  • docs/UTILITY_INDEX.md: manual maintainer and developer utilities. Utility rows are not MCP tools unless they explicitly name an MCP tool, and source-checkout scripts are not packaged product commands.
  • docs/LOCAL_DB_ARCHITECTURE.md: local SQLite storage boundaries for maintainers.
  • docs/SDK_API.md: pinned SDK API notes and source-verification boundaries.
  • docs/FRONTEND_POLICY.md: review-app frontend implementation policy for coding agents.
  • docs/SIGNABLE_ADAPTER_CONTRACT.md: wallet-review adapter and PTB visualization contract. It defines the pre-signing review evidence and commitment boundary; wallet signing requires a user card action and approval in the wallet; the backend alone handles bytes.
  • AGENTS.md: root repository development contract and non-negotiable product boundaries for coding agents working on this codebase.
  • docs/AGENT_DEVELOPMENT_POLICY.md: detailed binding development, review, documentation, source-of-truth, and completion policies for coding agents.

Contract Name Registry

The PTB visualization in the Review card can show human-readable labels in placeof raw addresses, with a toggle back to raw addresses. A label is identity display only, not asafety, trust, route-quality, or signing-readiness signal, and only registeredaddresses are relabeled.

Two pinned, context-aware registries insrc/core/action/contractNameRegistry.tsdrive this:

  • packages, relabeled only in <address>:: path position โ€” the DeepBook swappackage by its Move Registry (MVR) name @deepbook/core, and the Sui frameworkpackages by their Move aliases (std, sui, sui_system);
  • well-known Sui system objects, relabeled only as a bare object id โ€” Clock,SuiSystemState, Random, DenyList, CoinRegistry, and the address-basedbalance AccumulatorRoot.

If you maintain a Sui DeFi protocol that has a registered MVR name and want itspackage to display that name in the review graph, open a pull request adding yourmainnet package address and MVR name to the package registry. Every unregisteredaddress keeps its raw form.

MCP Server ยท Populars

MCP Server ยท New

    kirill-markin

    Nibomo

    AI-powered flashcards app built for serious daily study on iOS, Android, and the web. Use it to prepare for exams, learn vocabulary, memorize technical terms and facts, improve your material with AI, and review with spaced repetition.

    Community kirill-markin
    audiojs

    audio

    High-level audio manipulations

    Community audiojs
    voygr-tech

    PlaceCall โ˜Ž๏ธ

    The phone is your last API. Give your agent a voice to call any US business - reservations, inquiries, quotes. Verified outcome + transcript. First 250 calls free.

    Community voygr-tech
    colibird-ai

    LMCP โ€” Context and Actions for Your AI

    192+ local tools for Claude, ChatGPT, Cursor & Grok โ€” Mail, iMessage, Teams, Slack, WhatsApp, OneDrive, Google Drive, Zoom, Outlook, Office. Native macOS and Windows, runs on your computer, no API keys.

    Community colibird-ai
    HoldMyBeer-gg

    blenderwright

    MCP server for Blender. 191 tools for modelling, materials, rendering and more, driven by Claude, Cursor, Codex, Ollama, llama.cpp, or any MCP client.

    Community HoldMyBeer-gg