KaiSign MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ETH_RPC_URL | No | Ethereum Mainnet RPC URL. | Public RPC |
| BASE_RPC_URL | No | Base RPC URL. | Public RPC |
| SEPOLIA_RPC_URL | No | Sepolia testnet RPC URL. | Public RPC |
| ARBITRUM_RPC_URL | No | Arbitrum RPC URL. | Public RPC |
| OPTIMISM_RPC_URL | No | Optimism RPC URL. | Public RPC |
| KAISIGN_METADATA_DIR | No | Local ERC-7730 metadata directory. Defaults to auto-detecting the repo-local metadata/ directory. | auto-detects repo-local metadata/ |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| verify_contract_metadataA | Diagnostic: verify one contract's metadata attestation against the on-chain KaiSign Registry. For decoding + safety verdicts on a transaction, prefer clear_sign_payload (it verifies every contract in the call tree automatically). This tool checks whether a contract has finalized ERC-7730 metadata in the KaiSign Registry SMT on Sepolia. Entries are keyed by (chainId, target), where target is the transaction destination address. Verification flow:
Returns:
|
| decode_transactionA | Decode transaction calldata using verified ERC-7730 metadata. Prefer clear_sign_payload for signing flows — it returns this decode plus the unified signing verdict, display text, and signing policy in one call. This tool decodes Ethereum transaction calldata into human-readable format using metadata from the KaiSign registry. It provides:
Token savings: Cached metadata enables 80%+ token savings on repeated queries to the same contract. |
| get_cached_metadataA | Diagnostic: retrieve cached metadata status for a contract. Use this to check if metadata is cached before making decode calls. Cached metadata provides significant token savings by avoiding re-transmission of full ABI and format definitions. Returns:
|
| clear_cacheA | Diagnostic: clear all cached metadata and verification results. Use sparingly. |
| prune_expired_cacheA | Diagnostic: remove expired entries from cache. Called automatically but can be triggered manually. |
| validate_transactionA | Validate a transaction payload against KaiSign Registry. Prefer clear_sign_payload — it wraps this validation and adds payload normalization, display text, and signing policy. This tool is designed for signing flows:
Returns:
|
| put_payload_chunkA | Auxiliary to clear_sign_payload: stage a large transaction payload or calldata in small chunks, then call clear_sign_payload with payloadRef or dataRef. Use when a single MCP call with full calldata is too large for the MCP proxy/gateway. Send chunks under the client/proxy limit; after complete=true, call:
|
| clear_sign_payloadA | PRIMARY TOOL — use this for any transaction clear-signing, decoding, or safety question. Clear-signs any transaction payload from a transaction builder: LLM agent, wallet request, router API, custom code, or raw transaction. Returns a unified signing block { verdict: safe|review|reject, reason, decodedCalls/totalCalls, attestedContracts/totalContracts }, a per-contract registry-attestation summary, a rendered call tree in displayText, and a signing policy. 'review' means fully decoded but registry attestation pending — show to the user; 'reject' means do not sign. This is the generic pre-sign hook for transaction builders:
Builder UX rule: if the user gives only chainId, contracts, and actions, the agent should already know the desired artifact is an unsigned transaction. The user should not need to specify ABI safety instructions, nesting details, or return format. The agent may choose any realistic call path/nesting, but before encoding each call it should use get_function_selectors for the exact target address + chainId. Never guess a selector from model memory. Then call this tool on the final unsigned tx before signing/broadcasting. The final agent output should be the unsigned transaction fields: to, data, value, chainId. Use this before any signing or broadcasting. Sign the returned transaction only after user/agent policy approval. |
| get_function_selectorsA | Auxiliary to clear_sign_payload: resolve function selectors from KaiSign local metadata for an exact contract address + chainId (anti-hallucination — never guess selectors from model memory). Builder UX rule: when a user gives only lightweight input like chainId, contracts, and actions (for example "approve 1000 USDC" and "transfer 10 USDC"), the agent should already know the desired artifact is an unsigned transaction. The user should not need to specify ABI safety instructions, nesting details, or return format. The agent may use the listed contracts to build a realistic batched, routed, nested, or account-abstraction transaction when that is implied by the contract set, but every encoded call must use a function returned by this tool for the exact target address + chainId. If a selector is not returned for the exact address + chainId, do not use it. The final agent output should be the unsigned transaction fields: to, data, value, chainId. Use this before encoding calldata when an agent or transaction builder only knows a function name like executeBatch(...), swap(...), approve(...), or transfer(...). It returns canonical ABI signatures and computed selectors for that specific contract only, so agents do not hallucinate selectors from training data or reuse a same-named ABI from another contract. For signing flows, still call clear_sign_payload on the final unsigned transaction before signing/broadcasting. |
| get_clear_sign_promptA | Get a clear signing prompt for user confirmation. Prefer clear_sign_payload — it returns this prompt plus payload normalization and signing policy; this tool is a subset for direct {to,data} input. This tool provides a formatted display for transaction signing flows:
Use this when presenting transactions to users for signing. The response includes:
|
| init_submission_burnerA | Create an encrypted gas-only burner for sponsored ERC-7730 metadata submissions. This is the default setup step for the full sponsored submission workflow. It writes an encrypted burner keystore and creates a password file if one does not already exist. Fund the returned submitterAddress with Sepolia ETH only; the SubmissionSponsor supplies the bond token. After funding, call get_submission_burner_status and then submit_sponsored_metadata. |
| get_submission_burner_statusA | Check the configured ERC-7730 sponsored-submission burner without decrypting it. Returns the burner submitter address, sponsor, Sepolia balance, and whether it is funded. Use this before submit_sponsored_metadata. |
| submit_sponsored_metadataA | Run the full sponsored ERC-7730 metadata submission workflow. This is the default full-submission path. It posts the EIP-4844 blob from the configured burner EOA, calls SubmissionSponsor.sponsoredCommit, waits for the minimum reveal delay, and calls SubmissionSponsor.sponsoredReveal. It requires a funded Sepolia gas-only burner created by init_submission_burner. A smart account cannot post the blob itself; for smart-account commit/reveal flows use prepare_sponsored_commit and provide an externally posted blob hash. |
| init_submission_scopeA | Create a keyless public scope manifest for preparing smart-account ERC-7730 submission transactions. This stores only the submitter address and allowed submission selectors. It does not create or store signing material. Use prepare_sponsored_commit and prepare_sponsored_reveal with the manifest. |
| get_submission_scope_statusA | Check whether a scoped direct submitter address is eligible for direct ERC-7730 registry submission. Direct submission is not the default. Use it only when this tool reports eligible=true, meaning the address has Sepolia gas and at least minBond of the permissioned KaiSign bond token. If eligible=false, use the sponsored smart-account/default workflow instead. |
| prepare_sponsored_commitA | Prepare an unsigned smart-account-callable SubmissionSponsor.sponsoredCommit transaction. Use this when a smart account should execute the commit/reveal calls. The EIP-4844 blob still must be posted by an EOA or backend; pass blobHash when the blob was posted externally. The tool writes a state file used by prepare_sponsored_reveal. |
| prepare_direct_commitA | Prepare an unsigned direct registry commitSpec transaction only if the scoped address has the permissioned bond token. This tool first checks get_submission_scope_status internally. If the address lacks Sepolia gas or minBond of the permissioned bond token, it refuses and tells the caller to use the sponsored smart-account/default path. The EIP-4844 blob still must be posted by an EOA/backend; pass blobHash when already posted. |
| prepare_direct_revealA | Prepare unsigned direct registry reveal transactions only if the scoped address has the permissioned bond token. This emits the exact bond-token approval plus revealSpec transaction. It refuses when the scoped address is not eligible, so callers fall back to the sponsored smart-account/default workflow. |
| prepare_direct_voteA | Prepare unsigned direct Reality.eth VALID vote transactions only if the scoped address has the permissioned bond token. This emits the exact bond-token approval plus submitAnswerERC20 transaction. It refuses when the scoped address is not eligible, so callers should use the sponsored/default path and avoid direct voting. |
| prepare_sponsored_revealA | Prepare an unsigned smart-account-callable SubmissionSponsor.sponsoredReveal transaction. Call this after the sponsored commit transaction is mined and you have its commitmentId. It uses the state file written by prepare_sponsored_commit. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 20 tools
clear_sign_payload is explicitly marked as primary, but decode_transaction, validate_transaction, get_clear_sign_prompt, and verify_contract_metadata substantially overlap with it, especially for signing and decoding tasks. Descriptions help steer agents toward the preferred tool, but several plausible choices remain for the same workflow.
All tools use consistent snake_case and begin with clear action verbs such as get_, init_, prepare_, submit_, verify_, clear_, and validate_. There is no mixed camelCase or vague naming, making the convention predictable throughout.
The 20-tool surface is heavy and includes several diagnostic/cache tools plus multiple legacy or subset variants of the signing workflow. The domain is complex enough to justify many operations, but the set feels borderline over-scoped rather than tightly curated.
Coverage is broad: clear-signing and decoding, registry verification, cache management, and sponsored/direct submission paths with commit, reveal, and vote preparation. Minor gaps remain around submission lifecycle tracking or post-submission cleanup, but core workflows are covered.