Fix MCP response format docs to use flat structure #336
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
datawrapper@adcp/clientactually expectsContext
Swivel was implementing their MCP salesagent following our docs, but their implementation didn't match what
@adcp/clientexpects. The docs showed:{ "status": "completed", "data": { "products": [...] } }But
@adcp/clientexpects:{ "status": "completed", "products": [...] }Changes
Files updated:
docs/protocols/mcp-guide.mdx- Updated response format section and examplesdocs/protocols/core-concepts.mdx- Updated response structure and code examplesdocs/protocols/getting-started.mdx- Updated MCP quick comparison exampledocs/protocols/protocol-comparison.mdx- Updated all MCP response examplesdocs/protocols/a2a-guide.mdx- Fixed incorrectresponse.datausage in A2A contextKey changes:
response.data.products→response.productsresponse.data.media_buy_id→response.media_buy_idresponse.data?.errors→response.errorsNote: A2A examples correctly remain with
{"kind": "data", "data": {...}}inside artifact parts, which is proper A2A protocol structure.Test plan
🤖 Generated with Claude Code