Skip to main content
Glama
KaiSign MCP Server

KaiSign MCP Server

Official
by Kai-Sign

KaiSign MCP Server

Verified transaction decoding for LLM agents using on-chain attested metadata.

This is an MCP (Model Context Protocol) server for the KaiSign on-chain registry — enabling AI agents to decode Ethereum transactions with cryptographic proof of authenticity. Instead of trusting external APIs like Etherscan for ABIs, this server verifies contract metadata against KaiSign's on-chain attestations — giving users confidence that decoded transaction intent is genuine.

License: MIT Node.js MCP


The Problem

When an AI agent builds a transaction from natural language (e.g., "swap 0.01 ETH to USDC"), the result is raw calldata:

to: 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD
data: 0x3593564c000000000000000000000000...
value: 10000000000000000

How do you know this actually swaps ETH to USDC and doesn't drain your wallet?

Without KaiSign, you either trust an external API for the ABI (which could be compromised, outdated, or wrong) or show the user meaningless bytes. With KaiSign, the metadata is cryptographically verified on-chain — attested by the contract developer and tamper-proof.

Related MCP server: crypto-knowledge

How It Works

User prompt: "swap 0.01 ETH to USDC"
        │
        ▼
┌─────────────────┐     ┌──────────────────────┐     ┌─────────────────────┐
│ Transaction API │────▶│  KaiSign MCP Server   │────▶│  KaiSign Registry   │
│  (builds tx)    │     │  (verifies + decodes) │     │  (Sepolia on-chain) │
└─────────────────┘     └──────────────────────┘     └─────────────────────┘
                                │
                                ▼
                    "Swap 0.01 ETH → min 25.50 USDC
                     via Uniswap Universal Router"
                              ✓ Verified

Verification flow:

  1. Get extcodehash (keccak256 of contract bytecode) from the target chain

  2. Query the KaiSign Registry on Sepolia for the attestation UID

  3. Parse the attestation and compute the leaf hash locally

  4. Compare against the on-chain computed leaf hash

  5. If they match, the metadata is authentic and attested by the contract developer

Features

  • On-chain verification — Metadata verified against the KaiSign Registry (Sepolia), not trusted from external APIs

  • Transaction decoding — Raw calldata decoded into human-readable intent using ERC-7730 metadata

  • Transaction-builder integration — Validate unsigned transactions before signing or broadcasting

  • Clear signing prompts — Formatted transaction confirmations with verification badges

  • Selector lookup for builders — Agents can fetch canonical function signatures/selectors by exact address + chain before encoding, instead of relying on model memory

  • Multi-chain support — Ethereum, Base, Optimism, Arbitrum, and Sepolia

  • Proxy detection — Automatic resolution of EIP-1967, Diamond, and Safe proxy contracts

  • Smart caching — TTL-based caching for metadata and token info, reducing redundant RPC calls

  • Token efficiency — Server-side processing keeps ABIs off LLM context (~150-250 tokens per response vs 3000-7000 without)

Deployed Contracts & Supported Networks

KaiSign Registry

Network

Address

Purpose

Sepolia

0xC203e8C22eFCA3C9218a6418f6d4281Cb7744dAa

On-chain attestation registry

Verified Contracts (Examples)

These contracts have on-chain attested metadata in the KaiSign Registry and can be used for testing:

Contract

Network

Address

Chain ID

Uniswap Universal Router

Base

0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD

8453

USDC

Base

0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

8453

USDC

Ethereum

0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

1

Supported Chains

Chain

Chain ID

Default RPC

Ethereum Mainnet

1

https://ethereum-rpc.publicnode.com

Optimism

10

https://optimism-rpc.publicnode.com

Base

8453

https://base-rpc.publicnode.com

Arbitrum

42161

https://arbitrum-one-rpc.publicnode.com

Sepolia (testnet)

11155111

https://ethereum-sepolia-rpc.publicnode.com

Quick Start

