registry/docs/server-json/registry-schema.json
adam jones 5fb6ee2982
Add $schema to server.json specification to enable versioning, IDE autocomplete (#308)
## Summary
- Add optional `$schema` property to ServerDetail specification
- Update JSON Schema, OpenAPI spec, Go models, examples, and publisher
template
- Enable schema versioning and IDE validation support

## Changes
- Added `$schema` as optional string property with URI format in specs
- Updated Go ServerDetail struct with new Schema field
- Added `$schema` to examples and publisher template
- Copy schema file to ../static for GitHub Pages hosting

Fixes #139
2025-08-27 01:30:25 +01:00

40 lines
No EOL
1,007 B
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_name": {
"enum": [
"npm",
"pypi",
"docker",
"nuget"
]
},
"runtime_hint": {
"enum": [
"npx",
"uvx",
"docker",
"dnx"
]
}
}
}
}
}
}