Title: Phase 2: MCP-side Agent Card auto-generation from ADCPHandler overrides (PR-S) · Issue #228 · adcontextprotocol/adcp-client-python · GitHub
Open Graph Title: Phase 2: MCP-side Agent Card auto-generation from ADCPHandler overrides (PR-S) · Issue #228 · adcontextprotocol/adcp-client-python
X Title: Phase 2: MCP-side Agent Card auto-generation from ADCPHandler overrides (PR-S) · Issue #228 · adcontextprotocol/adcp-client-python
Description: Summary 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, ...
Open Graph Description: Summary 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 equivalen...
X Description: Summary 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 equiv...
Opengraph URL: https://github.com/adcontextprotocol/adcp-client-python/issues/228
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Phase 2: MCP-side Agent Card auto-generation from ADCPHandler overrides (PR-S)","articleBody":"## Summary\n\nA2A 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.\n\n## Proposed fix\n\nExpose a `build_agent_card()` helper on the MCP path that mirrors the A2A derivation:\n\n```python\nfrom adcp.server import build_agent_card\n\ncard = build_agent_card(MyAgent(), name=\"my-agent\", url=\"https://agent.example.com\")\n# Writes a JSON-serializable dict matching the AdCP agent-card spec\n```\n\nThe 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.\n\n## Acceptance\n\n- Helper exposed from `adcp.server`.\n- Reads handler-method overrides the same way `get_tools_for_handler()` and A2A's `_build_agent_card()` do, so the three stay in sync.\n- Reference pattern in `examples/mcp_with_auth_middleware.py` or a new `examples/serve_with_agent_card.py`.\n- Unit test asserting the card reflects the set of overridden methods.\n\n## Blocker on: #220\n\nThis 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.\n\n## Context\n\nRoadmap 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.","author":{"url":"https://github.com/bokelley","@type":"Person","name":"bokelley"},"datePublished":"2026-04-20T06:07:33Z","url":"https://github.com/adcontextprotocol/adcp-client-python/issues/228"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:54dd06fe-88b3-79af-4917-57362a91bab3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9C0:16EED3:AC20DE:DBF81C:6B00F6A6 |
| html-safe-nonce | 95f1e5f594e2d43305c229749f5d51704f8d637a84c3415c7bcc29fc01386e88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUMwOjE2RUVEMzpBQzIwREU6REJGODFDOjZCMDBGNkE2IiwidmlzaXRvcl9pZCI6IjcxNzYwNDE0NDAyNDAyNjg5NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c5ec8cb8779162716f43f5d866704c3b92eed0f9a9187023c85af4b38d210a6b |
| hovercard-subject-tag | issue:4293474908 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/adcontextprotocol/adcp-client-python/228/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1cae92ff27ac9af55b867dfea9421735eb39603cc77ebddd94d56b19fa6e6f0/adcontextprotocol/adcp-client-python/issues/228 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1cae92ff27ac9af55b867dfea9421735eb39603cc77ebddd94d56b19fa6e6f0/adcontextprotocol/adcp-client-python/issues/228 |
| og:image:alt | Summary 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 equivalen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bokelley |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/adcontextprotocol/adcp-client-python git https://github.com/adcontextprotocol/adcp-client-python.git |
| octolytics-dimension-user_id | 221690821 |
| octolytics-dimension-user_login | adcontextprotocol |
| octolytics-dimension-repository_id | 1090305973 |
| octolytics-dimension-repository_nwo | adcontextprotocol/adcp-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1090305973 |
| octolytics-dimension-repository_network_root_nwo | adcontextprotocol/adcp-client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width