For a step-by-step local MCP setup, smoke test, Claude config, and optional HTTP/tunnel setup, see docs/LOCAL_MCP_TUTORIAL.md.

For direct LLM agent / wallet / router integration instructions, see docs/AGENT_INTEGRATION.md.

For the minimal command-line clear-signing tool, see docs/CLI.md. It supports pasted calldata (--data / --calldata), signed raw transactions (--tx / --raw-tx), and JSON stdin.

To bootstrap missing local metadata from verified ABI evidence, use npm run metadata:from-etherscan -- --chain=<id> --address=<contract> --output=metadata/...json with ETHERSCAN_API_KEY set, then review the generated display text before registry submission.

For metadata submission setup, see docs/SUBMISSION_KEYSTORE.md. Recommended path: a SubmissionSponsor contract (0x8a9d99D4EF98A342FeE36Bb80F62381906E02cA8) posts the bond, so you only need Sepolia gas — init-burner then submit-sponsored posts the blob and submits from an agent-held encrypted burner. A direct path (bring your own bond-token-holding address, sign yourself) is also available. Registry: 0xf70D41afe5Ff76Ac3Bee86BCBda07450f3b590F0.

Prerequisites

  • Node.js >= 18.0.0

  • npm

Installation

git clone https://github.com/Kai-Sign/MCP.git
cd MCP
npm install
npm run build

Configuration

Copy the example environment file and add your keys:

cp .env.example .env
# Optional: Custom RPC URLs (public defaults are included)
ETH_RPC_URL=https://your-eth-rpc.com
BASE_RPC_URL=https://your-base-rpc.com

Run the Server

# Production
npm start

# Development (with ts-node)
npm run dev

Connect to Claude

Add the KaiSign MCP server to your Claude configuration:

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "kaisign": {
      "command": "node",
      "args": ["/absolute/path/to/MCP/dist/index.js"],
    }
  }
}

Claude Code (~/.claude/settings.json):

{
  "mcpServers": {
    "kaisign": {
      "command": "node",
      "args": ["/absolute/path/to/MCP/dist/index.js"],
    }
  }
}

Usage Guide

Tool 1: Verify Contract Metadata

Check if a contract has on-chain verified metadata in the KaiSign Registry.

Tool: verify_contract_metadata
Input: {
  "contractAddress": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
  "chainId": 8453
}

Response:

{
  "verified": true,
  "source": "leaf-verified",
  "attestationUid": "0x68b05727affff681...",
  "metadataHash": "0x1a2b3c...",
  "idx": 0,
  "revoked": false
}

Tool 2: Decode Transaction

Decode raw calldata into human-readable intent using verified metadata.

Tool: decode_transaction
Input: {
  "to": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
  "data": "0x3593564c...",
  "chainId": 8453,
  "value": "10000000000000000"
}

Response:

{
  "verified": true,
  "source": "leaf-verified",
  "functionName": "execute",
  "intent": "Wrap ETH to WETH + Swap via V3_SWAP_EXACT_IN",
  "params": {
    "commands": { "label": "Commands", "value": "WRAP_ETH, V3_SWAP_EXACT_IN" },
    "deadline": { "label": "Deadline", "value": "2024-01-30 12:00:00 UTC" }
  }
}

Tool 3: Validate Transaction

Validate a transaction payload against the KaiSign Registry. Prefer clear_sign_payload for the full pre-sign flow.

Tool: validate_transaction
Input: {
  "to": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
  "data": "0x3593564c...",
  "chainId": 8453,
  "value": "10000000000000000"
}

Response:

{
  "verified": true,
  "source": "leaf-verified",
  "intent": "Swap 0.01 ETH → min 25.50 USDC via Uniswap Universal Router",
  "params": {
    "commands": { "label": "Commands", "value": "WRAP_ETH, V3_SWAP_EXACT_IN" },
    "deadline": { "label": "Deadline", "value": "2024-01-30 12:00:00 UTC" }
  },
  "warnings": [],
  "transaction": { "to": "0x3fc9...", "selector": "0x3593564c", "chainId": 8453 },
  "verification": { "attestationUid": "0x68b05..." }
}

