### Host Info JSON example Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Example of a Host Info object with required displayName and optional identifier, documentationUrl, and logoUrl fields. ```json { "displayName": "Acme Enterprise AI", "identifier": "did:web:acme-corp.com", "documentationUrl": "https://docs.acme-corp.com/ai", "logoUrl": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0c..." } ``` -------------------------------- ### Serve catalog at well-known path Source: https://github.com/agent-card/ai-catalog/blob/main/docs/getting-started.md The catalog file must be accessible at this HTTPS URL so AI clients can discover it automatically via the well-known URI. ```text https://yourdomain.com/.well-known/ai-catalog.json ``` -------------------------------- ### Fetch catalog content with curl Source: https://github.com/agent-card/ai-catalog/blob/main/docs/getting-started.md Retrieves the JSON content of the catalog to confirm it is served correctly. ```bash curl https://yourdomain.com/.well-known/ai-catalog.json ``` -------------------------------- ### Create ai-catalog.json with a minimal entry Source: https://github.com/agent-card/ai-catalog/blob/main/docs/getting-started.md Defines the initial catalog file with specVersion and one MCP server entry. Replace identifier and url with actual artifact details; type can be application/mcp-server-card+json, application/a2a-agent-card+json, or another media type. ```json { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:myorg.com:mcp:my-server", "type": "application/mcp-server-card+json", "url": "https://api.myorg.com/mcp/server-card" } ] } ``` -------------------------------- ### Minimal AI Catalog JSON Example Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Shows a minimal catalog with four entries, each using a different artifact type. The 'specVersion' must be in 'Major.Minor' format, and 'entries' may be empty. ```json { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:example.com:skill:code-review", "displayName": "Code Review Assistant", "type": "application/agent-skills+zip", "url": "https://skills.example.com/code-review/skill.zip" }, { "identifier": "urn:air:example.com:mcp:weather", "type": "application/mcp-server-card+json", "url": "https://api.example.com/mcp/server-card" }, { "identifier": "urn:air:example.com:a2a:research", "type": "application/a2a-agent-card+json", "url": "https://agents.example.com/researchAssistant" }, { "identifier": "urn:air:example.com:agent:productivity-plugin", "displayName": "Productivity Plugin", "type": "application/agent-plugins+zip", "description": "Tools for common productivity workflows.", "tags": ["productivity", "workflows"], "url": "https://plugins.example.com/productivity.zip" } ] } ``` -------------------------------- ### Verify catalog with curl HEAD request Source: https://github.com/agent-card/ai-catalog/blob/main/docs/getting-started.md Checks that the catalog is accessible and returns the expected Content-Type header (application/ai-catalog+json or application/json). ```bash curl -I https://yourdomain.com/.well-known/ai-catalog.json ``` -------------------------------- ### Level 2 Catalog with host object Source: https://github.com/agent-card/ai-catalog/blob/main/docs/examples/minimal-catalog.md Upgrade to Level 2 (Discoverable) by adding a host object with displayName and identifier. Serve the catalog at /.well-known/ai-catalog.json to enable automated domain-level discovery. The entries array is abbreviated with [...] in the source. ```json { "specVersion": "1.0", "host": { "displayName": "Example Corp", "identifier": "did:web:example.com" }, "entries": [...] } ``` -------------------------------- ### Example AI Catalog JSON Source: https://github.com/agent-card/ai-catalog/blob/main/docs/index.md Shows the basic structure of an AI Catalog file with specVersion, host identity, and entries pointing to MCP server, A2A agent, and nested catalog cards. Serve this at /.well-known/ai-catalog.json for client discovery. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Corp", "identifier": "did:web:acme-corp.com" }, "entries": [ { "identifier": "urn:air:acme-corp.com:mcp:weather", "type": "application/mcp-server-card+json", "url": "https://api.acme-corp.com/mcp/server-card" }, { "identifier": "urn:air:acme-corp.com:a2a:research", "type": "application/a2a-agent-card+json", "url": "https://agents.acme-corp.com/research" }, { "identifier": "urn:air:acme-corp.com:catalog:finance", "displayName": "Finance Suite", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/finance.json" } ] } ``` -------------------------------- ### Trust Schema Object JSON example Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Example of a Trust Schema object with identifier, version, governanceUri, and verificationMethods. The governanceUri and verificationMethods members are optional. ```json { "identifier": "urn:trust:acme-enterprise-v1", "version": "1.0", "governanceUri": "https://acme-corp.com/trust/governance.pdf", "verificationMethods": ["did", "x509"] } ``` -------------------------------- ### Variation: Using url Instead of data Source: https://github.com/agent-card/ai-catalog/blob/main/docs/examples/multi-protocol-agent.md Alternative representation for the outer agent entry when the inner catalog is large or updated independently. References the inner catalog via a url instead of embedding it inline. ```json { "identifier": "urn:air:acme-corp.com:agent:finance", "displayName": "Acme Finance Agent", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/agents/finance-protocols.json" } ``` -------------------------------- ### Multi-Protocol Agent Catalog with Nested Entries Source: https://github.com/agent-card/ai-catalog/blob/main/docs/examples/multi-protocol-agent.md Shows a single logical agent entry that supports both MCP and A2A protocols by nesting a catalog with protocol-specific entries in the data field. The outer entry has type application/ai-catalog+json and includes trust manifests. Inner entries omit displayName because their native formats carry canonical names. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Financial Corp", "identifier": "did:web:acme-corp.com" }, "entries": [ { "identifier": "urn:air:acme-corp.com:agent:finance", "displayName": "Acme Finance Agent", "type": "application/ai-catalog+json", "description": "Finance agent accessible via both MCP and A2A protocols.", "tags": ["finance", "dual-protocol"], "publisher": { "identifier": "did:web:acme-corp.com", "displayName": "Acme Financial Corp" }, "data": { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:acme-corp.com:mcp:finance", "type": "application/mcp-server-card+json", "url": "https://api.acme-corp.com/mcp/server-card" }, { "identifier": "urn:air:acme-corp.com:a2a:finance", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/finance" } ] }, "trustManifests": [ { "contributor": "did:web:acme-corp.com", "attestations": [ { "type": "SOC2-Type2", "uri": "https://trust.acme-corp.com/reports/soc2.pdf", "digest": "sha256:a1b2c3d4e5f67890abcdef1234567890abcdef1234567890abcdef1234567890" } ] } ] } ] } ``` -------------------------------- ### Add host object for Level 2 Discoverable catalog Source: https://github.com/agent-card/ai-catalog/blob/main/docs/getting-started.md Extends the catalog to Level 2 by adding a host object with displayName and identifier (e.g., did:web:myorg.com). The entries array is abbreviated with [...]. ```json { "specVersion": "1.0", "host": { "displayName": "My Organization", "identifier": "did:web:myorg.com" }, "entries": [...] } ``` -------------------------------- ### Hierarchical catalog with nested entries Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/organizing-catalogs.md Example of a full AI Catalog document that mixes direct artifact entries with nested catalog references for departmental organization. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Enterprise AI", "identifier": "did:web:acme-corp.com" }, "entries": [ { "identifier": "urn:air:acme-corp.com:a2a:assistant", "version": "3.0.0", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/assistant.json", "description": "General-purpose corporate assistant agent." }, { "identifier": "urn:air:acme-corp.com:catalog:finance", "displayName": "Finance Services", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/finance.json", "description": "Financial agents, MCP servers, and datasets.", "tags": ["finance", "trading", "compliance"] }, { "identifier": "urn:air:acme-corp.com:catalog:engineering", "displayName": "Engineering Tools", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/engineering.json", "description": "CI/CD agents, code review tools, and DevOps servers.", "tags": ["engineering", "devops", "ci-cd"] }, { "identifier": "urn:air:acme-corp.com:catalog:ml-models", "displayName": "ML Models", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/ml-models.json", "description": "Model cards and inference endpoints.", "tags": ["ml", "models", "inference"] } ] } ``` -------------------------------- ### Minimal Catalog JSON (Level 1) Source: https://github.com/agent-card/ai-catalog/blob/main/docs/examples/minimal-catalog.md The simplest valid AI Catalog with specVersion and entries. Each entry requires identifier, type, and url (or data). The identifier uses the urn:air:{domain}:{namespace}:{name} format. displayName is optional; MCP server and A2A agent entries omit it because those formats carry their own canonical names. ```json { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:example.com:skill:code-review", "displayName": "Code Review Assistant", "type": "application/agent-skills+zip", "url": "https://skills.example.com/code-review/skill.zip" }, { "identifier": "urn:air:example.com:mcp:weather", "type": "application/mcp-server-card+json", "url": "https://api.example.com/mcp/server-card" }, { "identifier": "urn:air:example.com:a2a:research", "type": "application/a2a-agent-card+json", "url": "https://agents.example.com/researchAssistant" } ] } ``` -------------------------------- ### OCI Image Index Example for AI Catalog Source: https://github.com/agent-card/ai-catalog/blob/main/docs/mappings/oci-distribution.md Shows the OCI physical representation of an AI Catalog containing two entries, generated by tooling rather than authored by hand. The index uses mediaType application/vnd.oci.image.index.v1+json and artifactType application/ai-catalog+json, with each manifest annotated with ai-catalog.identifier and ai-catalog.displayName. ```json { "schemaVersion": 2, "mediaType": "application/vnd.oci.image.index.v1+json", "artifactType": "application/ai-catalog+json", "manifests": [ { "mediaType": "application/vnd.oci.image.manifest.v1+json", "digest": "sha256:aaa111...", "size": 1024, "artifactType": "application/a2a-agent-card+json", "annotations": { "ai-catalog.identifier": "urn:air:acme.com:agent:finance-a2a", "ai-catalog.displayName": "Acme Finance A2A Agent" } }, { "mediaType": "application/vnd.oci.image.manifest.v1+json", "digest": "sha256:bbb222...", "size": 512, "artifactType": "application/mcp-server-card+json", "annotations": { "ai-catalog.identifier": "urn:air:acme.com:server:finance-mcp", "ai-catalog.displayName": "Acme Finance MCP Server" } } ], "annotations": { "ai-catalog.specVersion": "1.0", "ai-catalog.host.displayName": "Acme Services Inc." } } ``` -------------------------------- ### Nested catalog entry example Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/organizing-catalogs.md Shows a catalog entry with type application/ai-catalog+json that references another catalog. The displayName is recommended because a catalog document lacks an intrinsic name. ```json { "identifier": "urn:air:acme-corp.com:catalog:finance", "displayName": "Finance Services", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/finance.json", "description": "Financial agents, MCP servers, and datasets.", "tags": ["finance", "trading", "compliance"] } ``` -------------------------------- ### Signed release-only manifest payload example Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Shows the JSON payload for a signed release-only manifest, omitting the immediate jws and additionalSignatures members. The payload must be canonicalized with JCS and its UTF-8 bytes used as the JWS payload. ```json { "contributor": "did:web:acme.com", "subject": { "identifier": "urn:air:acme.com:agent:finance", "type": "application/a2a-agent-card+json", "digest": "sha256:56bbd2ff730d81a52951fc2f58809dfb086b4be7a82766dcc18cfe32ff6acbbd" }, "signature": { "signer": "did:web:acme.com", "profile": "did-web-v1", "issuedAt": "2026-09-12T10:00:00Z" } } ``` -------------------------------- ### Synthetic marketplace.json with plugin metadata Source: https://github.com/agent-card/ai-catalog/blob/main/docs/mappings/claude-code-plugins.md Represents a Claude Code marketplace with one plugin, covering representative marketplace and plugin metadata. The operator resolves the installation source and publishes or references `.claude-plugin/plugin.json` at a stable URL. ```json { "name": "example-tools", "description": "Claude Code plugins maintained by the Example Marketplace Team", "version": "2026.1", "owner": { "name": "Example Marketplace Team", "email": "marketplace@example.com" }, "plugins": [ { "name": "review-tools", "category": "development", "tags": ["code-review"], "source": { "source": "git-subdir", "url": "https://git.example/example/claude-plugins.git", "path": "plugins/review-tools", "ref": "v1.2.0" }, "strict": true } ] } ``` -------------------------------- ### Finance sub-catalog JSON at finance.json Source: https://github.com/agent-card/ai-catalog/blob/main/docs/examples/nested-catalogs.md Sub-catalog owned by the Finance team, hosted independently of the root. Contains A2A agent, MCP server, and Parquet dataset entries. Dataset entries set displayName because Parquet files lack a human-readable name. Can be updated without touching the root catalog. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Finance Team", "identifier": "did:web:finance.acme-corp.com" }, "entries": [ { "identifier": "urn:air:acme-corp.com:a2a:finance", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/finance.json", "tags": ["finance", "trading"] }, { "identifier": "urn:air:acme-corp.com:mcp:finance", "type": "application/mcp-server-card+json", "url": "https://api.acme-corp.com/mcp/server-card", "tags": ["finance", "mcp"] }, { "identifier": "urn:air:acme-corp.com:data:market-2026q1", "displayName": "Market Dataset Q1 2026", "type": "application/parquet", "url": "https://data.acme-corp.com/market-2026q1.parquet", "tags": ["dataset", "finance"] } ] } ``` -------------------------------- ### Root catalog JSON at /.well-known/ai-catalog.json Source: https://github.com/agent-card/ai-catalog/blob/main/docs/examples/nested-catalogs.md Root catalog for an enterprise, listing direct entries and nested catalog references. Direct entries like the A2A assistant omit displayName; nested catalog entries use type application/ai-catalog+json and include displayName. Clients fetch this file first when traversing the catalog tree. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Enterprise AI", "identifier": "did:web:acme-corp.com", "documentationUrl": "https://docs.acme-corp.com/ai" }, "entries": [ { "identifier": "urn:air:acme-corp.com:a2a:assistant", "version": "3.0.0", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/assistant.json", "description": "General-purpose corporate assistant agent." }, { "identifier": "urn:air:acme-corp.com:catalog:finance", "displayName": "Finance Services", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/finance.json", "description": "Financial agents, MCP servers, and datasets.", "tags": ["finance", "trading", "compliance"] }, { "identifier": "urn:air:acme-corp.com:catalog:engineering", "displayName": "Engineering Tools", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/engineering.json", "description": "CI/CD agents, code review tools, and DevOps servers.", "tags": ["engineering", "devops", "ci-cd"] } ] } ``` -------------------------------- ### Policy URLs extension JSON example Source: https://github.com/agent-card/ai-catalog/blob/main/adr/0029-define-the-policy-urls-extension.md Shows the structure of the official entry extension for policy URLs, replacing the former core entry fields. Both members are optional strings containing URLs. ```json { "extensions": { "https://ai-catalog.org/extensions/policy-urls": { "privacyPolicyUrl": "https://example.com/privacy", "termsOfServiceUrl": "https://example.com/terms" } } } ``` -------------------------------- ### Build the published HTML locally with default paths Source: https://github.com/agent-card/ai-catalog/blob/main/README.md Builds the specification HTML using default source and output paths. Requires `uv` and writes the output to `dist/index.html`. ```bash uv run --locked python tools/build_spec.py ``` -------------------------------- ### Build the published HTML locally with explicit paths Source: https://github.com/agent-card/ai-catalog/blob/main/README.md Builds the specification HTML from the Markdown source using the Respec configuration. Requires `uv` and writes the output to `dist/index.html`. ```bash uv run --locked python tools/build_spec.py specification/ai-catalog.md dist/index.html --config specification/respec-config.json ``` -------------------------------- ### Verify catalog with curl and json.tool Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/serving-your-catalog.md Check headers and status with `curl -I`, then fetch and validate the JSON with `python3 -m json.tool`. A well-served catalog returns HTTP 200, a `Content-Type` containing `json`, and a body with `specVersion` and `entries` fields. ```bash # Check headers and status curl -I https://yourdomain.com/.well-known/ai-catalog.json # Fetch and validate the JSON curl -s https://yourdomain.com/.well-known/ai-catalog.json | python3 -m json.tool ``` -------------------------------- ### Multi-artifact packaging entry with publisher Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Shows a catalog entry that packages multiple artifacts (e.g., an A2A agent, MCP server, and dataset) as a unit. The entry references a nested catalog document via url and includes a publisher with its own identifier and displayName. ```json { "identifier": "urn:air:acme.com:plugin:finance-suite", "displayName": "Finance Plugin", "type": "application/ai-catalog+json", "url": "https://acme.com/plugins/finance-suite.json", "publisher": { "identifier": "did:web:acme-corp.com", "displayName": "Acme Financial Corp" } } ``` -------------------------------- ### Signing and Verification Commands with cosign Source: https://github.com/agent-card/ai-catalog/blob/main/docs/mappings/oci-distribution.md Commands to sign, verify, and attach SLSA provenance to an entry manifest using cosign. These signatures and attestations are discoverable via the OCI Referrers API and can be mapped back to Trust Manifest attestation objects during unpacking. ```bash # Sign an entry manifest cosign sign registry.example.com/ai/finance-a2a@sha256:aaa111... # Verify cosign verify registry.example.com/ai/finance-a2a@sha256:aaa111... # Attach SLSA provenance cosign attest --predicate provenance.json --type slsaprovenance \ registry.example.com/ai/finance-a2a@sha256:aaa111... ``` -------------------------------- ### OCI pack/unpack flow for AI Catalog Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/serving-your-catalog.md Shows the logical AI Catalog format as the authoring and consumption interface, with tooling handling OCI pack/unpack. Clients always receive the logical JSON format, never OCI structures directly. ```text Authoring Distribution Consumption ───────── ──────────── ─────────── ai-catalog.json ─ pack ─► OCI Registry ─ unpack ─► ai-catalog.json entries[] Index/Manifests entries[] trustManifests Referrers trustManifests ``` -------------------------------- ### Catalog with host object Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/creating-a-catalog.md Adds a host object to identify the catalog operator, upgrading to Level 2 (Discoverable). displayName is required; other host fields are optional. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Corp", "identifier": "did:web:acme-corp.com", "documentationUrl": "https://docs.acme-corp.com/ai" }, "entries": [...] } ``` -------------------------------- ### Multi-version catalog entries with same identifier Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/creating-a-catalog.md Shows a catalog with two entries sharing the same identifier but different versions. When version is present, the combination of identifier + version must be unique. Clients looking for the latest version should sort by version (semver) or updatedAt and take the most recent. ```json { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:acme-corp.com:a2a:finance", "version": "2.1.0", "type": "application/a2a-agent-card+json", "url": "https://agents.acme-corp.com/finance/v2.1.json", "updatedAt": "2026-03-15T10:00:00Z" }, { "identifier": "urn:air:acme-corp.com:a2a:finance", "version": "2.0.0", "type": "application/a2a-agent-card+json", "url": "https://agents.acme-corp.com/finance/v2.0.json", "updatedAt": "2026-01-20T08:00:00Z" } ] } ``` -------------------------------- ### Canonical plugin.json metadata for review-tools Source: https://github.com/agent-card/ai-catalog/blob/main/docs/mappings/claude-code-plugins.md Provides the plugin's canonical metadata referenced by the marketplace. Includes name, display name, description, version, author, homepage, repository, license, and keywords. ```json { "name": "review-tools", "displayName": "Review Tools", "description": "Adds code-review workflows to Claude Code", "version": "1.2.0", "author": { "name": "Example Plugin Team", "email": "plugins@example.com" }, "homepage": "https://plugins.example/review-tools", "repository": "https://git.example/example/claude-plugins", "license": "Apache-2.0", "keywords": ["review", "quality"] } ``` -------------------------------- ### AI Catalog entry representing the marketplace Source: https://github.com/agent-card/ai-catalog/blob/main/docs/mappings/claude-code-plugins.md Represents the marketplace as an AI Catalog entry under the stated assumptions. The operator uses the marketplace owner's name for `host.displayName`, publishes the manifest at a stable URL, and uses an illustrative operator-defined media type. The entry identifier, type, artifact URL, host display name, and publisher identity are explicit operator inputs or policy decisions. ```json { "specVersion": "1.0", "host": { "displayName": "Example Marketplace Team" }, "entries": [ { "identifier": "urn:air:plugins.example:claude-code:review-tools", "type": "application/vnd.example.claude-code-plugin+json", "url": "https://plugins.example/artifacts/review-tools/1.2.0/plugin.json", "tags": ["development", "code-review", "review", "quality"], "publisher": { "identifier": "plugins.example", "displayName": "Example Plugin Team" } } ] } ``` -------------------------------- ### Minimal catalog structure Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/creating-a-catalog.md Defines the required top-level fields for an AI Catalog: specVersion and entries. The entries array may be empty. ```json { "specVersion": "1.0", "entries": [] } ``` -------------------------------- ### Catalog with multiple versions of the same agent Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Shows a catalog containing two entries with the same identifier but different version values, demonstrating version history. The combination of identifier and version must be unique when version is present. ```json { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:acme.com:agent:finance", "version": "2.1.0", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/finance/v2.1.json", "updatedAt": "2026-03-15T10:00:00Z" }, { "identifier": "urn:air:acme.com:agent:finance", "version": "2.0.0", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/finance/v2.0.json", "updatedAt": "2026-01-20T08:00:00Z" } ] } ``` -------------------------------- ### Refresh the lockfile after changing build dependencies Source: https://github.com/agent-card/ai-catalog/blob/main/README.md Updates `uv.lock` after modifying build dependencies in `pyproject.toml`. ```bash uv lock ``` -------------------------------- ### Catalog entry with extensions metadata and custom schema Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Shows the extensions property on a catalog entry with two extension keys: a metadata extension (https://ai-catalog.org/extensions/metadata) and a custom schema (https://openknowledgeformat.org/ns#). Keys must be valid URLs or reverse-DNS strings; unrecognized keys must be ignored by consumers. ```json { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:treasury.gov:okf:fiscaldata", "type": "text/vnd.okf+markdown", "tags": ["finance", "treasury"], "extensions": { "https://ai-catalog.org/extensions/metadata": { "location": "US-West", "environment": "staging", "version-compatible": [">=1.0.0"] }, "https://openknowledgeformat.org/ns#": { "@context": { "us-gaap": "https://xbrl.fasb.org/us-gaap/", "ifrs": "https://xbrl.ifrs.org/taxonomy/" }, "type": "Financial Dataset", "taxonomy": "us-gaap", "conformsTo": ["us-gaap:Revenue", "ifrs:Revenue"] } } } ] } ``` -------------------------------- ### Official metadata extension for generic key/value properties Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/creating-a-catalog.md Use the official https://ai-catalog.org/extensions/metadata extension for generic key/value properties. The value is a schemaless object. Consumers that do not recognize an extension key must ignore it without error. ```json "extensions": { "https://ai-catalog.org/extensions/metadata": { "region": "us-east-1", "sla": "99.9%", "license": "Apache-2.0" } } ``` -------------------------------- ### HTML link element for AI Catalog discovery Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/serving-your-catalog.md Advertise the catalog in HTML pages using an `` element with `rel="ai-catalog"`. Useful for non-standard paths or serving different catalogs from different pages of a multi-tenant platform. ```html ``` -------------------------------- ### Organizational hierarchy catalog with nested sub-catalogs Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Shows a top-level AI Catalog that partitions an enterprise catalog into sub-catalogs by department, product line, or region. Each entry has type application/ai-catalog+json and references a separate catalog document via its url. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Enterprise AI", "identifier": "did:web:acme-corp.com" }, "entries": [ { "identifier": "urn:air:acme.com:catalog:finance", "displayName": "Finance Services", "type": "application/ai-catalog+json", "url": "https://acme.com/catalogs/finance.json" }, { "identifier": "urn:air:acme.com:catalog:ml", "displayName": "ML Models", "type": "application/ai-catalog+json", "url": "https://acme.com/catalogs/ml.json" }, { "identifier": "urn:air:acme.com:catalog:devops", "displayName": "DevOps Tools", "type": "application/ai-catalog+json", "url": "https://acme.com/catalogs/devops.json" } ] } ``` -------------------------------- ### AI Catalog JSON with Nested Catalog Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Illustrates an AI Catalog containing a mix of artifact types, including a nested catalog that packages related artifacts. Digest and JWS strings are placeholders. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Services Inc.", "identifier": "did:web:acme-corp.com", "documentationUrl": "https://docs.acme-corp.com/ai" }, "entries": [ { "identifier": "urn:air:acme.com:agent:finance-a2a", "version": "2.1.0", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/finance.json", "description": "A2A agent for financial workflows.", "tags": ["finance", "a2a"], "publisher": { "identifier": "did:web:acme.com", "displayName": "Acme Financial Corp" }, "updatedAt": "2026-03-15T10:00:00Z", "extensions": { "https://ai-catalog.org/extensions/policy-urls": { "privacyPolicyUrl": "https://acme.com/legal/privacy", "termsOfServiceUrl": "https://acme.com/legal/terms" } }, "trustManifests": [ { "contributor": "did:web:acme.com", "attestations": [ { "type": "SOC2-Type2", "uri": "https://trust.acme.com/reports/soc2.pdf", "digest": "sha256:a1b2c3d4e5f67890abcdef1234567890abcdef1234567890abcdef1234567890" } ] } ] }, { "identifier": "urn:air:acme.com:server:finance-mcp", "version": "1.4.0", "type": "application/mcp-server-card+json", "url": "https://api.acme-corp.com/mcp/server-card", "description": "MCP server with finance tools.", "tags": [ "finance", "mcp" ], "updatedAt": "2026-03-15T10:00:00Z" }, { "identifier": "urn:air:acme.com:plugin:finance-suite", "displayName": "Acme Finance Suite", "type": "application/ai-catalog+json", "description": "A2A agent + MCP server + dataset for finance workflows.", "tags": [ "finance", "suite" ], "data": { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:acme.com:agent:finance-a2a", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/finance.json" }, { "identifier": "urn:air:acme.com:server:finance-mcp", "type": "application/mcp-server-card+json", "url": "https://api.acme-corp.com/mcp/server-card" }, { "identifier": "urn:air:acme.com:data:market-2026q1", "displayName": "Market Dataset Q1 2026", "type": "application/parquet", "url": "https://data.acme-corp.com/market-2026q1.parquet", "trustManifests": [ { "contributor": "did:web:acme.com", "provenance": [ { "relation": "publishedFrom", "sourceId": "oci://registry.acme.com/data/market:2026q1", "sourceDigest": "sha256:99998888..." } ] } ] } ] }, "updatedAt": "2026-03-20T14:00:00Z", "digest": "sha256:22223333444455556666777788889999aaaabbbbccccddddeeeeffff00001111", "trustManifests": [ { "contributor": "did:web:acme.com", "subject": { "identifier": "urn:air:acme.com:plugin:finance-suite", "type": "application/ai-catalog+json", "digest": "sha256:22223333444455556666777788889999aaaabbbbccccddddeeeeffff00001111" }, "signature": { "signer": "did:web:acme.com", "profile": "did-web-v1", "issuedAt": "2026-03-20T14:00:00Z", "jws": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6YWNtZS5jb20jcmVsZWFzZS1zaWduaW5nLWtleSIsInR5cCI6ImFpLWNhdGFsb2ctdHJ1c3QtbWFuaWZlc3QrandzIn0..detached-jws-signature" } } ] } ] } ``` -------------------------------- ### Content-Type header for AI Catalog Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/serving-your-catalog.md Serve the catalog file over HTTPS with the `Content-Type` header set to `application/ai-catalog+json`. HTTPS (TLS 1.2+) is required. ```text Content-Type: application/ai-catalog+json ``` -------------------------------- ### Unsigned entry with independent trust manifests Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Shows an unsigned AI catalog entry with two independent trust manifests: one with provenance and one with attestations. The `trustManifests` array carries separate contributions from different contributors. ```json { "identifier": "urn:air:acme.com:agent:finance", "type": "application/a2a-agent-card+json", "url": "https://acme.com/finance.json", "trustManifests": [ { "contributor": "did:web:acme.com", "provenance": [{ "relation": "publishedFrom", "sourceId": "https://github.com/acme/finance" }] }, { "contributor": "did:web:assessor.example", "attestations": [{ "type": "SOC2-Type2", "uri": "https://assessor.example/reports/acme.pdf" }] } ] } ``` -------------------------------- ### Hierarchical catalog with nested entries Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Shows an enterprise AI Catalog document that mixes a direct agent entry with three nested sub-catalog entries (finance, engineering, ML models). Each sub-catalog entry uses type application/ai-catalog+json and points to a separate catalog URL, enabling browsable categories. ```json { "specVersion": "1.0", "host": { "displayName": "Acme Enterprise AI", "identifier": "did:web:acme-corp.com" }, "entries": [ { "identifier": "urn:air:acme.com:agent:assistant", "version": "3.0.0", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/assistant.json", "description": "General-purpose corporate assistant agent." }, { "identifier": "urn:air:acme.com:catalog:finance", "displayName": "Finance Services", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/finance.json", "description": "Financial agents, MCP servers, and datasets.", "tags": ["finance", "trading", "compliance"] }, { "identifier": "urn:air:acme.com:catalog:engineering", "displayName": "Engineering Tools", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/engineering.json", "description": "CI/CD agents, code review tools, and DevOps servers.", "tags": ["engineering", "devops", "ci-cd"] }, { "identifier": "urn:air:acme.com:catalog:ml-models", "displayName": "ML Models", "type": "application/ai-catalog+json", "url": "https://acme-corp.com/catalogs/ml-models.json", "description": "Model cards and inference endpoints.", "tags": ["ml", "models", "inference"] } ] } ``` -------------------------------- ### TypeScript catalog discovery and filtering Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/consuming-catalogs.md Defines interfaces for catalog entries and the catalog itself, then provides functions to discover a catalog from a domain's well-known URL and filter entries by type. The discovery function returns null on network errors, non-OK responses, or invalid catalog structure. Use this as a defensive baseline when consuming catalogs from unknown sources. ```TypeScript interface CatalogEntry { identifier: string; type: string; url?: string; data?: unknown; displayName?: string; version?: string; updatedAt?: string; tags?: string[]; description?: string; } interface AICatalog { specVersion: string; entries: CatalogEntry[]; host?: { displayName: string; identifier?: string }; } async function discoverCatalog(domain: string): Promise { const wellKnown = `https://${domain}/.well-known/ai-catalog.json`; try { const resp = await fetch(wellKnown); if (!resp.ok) return null; const catalog: AICatalog = await resp.json(); if (!catalog.specVersion || !Array.isArray(catalog.entries)) return null; return catalog; } catch { return null; } } function filterByType(catalog: AICatalog, type: string): CatalogEntry[] { return catalog.entries.filter(e => e.type === type); } ``` -------------------------------- ### Well-Known URI for AI Catalog Source: https://github.com/agent-card/ai-catalog/blob/main/specification/ai-catalog.md Hosts MAY serve an AI Catalog at the well-known URI /.well-known/ai-catalog.json for automated discovery. Clients performing domain-level discovery SHOULD attempt to retrieve this URL. ```text /.well-known/ai-catalog.json ``` -------------------------------- ### Resolve latest version per identifier using semver and updatedAt Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/consuming-catalogs.md Use this function to filter a list of catalog entries so that only the latest version of each unique identifier is returned. It prefers semver comparison via packaging.version.Version, falling back to comparing updatedAt strings when version parsing fails. Entries without a version default to "0". ```python from packaging.version import Version def latest_entries(entries): """Return only the latest version of each unique identifier.""" by_id = {} for entry in entries: eid = entry["identifier"] if eid not in by_id: by_id[eid] = entry continue existing = by_id[eid] # Prefer by semver version, fall back to updatedAt try: if Version(entry.get("version", "0")) > Version(existing.get("version", "0")): by_id[eid] = entry except Exception: if entry.get("updatedAt", "") > existing.get("updatedAt", ""): by_id[eid] = entry return list(by_id.values()) ``` -------------------------------- ### Minimal valid AI catalog JSON Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/consuming-catalogs.md A valid catalog must have at least a specVersion and an entries array. Check specVersion first to ensure compatibility. ```json { "specVersion": "1.0", "entries": [...] } ``` -------------------------------- ### HTTP Link header for AI Catalog discovery Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/serving-your-catalog.md Advertise the catalog at a non-standard URL using an `ai-catalog` link relation in HTTP responses. Clients check for this relation first, then fall back to the well-known URI. ```text Link: ; rel="ai-catalog" ``` -------------------------------- ### Dual-protocol agent with MCP and A2A sub-entries Source: https://github.com/agent-card/ai-catalog/blob/main/docs/guides/organizing-catalogs.md Represents an agent supporting both MCP and A2A as one logical entry with protocol-specific sub-entries in the `data` field. Clients discover the outer entry and choose the protocol they support from the inner entries. ```json { "identifier": "urn:air:acme-corp.com:agent:finance", "displayName": "Acme Finance Agent", "type": "application/ai-catalog+json", "description": "Finance agent accessible via both MCP and A2A protocols.", "tags": ["finance", "dual-protocol"], "publisher": { "identifier": "did:web:acme-corp.com", "displayName": "Acme Financial Corp" }, "data": { "specVersion": "1.0", "entries": [ { "identifier": "urn:air:acme-corp.com:mcp:finance", "type": "application/mcp-server-card+json", "url": "https://api.acme-corp.com/mcp/server-card" }, { "identifier": "urn:air:acme-corp.com:a2a:finance", "type": "application/a2a-agent-card+json", "url": "https://api.acme-corp.com/agents/finance" } ] } } ```