From 06d5df7816e6d668c6619131cd7f9eb87df0f136 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Sat, 22 Nov 2025 09:35:24 -0500 Subject: [PATCH 1/4] Add AdCP extension schema for agent card capability discovery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduces a standardized extension schema that AdCP agents can include in their agent cards (A2A now, MCP when available) to declare protocol version and supported domains programmatically. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .changeset/adcp-extension.md | 31 +++++++++++++++++++ static/schemas/source/index.json | 9 ++++++ .../source/protocols/adcp-extension.json | 26 ++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 .changeset/adcp-extension.md create mode 100644 static/schemas/source/protocols/adcp-extension.json diff --git a/.changeset/adcp-extension.md b/.changeset/adcp-extension.md new file mode 100644 index 00000000000..f22bb99583f --- /dev/null +++ b/.changeset/adcp-extension.md @@ -0,0 +1,31 @@ +--- +"adcontextprotocol": minor +--- + +Add AdCP extension schema for agent card capability discovery + +Introduces a standardized extension schema that AdCP agents can include in their agent cards to declare protocol version and supported domains programmatically. + +**New schema:** `adcp-extension.json` + +**Usage:** +- A2A agents: Include `extensions.adcp` in `/.well-known/agent.json` +- MCP servers: Will include `extensions.adcp` in server info once MCP adds server card support + +**Extension structure:** +```json +{ + "extensions": { + "adcp": { + "adcp_version": "2.4.0", + "protocols_supported": ["media_buy", "creative", "signals"] + } + } +} +``` + +**Benefits:** +- Clients can discover AdCP capabilities without test calls +- Agents declare which domains they implement +- Version information enables compatibility checks +- Same extension works for both A2A and MCP protocols diff --git a/static/schemas/source/index.json b/static/schemas/source/index.json index 8e922a90568..ff8dab45c44 100644 --- a/static/schemas/source/index.json +++ b/static/schemas/source/index.json @@ -567,6 +567,15 @@ "$ref": "/schemas/adagents.json", "file_location": "/.well-known/adagents.json", "purpose": "Declares which sales agents are authorized to sell a publisher's advertising inventory" + }, + "protocols": { + "description": "Protocol-level schemas for agent card extensions", + "schemas": { + "adcp-extension": { + "$ref": "/schemas/protocols/adcp-extension.json", + "description": "AdCP extension for agent cards (MCP and A2A). Declares AdCP version and supported protocol domains." + } + } } }, "usage": { diff --git a/static/schemas/source/protocols/adcp-extension.json b/static/schemas/source/protocols/adcp-extension.json new file mode 100644 index 00000000000..b383e4e6756 --- /dev/null +++ b/static/schemas/source/protocols/adcp-extension.json @@ -0,0 +1,26 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "/schemas/protocols/adcp-extension.json", + "title": "AdCP Agent Card Extension", + "description": "Extension metadata for agent cards (MCP and A2A) declaring AdCP version and supported protocol domains", + "type": "object", + "properties": { + "adcp_version": { + "type": "string", + "pattern": "^\\d+\\.\\d+\\.\\d+$", + "description": "Semantic version of the AdCP specification this agent implements (e.g., '2.4.0')" + }, + "protocols_supported": { + "type": "array", + "items": { + "type": "string", + "enum": ["media_buy", "creative", "signals"] + }, + "minItems": 1, + "uniqueItems": true, + "description": "AdCP protocol domains supported by this agent. At least one must be specified." + } + }, + "required": ["adcp_version", "protocols_supported"], + "additionalProperties": false +} From 5a856c197e7c59f274ee10ae4c0ffb2047e1c358 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Sat, 22 Nov 2025 09:37:39 -0500 Subject: [PATCH 2/4] Document AdCP extension usage in A2A and MCP guides MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shows how A2A agents should include the extension in agent cards (now), and notes that MCP servers will include it in server info (future). Includes examples of checking for AdCP support programmatically. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docs/protocols/a2a-guide.mdx | 31 ++++++++++++++++++++++++++++++- docs/protocols/mcp-guide.mdx | 17 +++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/docs/protocols/a2a-guide.mdx b/docs/protocols/a2a-guide.mdx index 1779de20e6b..3347c589f9d 100644 --- a/docs/protocols/a2a-guide.mdx +++ b/docs/protocols/a2a-guide.mdx @@ -433,10 +433,39 @@ console.log('Examples:', getProductsSkill.examples); "Show me video products under $50 CPM" ] } - ] + ], + "extensions": { + "adcp": { + "adcp_version": "2.4.0", + "protocols_supported": ["media_buy"] + } + } +} +``` + +### AdCP Extension + +**Recommended**: Include the `extensions.adcp` field in your agent card to declare AdCP support programmatically. + +```javascript +// Check if agent supports AdCP +const agentCard = await fetch('https://sales.example.com/.well-known/agent.json') + .then(r => r.json()); + +if (agentCard.extensions?.adcp) { + console.log('AdCP Version:', agentCard.extensions.adcp.adcp_version); + console.log('Supported domains:', agentCard.extensions.adcp.protocols_supported); + // ["media_buy", "creative", "signals"] } ``` +**Extension Structure**: See the [AdCP extension schema](/schemas/v1/protocols/adcp-extension.json) for complete specification. + +**Benefits**: +- Clients can discover AdCP capabilities without making test calls +- Declare which protocol domains you implement (media_buy, creative, signals) +- Enable compatibility checks based on version + ## Integration Example ```javascript diff --git a/docs/protocols/mcp-guide.mdx b/docs/protocols/mcp-guide.mdx index 1a2f43d0e1a..74f50204a10 100644 --- a/docs/protocols/mcp-guide.mdx +++ b/docs/protocols/mcp-guide.mdx @@ -421,6 +421,23 @@ const adcpTools = tools.filter(t => t.name.startsWith('adcp_') || ['get_products', 'create_media_buy'].includes(t.name)); ``` +### AdCP Extension (Future) + +**Status**: MCP server cards are expected in a future MCP release. When available, AdCP servers will include the AdCP extension. + +```json +{ + "extensions": { + "adcp": { + "adcp_version": "2.4.0", + "protocols_supported": ["media_buy", "creative", "signals"] + } + } +} +``` + +This will allow clients to programmatically discover which AdCP version and protocol domains an MCP server implements. See the [AdCP extension schema](/schemas/v1/protocols/adcp-extension.json) for specification details. + ### Parameter Validation ```javascript // MCP provides tool schemas for validation From fe0b838e526797b2e7fe6e86d1fa3590189561a8 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Sat, 22 Nov 2025 09:41:11 -0500 Subject: [PATCH 3/4] Fix schema links in documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove v1 from schema paths - the versioning is handled automatically by the build system. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docs/protocols/a2a-guide.mdx | 2 +- docs/protocols/mcp-guide.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/protocols/a2a-guide.mdx b/docs/protocols/a2a-guide.mdx index 3347c589f9d..3ce305f94e6 100644 --- a/docs/protocols/a2a-guide.mdx +++ b/docs/protocols/a2a-guide.mdx @@ -459,7 +459,7 @@ if (agentCard.extensions?.adcp) { } ``` -**Extension Structure**: See the [AdCP extension schema](/schemas/v1/protocols/adcp-extension.json) for complete specification. +**Extension Structure**: See the [AdCP extension schema](/schemas/protocols/adcp-extension.json) for complete specification. **Benefits**: - Clients can discover AdCP capabilities without making test calls diff --git a/docs/protocols/mcp-guide.mdx b/docs/protocols/mcp-guide.mdx index 74f50204a10..1d8ca81c5f4 100644 --- a/docs/protocols/mcp-guide.mdx +++ b/docs/protocols/mcp-guide.mdx @@ -436,7 +436,7 @@ const adcpTools = tools.filter(t => t.name.startsWith('adcp_') || } ``` -This will allow clients to programmatically discover which AdCP version and protocol domains an MCP server implements. See the [AdCP extension schema](/schemas/v1/protocols/adcp-extension.json) for specification details. +This will allow clients to programmatically discover which AdCP version and protocol domains an MCP server implements. See the [AdCP extension schema](/schemas/protocols/adcp-extension.json) for specification details. ### Parameter Validation ```javascript From 3555cabd069b8e96686c64f1b8d628dc3251ec00 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Sat, 22 Nov 2025 09:41:43 -0500 Subject: [PATCH 4/4] Use full URLs for schema links in documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Point to adcontextprotocol.org URLs instead of local paths to match documentation conventions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docs/protocols/a2a-guide.mdx | 2 +- docs/protocols/mcp-guide.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/protocols/a2a-guide.mdx b/docs/protocols/a2a-guide.mdx index 3ce305f94e6..86e5b3df79f 100644 --- a/docs/protocols/a2a-guide.mdx +++ b/docs/protocols/a2a-guide.mdx @@ -459,7 +459,7 @@ if (agentCard.extensions?.adcp) { } ``` -**Extension Structure**: See the [AdCP extension schema](/schemas/protocols/adcp-extension.json) for complete specification. +**Extension Structure**: See the [AdCP extension schema](https://adcontextprotocol.org/schemas/v2/protocols/adcp-extension.json) for complete specification. **Benefits**: - Clients can discover AdCP capabilities without making test calls diff --git a/docs/protocols/mcp-guide.mdx b/docs/protocols/mcp-guide.mdx index 1d8ca81c5f4..b4f615e16aa 100644 --- a/docs/protocols/mcp-guide.mdx +++ b/docs/protocols/mcp-guide.mdx @@ -436,7 +436,7 @@ const adcpTools = tools.filter(t => t.name.startsWith('adcp_') || } ``` -This will allow clients to programmatically discover which AdCP version and protocol domains an MCP server implements. See the [AdCP extension schema](/schemas/protocols/adcp-extension.json) for specification details. +This will allow clients to programmatically discover which AdCP version and protocol domains an MCP server implements. See the [AdCP extension schema](https://adcontextprotocol.org/schemas/v2/protocols/adcp-extension.json) for specification details. ### Parameter Validation ```javascript