You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A2A transports auto-derive an AgentCard from the ADCPHandler methods the subclass overrides (_build_agent_card() in src/adcp/server/a2a_server.py). MCP transports don't expose any equivalent — MCP discovery relies on tools/list, and any external agent-card metadata (for registry listings, marketplace entries, .well-known/adcp.json) has to be hand-maintained.
Proposed fix
Expose a build_agent_card() helper on the MCP path that mirrors the A2A derivation:
fromadcp.serverimportbuild_agent_cardcard=build_agent_card(MyAgent(), name="my-agent", url="https://agent.example.com")
# Writes a JSON-serializable dict matching the AdCP agent-card spec
The helper is invoked by the seller at their own discretion (not auto-mounted — different deployments want different hosting paths for .well-known/adcp.json etc.). Dedup between MCP and A2A agent-card derivation happens at the data layer.
Acceptance
Helper exposed from adcp.server.
Reads handler-method overrides the same way get_tools_for_handler() and A2A's _build_agent_card() do, so the three stay in sync.
Reference pattern in examples/mcp_with_auth_middleware.py or a new examples/serve_with_agent_card.py.
Unit test asserting the card reflects the set of overridden methods.
This becomes much more useful after #220 (advertised-tools gate) lands — the agent card should only advertise tools the handler actually implemented, not all 57 AdCP tool stubs.
Context
Roadmap item PR-S (Phase 2). Not urgent for salesagent's adoption (they maintain their own agent card today); becomes valuable as the SDK becomes the default onboarding path for new agent authors.
MCP protocol has no .well-known/* agent-discovery file — discovery is JSON-RPC (initialize + tools/list). The AdCP-level agent discovery answer is the get_adcp_capabilities skill, which every handler already implements.
AdCP spec only defines .well-known/brand.json (brand identity, domain-level) and .well-known/jwks.json (signature keys). Neither is an agent-card analog.
On A2A the Agent Card is a first-class transport artifact (a2a-sdk requires one at /.well-known/agent.json) — that's why we auto-derive it there. MCP has no equivalent requirement, so there's no symmetry gap to close.
If AdCP ever adopts an agent-level discovery file, we'll revisit. For now: closed as not-a-real-problem.
Activity
bokelley commentedon Apr 20, 2026
Closing: the premise isn't valid.
MCP protocol has no
.well-known/*agent-discovery file — discovery is JSON-RPC (initialize+tools/list). The AdCP-level agent discovery answer is theget_adcp_capabilitiesskill, which every handler already implements.AdCP spec only defines
.well-known/brand.json(brand identity, domain-level) and.well-known/jwks.json(signature keys). Neither is an agent-card analog.On A2A the Agent Card is a first-class transport artifact (a2a-sdk requires one at
/.well-known/agent.json) — that's why we auto-derive it there. MCP has no equivalent requirement, so there's no symmetry gap to close.If AdCP ever adopts an agent-level discovery file, we'll revisit. For now: closed as not-a-real-problem.