Gap
JS SDK adcp-client#2161 added a responseEnhancer server config option applied uniformly to: framework tool responses, custom tools (tasks_get), generated get_adcp_capabilities responses, and credential-policy error responses.
Python has no equivalent — grep for response_enhancer / finalizer / enhancer across decisioning/serve.py and server/serve.py returns nothing, and create_adcp_server_from_platform exposes no such hook. Adopters who want to stamp cross-cutting fields on every response must subclass each handler.
Scope
Add a response_enhancer callback to create_adcp_server_from_platform / create_mcp_server, applied at the same finalizer seam JS uses (framework + custom + generated + error responses).
Needs a seam-design decision before implementation — where exactly the callback runs in the response path, and the callback signature (response in → response out), so it covers all four response classes uniformly without breaking validation hooks.
Notes
- Reference:
adcontextprotocol/adcp-client#2161.
- Single-agent triage verification.
- Filed
no-triage.
Gap
JS SDK
adcp-client#2161added aresponseEnhancerserver config option applied uniformly to: framework tool responses, custom tools (tasks_get), generatedget_adcp_capabilitiesresponses, and credential-policy error responses.Python has no equivalent — grep for
response_enhancer/finalizer/enhanceracrossdecisioning/serve.pyandserver/serve.pyreturns nothing, andcreate_adcp_server_from_platformexposes no such hook. Adopters who want to stamp cross-cutting fields on every response must subclass each handler.Scope
Add a
response_enhancercallback tocreate_adcp_server_from_platform/create_mcp_server, applied at the same finalizer seam JS uses (framework + custom + generated + error responses).Needs a seam-design decision before implementation — where exactly the callback runs in the response path, and the callback signature (response in → response out), so it covers all four response classes uniformly without breaking validation hooks.
Notes
adcontextprotocol/adcp-client#2161.no-triage.