Skip to content

Add a MCP server to truapi-explorer - #19

Closed
leonardocustodio wants to merge 2 commits into
mainfrom
lc/mcp-server
Closed

Add a MCP server to truapi-explorer#19
leonardocustodio wants to merge 2 commits into
mainfrom
lc/mcp-server

Conversation

@leonardocustodio

@leonardocustodio leonardocustodio commented Apr 25, 2026

Copy link
Copy Markdown
Member

Adds a MCP "server" to trueapi-explorer that can be queried even without a server.
Uses StaticMCP so the static JSON files are generated and served from:

Add to Claude Code

claude mcp add truapi-explorer -- npx -y staticmcp-bridge https://paritytech.github.io/truapi-explorer/mcp

Available tools

Tool Args Returns
list_versions scope: "all" Available protocol versions
list_groups version Method groups for a version
list_methods version All methods for a version
list_types version All data types for a version
get_group version, id Group details with expanded methods
get_method version, name Method definition with examples
get_type version, name Data type definition
list_docs kind: "rfcs" | "features" | "changelog" Documents of that kind
get_doc kind, slug Full markdown body

version is v01 or v02.

Example queries

Ask Claude things like:

  • "What v0.2 methods are in the payment group?" → calls list_methods then filters, or get_group({version:"v02", id:"payment"}).
  • "Show me the host_navigate_to spec."get_method({version:"v02", name:"host_navigate_to"}).
  • "What changed between v0.1 and v0.2?"get_doc({kind:"changelog", slug:"v02-changes"}).
  • "List the accepted RFCs."list_docs({kind:"rfcs"}).

Resources are also addressable directly by URI, e.g. truapi://v02/methods/host_navigate_to or docs://rfcs/0006-payments.

@leonardocustodio leonardocustodio self-assigned this Apr 25, 2026
@pgherveou pgherveou mentioned this pull request May 8, 2026
@pgherveou pgherveou closed this May 14, 2026
@leonardocustodio
leonardocustodio deleted the lc/mcp-server branch June 23, 2026 21:08
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.

2 participants