Skip to content

Spec: Update mediaType to type for catalogEntry and add known types#37

Open
mindpower wants to merge 9 commits into
mainfrom
jbu/adr-0014-mediatype-to-type
Open

Spec: Update mediaType to type for catalogEntry and add known types#37
mindpower wants to merge 9 commits into
mainfrom
jbu/adr-0014-mediatype-to-type

Conversation

@mindpower
Copy link
Copy Markdown
Member

@mindpower mindpower commented May 15, 2026

Update AI-catalog spec based on meeting agreement on date: 04/30/2026, 05/14/2026

Move from mediaType to type in CatalogEntry

  • Decision: Renamed the mediaType field to type in catalog entries to avoid confusion with generic IANA media types.
  • Open Format with Known Types: Clarified that the type field is an open text format accepting any string value. However, a set of recognized "known types" is recommended for interoperability (e.g., application/a2a-agent-card+json, application/mcp-server+json, application/ai-catalog+json, application/agent-registry, and format-specific skills like +gzip, +zip, +json). Clients are responsible for handling new or unknown types.
  • ADR Created/Updated: Added and updated ADR 0014 to document this decision.

@mindpower mindpower changed the title Spec: Update mediaType to type based on last two meetings (adr/0014) Spec: Update mediaType to type based on last meetings (adr/0014) May 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Preview: https://agent-card.github.io/ai-catalog/pr/37/

This comment is updated automatically while the pull request preview is available.

github-actions Bot added a commit that referenced this pull request May 15, 2026
…est (which is different from the type for catalog entry) and fix the type to application/mcp-server+json in examples
github-actions Bot added a commit that referenced this pull request May 15, 2026
@mindpower mindpower changed the title Spec: Update mediaType to type based on last meetings (adr/0014) Spec: Update mediaType to type for catalogEntry and add known types May 15, 2026
Comment thread adr/0014-media-type-to-type.md Outdated
- `application/ai-catalog+json`
- `application/ai-skills+tgz`
- `application/ai-skills+zip`
- `application/ai-skills+md`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As there is no registered suffix, it would not be possible at present to register this media type.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this application/ai-skills+md to text/markdown; profile=ai-skill

Comment thread adr/0014-media-type-to-type.md Outdated
- `application/a2a-agent-card+json`
- `application/mcp-server+json`
- `application/ai-catalog+json`
- `application/ai-skills+tgz`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a +gzip but there is not +tgz that is registered and so currently it would not be possible to register this media type.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the adr and spec. Added the +gzip but removed +tgz.

Comment thread specification/ai-catalog.md Outdated
- `application/ai-skills+zip` — an AI Skill bundle (ZIP archive)
- `application/ai-skills+md` — an AI Skill defined in Markdown

These values combine the artifact type with the payload format. For any new or custom types not listed here, it is up to the specific client implementation to handle them correctly.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we split the ai-catalog/ai-card managed media types, from the third party ones? I was envisioning something like:

AI Catalog types:
application/ai-catalog+json - nested AI Catalog
application/agent-card+json - reserved Agent Card media type

Third Party Types:
(A2A, MCP etc)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Updated.

github-actions Bot added a commit that referenced this pull request May 20, 2026
@jdamick
Copy link
Copy Markdown

jdamick commented May 21, 2026

The attestation object already has a "type" and "mediaType" and now type in the entry is actually a media type. It seems confusing and inconsistent to me when i read this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants