Skip to content

feat: add Ritual Chain tools to MCP server#1

Open
ygd58 wants to merge 1 commit into
RitualChain:mainfrom
ygd58:feat/ritual-chain-tools
Open

feat: add Ritual Chain tools to MCP server#1
ygd58 wants to merge 1 commit into
RitualChain:mainfrom
ygd58:feat/ritual-chain-tools

Conversation

@ygd58

@ygd58 ygd58 commented Jul 3, 2026

Copy link
Copy Markdown

Adds 4 Ritual Chain MCP tools: get_ritual_chain_status, get_ritual_wallet_balance, get_ritual_executors, get_ritual_models. Enables AI agents to preflight Ritual Chain state before submitting precompile transactions.

- Add lib/ritual-chain.ts: viem-based client for Ritual Chain (Chain ID 1979)
  with helpers for RitualWallet balance, TEE executor lookup, chain status,
  and ModelPricingRegistry queries
- Add 4 new MCP tools to app/mcp/route.ts:
  - get_ritual_chain_status: block number, gas price, RPC/explorer/faucet URLs
  - get_ritual_wallet_balance: balance + lock status + LLM readiness check
  - get_ritual_executors: active TEE executors for HTTP (0x0801) or LLM (0x0802)
  - get_ritual_models: registered models from ModelPricingRegistry
- Add viem dependency for on-chain reads (no private key / signing required)

Enables AI agents (Claude Code, Cursor, ChatGPT) to query Ritual Chain
state directly via MCP before submitting precompile transactions
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

@ygd58 is attempting to deploy a commit to the 0xBuns Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant