Skip to content

Fix _meta field format for MCP spec compliance - #367

Merged
domdomegg merged 2 commits into
mainfrom
adamj/fix-meta-field-format
Sep 8, 2025
Merged

domdomegg merged 2 commits into
mainfrom
adamj/fix-meta-field-format

Conversation

@domdomegg

Copy link
Copy Markdown
Member

Summary

Updates the _meta field structure to be compliant with the MCP specification by using proper prefix/name format for vendor extensions.

Changes

  • Registry metadata: io.modelcontextprotocol.registry → io.modelcontextprotocol.registry/official
  • Publisher metadata: publisher → io.modelcontextprotocol.registry/publisher-provided
  • Database migration: Updates indexes to use new field paths
  • Updated all code: Service layer, validators, tests, and seed data

Format Before

{
  "_meta": {
    "publisher": { "license": "MIT" },
    "io.modelcontextprotocol.registry": { "id": "...", "is_latest": true }
  }
}

Format After

{
  "_meta": {
    "io.modelcontextprotocol.registry/publisher-provided": { "license": "MIT" },
    "io.modelcontextprotocol.registry/official": { "id": "...", "is_latest": true }
  }
}

This resolves the naming collision with the planned top-level publisher field and ensures compliance with MCP specification requirements.

Fixes #356

Updates the _meta field structure to comply with MCP specification:
- Changes from "io.modelcontextprotocol.registry" to "io.modelcontextprotocol.registry/official"
- Changes from "publisher" to "io.modelcontextprotocol.registry/publisher-provided"

The new format uses proper prefix/name structure as required by the MCP spec
for vendor extensions, resolving naming collision with planned top-level
publisher field.

Includes database migration to update existing indexes for new field paths.

Fixes #356

🏠 Remote-Dev: homespace
@domdomegg
domdomegg marked this pull request as draft September 7, 2025 10:47
🏠 Remote-Dev: homespace
@domdomegg
domdomegg marked this pull request as ready for review September 8, 2025 18:01
@domdomegg
domdomegg merged commit ef46077 into main Sep 8, 2025
6 checks passed
@domdomegg
domdomegg deleted the adamj/fix-meta-field-format branch September 8, 2025 18:40
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.

Tweak format of _meta fields for vendor extensions ("publisher", prefix format)

2 participants