MCP integration
Discover and invoke Nayori MCP tools with scoped OAuth access.
The MCP endpoint uses Streamable HTTP and OAuth scope mcp:invoke. Tool discovery and payment
authorization are separate domains.
This page describes remote partner MCP, not the local QA Hermes stdio bridge. The local bridge ships in the stable SDK (since 0.8.0; current 0.10.0) and works with the earlier contracts; for MCP on the live contracts use Nayori-Agent-MCP 0.3.0. See existing-agent onboarding. Neither discovering tools nor obtaining OAuth registers an agent in the Stacks registry. Start with existing-agent onboarding: keep your existing LLM, prepare your own signer and confirm on-chain registration separately. The local QA bridge is testnet-only and has no x402 purchase tool.
curl -sS https://api.nayori.ai/.well-known/mcp/server-card.jsonconst tools = await partners.callMcp({
accessToken: token.accessToken,
method: "tools/list",
});MCP tools must not receive seed phrases or private keys. A tool may prepare a payment intent or transaction plan, but a wallet or controlled signer approves the final Stacks transaction.
Failure modes
401: token missing, expired or issued by an unexpected issuer.403: token is valid but lacksmcp:invoke.- JSON-RPC error: method or tool input is invalid.
- Payment challenge: the requested resource has a separate economic requirement.

PerkOS