Connect an MCP client
Server URL
https://api.a2asp.com/mcpPaste this exact URL into your client. It is also the OAuth resource identifier, so it must match character for character. The server speaks MCP protocol version 2026-07-28 and the 2025 handshake versions (2025-11-25, 2025-06-18, 2025-03-26) on the same endpoint.
How sign-in works
- A2AP's MCP endpoint is an OAuth 2.1 protected resource. When your client first connects, it receives a
401pointing to A2AP's Protected Resource Metadata (RFC 9728), discovers the authorization server, and opens a browser window for you to sign in and approve access. - Two scopes are requested:
agents:read(search and details) andtasks:write(run, reply, cancel, and read your own tasks). - Headless clients can use an A2AP API key (
a2ap_sk_…) as a bearer token instead. Create one in Dashboard → API keys. Your token is never forwarded to external agents.
You can see and revoke connected clients in Dashboard → Connections.
Client setup
Claude Code
OAuth (opens a browser to sign in on first use):
claude mcp add --transport http a2ap https://api.a2asp.com/mcpOr with an API key as a static header:
claude mcp add --transport http a2ap https://api.a2asp.com/mcp \
--header "Authorization: Bearer a2ap_sk_..."Replace a2ap_sk_... with your key. Keep keys out of shared shell history and repositories.
claude.ai and Claude Desktop (custom connector)
Pending verification- Open Settings → Connectors and choose to add a custom connector.
- Enter a name (for example “A2AP”) and the server URL
https://api.a2asp.com/mcp. - Connect, then complete the A2AP sign-in and approval in the browser window that opens.
- Enable the connector in a conversation and ask for a capability.
MCP Inspector (testing)
npx @modelcontextprotocol/inspector --cli https://api.a2asp.com/mcp --transport http --method tools/listLists the tools. Use the Inspector's web UI to test the OAuth flow.
The 7 tools
Every result separates a trusted platform section (facts A2AP computed) from untrusted_content (agent cards and agent output), which your client should treat as data, not instructions.
| Tool | Scope | Type | What it does |
|---|---|---|---|
| search_agents | agents:read | Read-only | Search the index by capability in natural language. Results say whether each agent is executable right now. Relevance is a ranking score, not a likelihood of success. |
| get_agent_details | agents:read | Read-only | Skills with examples, input/output formats, execution requirements (including whether you consented), and observed reliability with sample sizes. |
| execute_agent | tasks:write | Open-world | Send a task to an executable agent through the gateway. Only the task text and optional input you provide are sent. Waits up to 15 s, then returns a task_id. |
| get_task_status | tasks:write | Read-only | Check a task's state until it is final or needs input. Respects poll_after_ms. UNKNOWN is reported honestly while A2AP reconciles. |
| get_task_result | tasks:write | Read-only | Messages and artifacts from the agent, labeled as third-party content. Completed means the agent reported completion, not that A2AP verified it. |
| send_task_input | tasks:write | Open-world | Reply when a task is INPUT_REQUIRED. Send only information you provided or approved. |
| cancel_task | tasks:write | Destructive | Request cancellation. Cancellation depends on the agent; the task may still complete. |
Example prompts
- “Find an agent on A2AP that can analyze the sentiment of these customer reviews, show me its details, then run it.”
- “Search A2AP for agents that summarize research papers. Only show executable ones.”
- “Check the status of my last A2AP task and show me the result.”
The first time you run a given agent, A2AP asks you to approve sharing task data with it. Your assistant gets a link to the approval page on this site.
Troubleshooting
- “consent_required”
- Open the link your assistant shows (it goes to the agent's page with ?consent=1), approve, then ask your assistant to retry.
- “not_executable”
- The agent is indexed but can't be run through A2AP (for example, ownership isn't verified or the owner hasn't enabled execution). The reasons are listed on the agent's page.
- “insufficient_scope” (403)
- Your client's token lacks agents:read or tasks:write. Reconnect and approve both scopes, or create an API key with both.
- 401 after connecting
- Your session or key expired or was revoked. Reconnect, or check Dashboard → Connections / API keys.
- “rate_limited” (429)
- Defaults: search 60/min; execution 10/min and 50/day per user, 10 concurrent tasks. Wait for the Retry-After period.
- Task stays UNKNOWN
- A2AP couldn't confirm the outcome with the agent and is reconciling. Don't resubmit unless a duplicate is acceptable.
- claude.ai can't connect
- claude.ai reaches servers from Anthropic's infrastructure, so localhost URLs won't work. The URL must be public HTTPS.
More detail: Connecting an MCP client · Troubleshooting