Tool 4: Clear Sign Any Tx-Builder Payload

Generic pre-sign hook for any transaction builder: an LLM agent, a wallet, a router API, or custom code. Use this when the builder returns direct {to,data,value,chainId}, nested {transaction:{...}} / {tx:{...}}, calldata aliases, or a serialized raw transaction.

Tool: clear_sign_payload
Input: {
  "transaction": {
    "to": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
    "calldata": "0x3593564c...",
    "chain": "8453",
    "value": "10000000000000000"
  }
}

Response shape:

{
  "transaction": { "to": "0x...", "data": "0x...", "value": "...", "chainId": 8453 },
  "clearSign": {
    "displayText": "✓ Verified Transaction\n\nSwap ...",
    "verified": true,
    "fullyDecoded": true,
    "requiresHumanReview": false,
    "safeToAutonomouslySign": true,
    "warnings": [],
    "verification": { "source": "leaf-verified" }
  },
  "signingPolicy": {
    "signOriginalTransactionOnly": true,
    "canAutonomouslySign": true,
    "mustShowToUser": false
  }
}

Sign/broadcast only the returned transaction, after user/agent policy approval. KaiSign does not modify or sign the transaction.

Tool 5: Get Function Selectors

Resolve canonical function signatures/selectors from KaiSign metadata for one exact target address and chain before encoding calldata.

This exists because agents can hallucinate selectors from training data. In one real test, Claude Sonnet 4.6 encoded Alchemy LightAccount V2 executeBatch as executeBatch((address,uint256,bytes)[]) (0x34fcd5be) by relying on remembered smart-account patterns. That selector belongs to other account implementations, not the Alchemy LightAccount V2 contract at 0x8E8e658E22B12ada97B402fF0b044D6A325013C7. The correct ABI entry for that address on mainnet is executeBatch(address[] dest,uint256[] value,bytes[] func) (0x47e1da2a).

Builder UX: users should be able to provide only chainId, contracts, and desired actions. The MCP tool descriptions tell agents that this is enough context to produce an unsigned transaction. Agents should use get_function_selectors automatically for each target contract they plan to encode, choose any realistic call path/nesting whose selectors exist on those exact contracts, call clear_sign_payload on the final unsigned transaction, and output only to, data, value, and chainId unless the caller asks for more.

Tool: get_function_selectors
Input: {
  "contractAddress": "0x8E8e658E22B12ada97B402fF0b044D6A325013C7",
  "chainId": 1,
  "functionName": "executeBatch"
}

Response shape:

{
  "contractAddress": "0x8e8e658e22b12ada97b402ff0b044d6a325013c7",
  "chainId": 1,
  "contractName": "Alchemy LightAccount V2",
  "found": true,
  "functions": [
    {
      "name": "executeBatch",
      "signature": "executeBatch(address[],uint256[],bytes[])",
      "selector": "0x47e1da2a",
      "displayFormat": true
    }
  ]
}

Tool 6: Get Clear Sign Prompt

Lower-level direct-payload formatter for user confirmation with verification badges. Use when you already have canonical {to,data,chainId,value}.

Tool: get_clear_sign_prompt
Input: {
  "to": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD",
  "data": "0x3593564c...",
  "chainId": 8453,
  "value": "10000000000000000"
}

Response:

┌─────────────────────────────────────────┐
│  ✓ Verified Transaction                 │
│                                         │
│  Swap 0.01 ETH → min 25.50 USDC        │
│  via Uniswap Universal Router           │
│                                         │
│  Contract: 0x3fC9...7FAD (Base)         │
│  Value: 0.01 ETH                        │
│                                         │
│  [Confirm]  [Cancel]                    │
└─────────────────────────────────────────┘

Tool 7: Cache Management

# Check cache status for a contract
Tool: get_cached_metadata
Input: { "contractAddress": "0x3fC9...", "chainId": 8453 }

