Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .changeset/adcp-extension.md
Original file line number Diff line number Diff line change
@@ -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
31 changes: 30 additions & 1 deletion docs/protocols/a2a-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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](https://adcontextprotocol.org/schemas/v2/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
Expand Down
17 changes: 17 additions & 0 deletions docs/protocols/mcp-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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](https://adcontextprotocol.org/schemas/v2/protocols/adcp-extension.json) for specification details.

### Parameter Validation
```javascript
// MCP provides tool schemas for validation
Expand Down
9 changes: 9 additions & 0 deletions static/schemas/source/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
26 changes: 26 additions & 0 deletions static/schemas/source/protocols/adcp-extension.json
Original file line number Diff line number Diff line change
@@ -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
}