registry/docs/server-json/registry-schema.json
adam jones e0aecadc24
refactor: update registry type from 'docker-hub' to 'oci' across seed data (#325)
Updates the registry type for all Docker Hub packages in the seed data
from `docker-hub` to `oci` to align with the standardized OCI registry
format. This change affects the `registry_type` field and simplifies the
`identifier` field by removing the full Docker Hub URL prefix.

Changes:
- Updated `registry_type` from `docker-hub` to `oci` for all Docker
packages
- Simplified `identifier` field to use just the repository name/path
instead of full URLs
- Maintained `registry_base_url` as `https://docker.io` for all entries

This refactoring improves consistency and aligns with OCI standards
while maintaining backward compatibility through the registry base URL.
2025-08-30 00:12:10 +01:00

51 lines
No EOL
1.3 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://modelcontextprotocol.io/schemas/draft/2025-07-09/registry-server.json",
"title": "MCP Server Detail - Registry Schema",
"description": "Registry-specific constraints for MCP server representation. Extends the base schema with additional validation rules.",
"$ref": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
"properties": {
"repository": {
"properties": {
"source": {
"enum": [
"github"
]
}
}
},
"packages": {
"items": {
"properties": {
"registry_type": {
"enum": [
"npm",
"pypi",
"oci",
"nuget",
"mcpb"
]
},
"registry_base_url": {
"enum": [
"https://registry.npmjs.org",
"https://pypi.org",
"https://docker.io",
"https://api.nuget.org",
"https://github.com",
"https://gitlab.com"
]
},
"runtime_hint": {
"enum": [
"npx",
"uvx",
"docker",
"dnx"
]
}
}
}
}
}
}