# Clear all cached data
Tool: clear_cache

# Remove expired entries
Tool: prune_expired_cache

Architecture

src/
├── index.ts                      # MCP server entry point
├── config/
│   └── constants.ts              # RPC URLs, registry address, API endpoints
├── services/
│   ├── onchain-verifier.ts       # Cryptographic verification against registry
│   ├── metadata-service.ts       # ERC-7730 metadata fetching + proxy detection
│   ├── abi-decoder.ts            # Transaction calldata decoding engine
│   ├── cache-manager.ts          # TTL-based caching with token estimation
└── tools/
    ├── verify-metadata.ts        # verify_contract_metadata tool
    ├── decode-transaction.ts     # decode_transaction tool
    ├── validate-transaction.ts   # validate_transaction tool
    ├── clear-sign-payload.ts     # clear_sign_payload generic tx-builder pre-sign hook
    ├── get-function-selectors.ts # get_function_selectors exact-address ABI selector lookup
    ├── get-clear-sign-prompt.ts  # get_clear_sign_prompt tool
    └── get-cached-metadata.ts    # Cache management tools

Trust Model

Aspect

Without KaiSign

With KaiSign

ABI Source

Etherscan, hardcoded, unknown

On-chain registry (Sepolia)

Verification

None

Cryptographic (leaf hash)

Trust

API provider

Math (keccak256)

Tampering

Possible

Detected immediately

Proxy Support

Manual resolution

Automatic (EIP-1967, Diamond, Safe)

Cross-Chain

Per-chain setup

Single registry, any chain

For a detailed comparison, see docs/KAISIGN_VS_WITHOUT.md.

Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build for production
npm run build

# Run tests
npm test

# Run tests once (no watch)
npm run test:run

Running Tests

Tests use Vitest and make real RPC calls to verify on-chain data:

# Standard tests (verification + validation)
npm test

Environment Variables

Variable

Required

Default

Description

KAISIGN_METADATA_DIR

No

auto-detects repo-local metadata/

Local ERC-7730 metadata directory

ETH_RPC_URL

No

Public RPC

Ethereum Mainnet RPC

BASE_RPC_URL

No

Public RPC

Base RPC

OPTIMISM_RPC_URL

No

Public RPC

Optimism RPC

ARBITRUM_RPC_URL

No

Public RPC

Arbitrum RPC

SEPOLIA_RPC_URL

No

Public RPC

Sepolia testnet RPC

Contributing

Contributions are welcome! Please read the Contributing Guide before submitting a pull request.

Security

For security concerns, please see our Security Policy. Do not open public issues for security vulnerabilities.

License

This project is licensed under the MIT License — see the LICENSE file for details.

Available Tools

20 tools
clear_cacheA

Diagnostic: clear all cached metadata and verification results. Use sparingly.

Inputs: no named parameters.

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:

  1. Accepts a direct transaction {to,data,value,chainId}, nested {transaction:{...}} / {tx:{...}}, calldata aliases, or rawTx

  2. Normalizes it to the exact original transaction payload that must be signed

  3. Calls KaiSign clear-signing verification and decoding

  4. Returns displayText, intent, verification status, warnings, safe/autonomous decision fields, and signing policy

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.

Inputs: to, tx, data, chain, +16 more.

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:

  • Function name and signature

  • Decoded parameters with labels and formatted values

  • Intent description (e.g., "Swap 1.5 ETH for min 3000 USDC")

  • Metadata-declared command registry decoding

  • On-chain verification of metadata authenticity

Token savings: Cached metadata enables 80%+ token savings on repeated queries to the same contract.

Inputs: to (required), data (required), value, chainId, +1 more.

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:

  • Cache status (found/not found)

  • Approximate token count saved

  • Verification status

  • Cache statistics (hit rate, total entries)

Inputs: contractAddress (required), chainId.

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:

  1. Takes a transaction payload (to, data, value, chainId)

  2. Verifies the contract against KaiSign on-chain registry

  3. Decodes the transaction intent

  4. Returns formatted display text for user confirmation

