canton-agent-mcp

canton-agent-mcp

Enables AI agents to request sign-ins and payments on the Canton Network through a human's mobile wallet, where each request requires explicit human approval and hardware-backed signing.

Category
访问服务器

README

canton-agent-mcp

Your agent asks. You approve. Hardware signs.

ci License: Apache-2.0

An MCP server that lets an AI agent use the Canton Network through a human's mobile wallet. The agent can ask to sign in and to pay; every request lands as an approval sheet on the human's phone, and what gets signed is signed by the device key (Secure Enclave or Android StrongBox), never by the agent.

This server is a CIP-0103 dApp client over WalletConnect. It holds no keys and no ledger tokens. It can only ask, and the wallet's owner can see, approve, or refuse every request.

How it works

  1. The agent calls canton_connect_wallet; a WalletConnect pairing QR appears.
  2. The human scans it from their wallet's Connect tab and approves on the phone.
  3. From then on the agent can request sign-in (canton_sign_in) or a payment (canton_request_payment). Each request pops an approval sheet on the phone; the wallet prepares the transaction on its participant, re-verifies the prepared-transaction hash on device, and signs in hardware.
  4. Sessions persist on disk, so the wallet is paired once and reused.

The reference wallet on the other end is canton-mobile-app (iOS and Android, built on the native canton-mobile-sdk), but any CIP-0103 wallet that speaks WalletConnect works.

Quickstart

Requires Node 22.6+ (the server runs TypeScript directly, no build step) and a free WalletConnect Cloud project id.

git clone https://github.com/vsima/canton-agent-mcp
cd canton-agent-mcp && npm install

Register it with Claude Code:

claude mcp add canton-agent --env WC_PROJECT_ID=<your-project-id> \
  -- node <path-to>/canton-agent-mcp/src/main.ts

Then ask the agent to connect your wallet and pay someone. A payment request blocks until the human decides, so raise your MCP client's tool timeout if it cuts long calls short (in Claude Code: the MCP_TIMEOUT environment variable).

Tools

Tool What it does
canton_connect_wallet Starts pairing; returns the QR the human scans
canton_wallet_status Whether a wallet is connected, and to which network
canton_accounts The parties the wallet granted, with public keys
canton_sign_in Sign-In with Canton: a signed, verified proof of the party
canton_request_payment Pushes a Token Standard transfer for approval on the phone
canton_disconnect Ends the session

Configuration

All by environment variable:

Variable Default Meaning
WC_PROJECT_ID required WalletConnect Cloud project id
WC_RELAY_URL public relay Relay WebSocket URL
CANTON_NETWORK_ID canton:localnet CAIP-2 network id
AGENT_MCP_NAME Canton Agent Shown on the wallet's approval sheets
AGENT_MCP_DOMAIN canton-agent-mcp.local Sign-In challenge domain
AGENT_MCP_STORAGE ~/.canton-agent-mcp/wc-store Session store directory
AGENT_MCP_REQUEST_EXPIRY 3600 Seconds a pushed request stays answerable (300 to 604800)
CANTON_LEDGER_URL / CANTON_REGISTRY_URL / CANTON_VALIDATOR_URL Splice LocalNet Where payment commands are built

Payments default to a local Splice LocalNet (boot one via the SDK repo's integration/run-localnet.sh).

Security model

  • The server can ask, never act: no keys, no ledger tokens, no signing.
  • Every sign-in and payment needs an explicit approval on the phone.
  • The wallet re-derives and verifies the prepared-transaction hash on device before its hardware key signs, so the phone can only sign what it showed.
  • Requests expire (an hour by default); the relay stores them encrypted.
  • Wallet-side spend policy (per-agent caps and allowlists, enforced by the wallet before signing) is the next milestone in the native SDK.

Development

npm test        # typecheck + unit tests (no network)
npm run probe   # opens a real relay session and prints the pairing QR

An independent, community-built open-source project, licensed Apache-2.0. Not affiliated with or endorsed by Digital Asset, the Canton Foundation, or the Global Synchronizer Foundation.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选