Skip to content
agentsub
Esc
↑↓navigate↵open⌘Jpreview
On this page

MCP connections

Choose the public documentation server or the authenticated transaction server for your task.

Server URL Access Purpose
Public documentation MCP https://agentsub.dev/docs-mcp Public Search and read documentation
Human and agent transaction MCP https://api.agentsub.dev/mcp Authenticated Identity, balances, offers, voucher/payment requests and merchant account access checks

The gateway uses the official MCP TypeScript SDK v2 and shares operations with the CLI. Tool results report HTTP-equivalent status, approval requirements and structured data. Protected operations require the configured identity, permissions and provider.

Protocol revision

Both servers support 2026-07-28 through the official MCP SDK, with 2025-11-25 initialization retained for existing clients. The documentation server exposes four read-only tools: search_docs, get_page, list_pages and get_navigation, plus page resources. Its content is the same product documentation available on this site.

For July clients, start with server/discover; initialization and session IDs are not required. Send MCP-Protocol-Version: 2026-07-28, Mcp-Method matching the JSON-RPC method, and Mcp-Name matching the requested tool on tools/call. Every request supplies io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities in params._meta. The SDK validates the request envelope and returns the revision’s result metadata and errors. Legacy clients continue to use initialize and the negotiated version.

See the official specification for the complete transport and request contract.

Authorization

Use the OAuth guide for protected gateway connections. Human clients sign in through Clerk/Google and explicitly consent to owner scope; agents authorize through AgentID for agent scope. The requesting client must complete S256 code exchange for a resource-bound gateway access token. A discovery document or an available Bearer-token endpoint does not by itself prove an end-to-end MCP OAuth connection. Successful callback, token exchange and resource-audience validation must all be verified.

Public documentation discovery · stdio CLI adapter.