Use this when presenting transactions to users for signing. The response includes:

  • displayText: Formatted text ready for display (includes verification badge, intent, warnings)

  • verified: Whether the contract has on-chain verified metadata

  • verificationBadge: "✓ Verified", "⚠ Local Metadata", or "⚠ Unverified"

  • intent: Human-readable description of transaction

  • functionName: The function being called

  • warnings: Any concerns about the transaction

  • transaction: The original transaction payload for signing

Inputs: to (required), data (required), value, chainId.

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.

Inputs: to, address, chainId, selector, +2 more.

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.

Inputs: rpcUrl, burnerFile.

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.

Inputs: keystore.

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.

Inputs: force, sponsor, burnerFile, passwordFile.

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.

Inputs: address (required), output.

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.

Inputs: metadata (required), output, blobHash, keystore, +1 more.

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.

Inputs: state (required), commitmentId (required), keystore, tokenAmount.

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.

Inputs: questionId (required), tokens, keystore.

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.

Inputs: metadata (required), output, sponsor, blobHash, +2 more.

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.

Inputs: state (required), commitmentId (required), sponsor, keystore.

prune_expired_cacheA

Diagnostic: remove expired entries from cache. Called automatically but can be triggered manually.

Inputs: no named parameters.

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_payload({ payloadRef, compact: true }) for full transaction JSON/raw tx chunks

  • clear_sign_payload({ to, dataRef: payloadRef, chainId, value, compact: true }) for calldata-only chunks

Inputs: chunk (required), mode, index, payloadId, +3 more.

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.

Inputs: metadata (required), sponsor, blobHash, burnerFile, +2 more.

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:

  1. A transaction builder creates an unsigned transaction payload

  2. This tool validates the transaction against KaiSign's on-chain verified metadata

  3. If verified (source: 'leaf-verified'), the decoded intent is trustworthy

  4. User or policy can approve signing knowing the transaction matches intent

Returns:

  • verified: true if contract has KaiSign-verified metadata

  • source: 'leaf-verified' (trustless on-chain), 'local-metadata', 'unverified', or 'error'

  • intent: Human-readable description of what the transaction does

  • params: Decoded function parameters with labels

  • warnings: Any concerns about the transaction

  • verification: Attestation details (uid, target, metadataHash, revoked status)

Inputs: to (required), data (required), value, chainId.

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:

  1. getLatestSpecForTarget(chainId, target) for the latest finalized, non-revoked UID

  2. getAttestation(uid) and check chainId, target, finalized and not revoked

  3. Compute the SMT leaf locally: keccak256(abi.encode(LEAF_TYPEHASH, chainId, target, metadataHash))

  4. Compare against the registry approvedLeaf(chainId, target, metadataHash)

Returns:

  • verified: true if leaf hashes match

  • source: 'leaf-verified' (success), 'local-metadata' (local file, no on-chain attestation), 'mismatch', or 'error'

  • attestation details including target, metadataHash, finalizedAt, revoked status

Inputs: contractAddress (required), chainId.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 20 tools

    Disambiguation3/5

    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.

    Naming Consistency5/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to resolve smart contract ABIs, read, encode, simulate, and prepare transactions across multiple blockchains via a REST API or MCP server, with no signing required.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform complex crypto operations like cross-chain routing, contract decoding, portfolio management, and anti-rug security checks, returning unsigned transactions for safe signing by the agent.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to turn raw calldata, transaction objects, JSON-RPC requests, EIP-712 typed data and personal_sign messages into short plain-English briefings covering what a request asks for, which risky allowances or permissions need attention, and what could not be verified. Runs entirely offline with no RPC, wallet, API key or safety verdict, using three read-only tools exposed to any MCP client.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to discover the tools EVM protocols publish under their own ENS names, read their contracts, and simulate writes shown with exact balance changes — leaving signing to the user's own wallet. No per-protocol server and no key ever held by the agent.
      Apache 2.0