-
Notifications
You must be signed in to change notification settings - Fork 7
SEP 0014 - AI Card Discovery #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Fannon
wants to merge
13
commits into
Agent-Card:main
Choose a base branch
from
Fannon:0000-ai-card-discovery
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
353e693
SEP 0000-ai-card-discovery
Fannon 28ac6c4
SEP 0000-ai-card-discovery
Fannon 1626ae5
The scope could be increased to also indicating the version(s) of the…
Fannon ef8dfb6
Compared to a centralized registry push model, this approach provides…
Fannon 1293928
Restructuring for more clarity
Fannon ab40e0f
Condense SEP for brevity
Fannon 8b98205
Clean up open questions section
Fannon 7865b9f
Add 4th question
Fannon 8152ae5
Improved links section
Fannon b9e1c06
Add to ORD section
Fannon 6ab5a00
Minor clarifications and improvements to text
Fannon 029cc65
Minor updates, adding open question 5 on more fields to add
Fannon 0939c4c
Rename to SEP 0014
Fannon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,127 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "$id": "https://ai-card.org/schemas/ai-card-v0.schema.json", | ||
| "title": "AI Card Discovery Document", | ||
| "description": "Discovery document for AI-native protocols (MCP, A2A, etc.) exposed by a host via /.well-known/ai-cards.json", | ||
| "type": "object", | ||
| "required": ["protocols"], | ||
| "properties": { | ||
| "$schema": { | ||
| "type": "string", | ||
| "description": "URI reference to the JSON Schema for this document", | ||
| "format": "uri", | ||
| "examples": [ | ||
| "https://ai-card.org/schemas/ai-card-v0.schema.json" | ||
| ] | ||
| }, | ||
| "protocols": { | ||
| "type": "array", | ||
| "description": "Array of protocol objects describing AI-native protocols (servers/agents) available on this host. A single host can expose multiple MCP servers and/or multiple A2A agents.", | ||
| "minItems": 1, | ||
| "items": { | ||
| "$ref": "#/$defs/protocol" | ||
| } | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "$defs": { | ||
| "protocol": { | ||
| "type": "object", | ||
| "description": "Describes a single MCP server or A2A agent exposed by this host", | ||
| "required": ["type", "endpoints", "metadata"], | ||
| "properties": { | ||
| "type": { | ||
| "type": "string", | ||
| "description": "The AI protocol type identifier. Current values: 'mcp' for Model Context Protocol servers, 'a2a' for Agent-to-Agent agents. Future AI protocols may be added.", | ||
| "enum": ["mcp", "a2a"], | ||
| "examples": ["mcp", "a2a"] | ||
| }, | ||
| "endpoints": { | ||
| "type": "array", | ||
| "description": "Array of endpoint objects where this protocol server/agent can be accessed", | ||
| "minItems": 1, | ||
| "items": { | ||
| "$ref": "#/$defs/endpoint" | ||
| } | ||
| }, | ||
| "metadata": { | ||
| "$ref": "#/$defs/metadata", | ||
| "description": "Reference to the protocol-specific card metadata file (MCP Server Card or A2A Agent Card)" | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "examples": [ | ||
| { | ||
| "type": "mcp", | ||
| "endpoints": [ | ||
| { | ||
| "url": "https://example.com/mcp/petstore" | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "type": "mcp-server-card", | ||
| "url": "https://example.com/.well-known/petstore.mcp.json" | ||
| } | ||
| }, | ||
| { | ||
| "type": "a2a", | ||
| "endpoints": [ | ||
| { | ||
| "url": "https://api.example.com/agents/customer-service" | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "type": "agent-card", | ||
| "url": "https://api.example.com/.well-known/CustomerServiceAgent.json" | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "endpoint": { | ||
| "type": "object", | ||
| "description": "A single endpoint URL where the protocol can be accessed", | ||
| "required": ["url"], | ||
| "properties": { | ||
| "url": { | ||
| "type": "string", | ||
| "description": "The endpoint URL where this protocol server/agent can be accessed. May be absolute (https://...) or relative (./path, /path). Relative URLs are resolved relative to the location of the discovery document (/.well-known/ai-cards.json). For example, ./mcp-endpoint resolves to /.well-known/mcp-endpoint, and /api/mcp resolves to /api/mcp.", | ||
| "pattern": "^(https?://|/|\\./)", | ||
| "examples": [ | ||
| "https://example.com/mcp-endpoint", | ||
| "https://api.example.com/agents/customer-service", | ||
| "/api/mcp", | ||
| "./mcp-endpoint", | ||
| "../mcp/server" | ||
| ] | ||
| } | ||
| }, | ||
| "additionalProperties": false | ||
| }, | ||
| "metadata": { | ||
| "type": "object", | ||
| "description": "Reference to protocol-specific card metadata. The structure of the metadata file is owned and defined by the protocol community (MCP or A2A). This SEP only defines the discovery mechanism.", | ||
| "required": ["type", "url"], | ||
| "properties": { | ||
| "type": { | ||
| "type": "string", | ||
| "description": "The metadata card type. Identifies the format/schema of the metadata file. Current values: 'mcp-server-card' for MCP Server Cards, 'agent-card' for A2A Agent Cards. Future card types may be added.", | ||
| "enum": ["mcp-server-card", "agent-card"], | ||
| "examples": ["mcp-server-card", "agent-card"] | ||
| }, | ||
| "url": { | ||
| "type": "string", | ||
| "description": "URL to the protocol-specific card metadata file. May be absolute (https://...) or relative (./path, /path). Relative URLs are resolved relative to the location of the discovery document (/.well-known/ai-cards.json). For example, ./petstore.mcp.json resolves to /.well-known/petstore.mcp.json. For MCP: points to an MCP Server Card. For A2A: points to an A2A Agent Card.", | ||
| "pattern": "^(https?://|/|\\./)", | ||
| "examples": [ | ||
| "https://example.com/.well-known/petstore.mcp.json", | ||
| "https://api.example.com/metadata/CustomerServiceAgent.json", | ||
| "./petstore.mcp.json", | ||
| "./PetAgent.json", | ||
| "/metadata/inventory.mcp.json" | ||
| ] | ||
| } | ||
| }, | ||
| "additionalProperties": false | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URL to be decided yet, just a placeholder for the real URL later.