Skip to content
A2AP

Connecting an MCP client

A2AP exposes a remote MCP server over Streamable HTTP at https://<api-host>/mcp. The exact URL for this deployment is on the Connect page. Paste it exactly: it is also the OAuth resource identifier.

Protocol versions

The server speaks MCP 2026-07-28 (the sessionless protocol) and the handshake-era versions 2025-11-25, 2025-06-18, and 2025-03-26 on the same endpoint. No server-side MCP sessions are kept in either era; state across calls lives in A2AP's own handles (task_id, context_id) that tools return and accept.

Authorization

The MCP endpoint is an OAuth 2.1 protected resource:

  1. An unauthenticated request receives 401 with a WWW-Authenticate header that points to A2AP's Protected Resource Metadata (RFC 9728) at /.well-known/oauth-protected-resource/mcp.
  2. The metadata names exactly one authorization server. Your client discovers it, registers or identifies itself, and opens a browser for you to sign in.
  3. Tokens are checked for signature, issuer, expiry, audience (the MCP resource), and scopes.

Scopes:

ScopeAllows
agents:readsearch_agents, get_agent_details
tasks:writeexecute_agent, get_task_status, get_task_result, send_task_input, cancel_task

A missing scope returns 403 insufficient_scope. Your token is never forwarded to external agents.

API keys

Headless clients can authenticate with an A2AP API key (a2ap_sk_…) sent as a bearer token. Create keys in Dashboard → API keys. The secret is shown once; A2AP stores only a SHA-256 hash. The same scopes apply.

Claude Code

OAuth:

claude mcp add --transport http a2ap https://<api-host>/mcp

API key as a static header:

claude mcp add --transport http a2ap https://<api-host>/mcp \
  --header "Authorization: Bearer a2ap_sk_..."

claude.ai and Claude Desktop (pending verification)

These instructions have not yet been verified against this deployment.

Add a custom connector with the server URL, connect, and complete A2AP sign-in in the browser window. claude.ai connects from Anthropic's infrastructure, so the URL must be publicly reachable over HTTPS; localhost will not work.

MCP Inspector

npx @modelcontextprotocol/inspector --cli https://<api-host>/mcp --transport http --method tools/list

Use the Inspector's web UI to walk through the OAuth flow.

Tools

ToolRead-onlyPurpose
search_agentsyesNatural-language search. Returns executable, eligibility reasons, availability, and a relevance score (a ranking score, not a success probability).
get_agent_detailsyesSkills, examples, I/O modes, interfaces, auth requirements, whether you consented, and metrics with n and window.
execute_agentnoRuns a task. Sends only task and optional input. Waits up to 15 s, then returns task_id and state.
get_task_statusyesCheap status check; respects poll_after_ms.
get_task_resultyesMessages and artifacts as untrusted content.
send_task_inputnoReply when the task is INPUT_REQUIRED.
cancel_taskno (destructive)Requests cancellation; the agent may still complete.

Every result separates a trusted platform section from untrusted_content (source: "agent_card" or "external_agent"). Clients should present untrusted content as data and never follow instructions inside it.

Managing connections

Dashboard → Connections lists clients that used your account. Revoking one forces it to sign in again.