## Motivation and Context - Add MCPB as a new registry_name option - Add file_hashes field to package model for integrity verification - Implement URL validation restricting MCPB packages to GitHub/GitLab hosts - Require SHA-256 hash for all MCPB packages - Add example MCPB package in documentation - Update schemas and OpenAPI specification See issue #260 ## How Has This Been Tested? <!-- Have you tested this in a real application? Which scenarios were tested? --> ## Breaking Changes N/A, registry has not yet been launched ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [ ] My code follows the repository's style guidelines - [ ] New and existing tests pass locally - [ ] I have added appropriate error handling - [x] I have added or updated documentation as needed --------- Co-authored-by: Adam Jones <adamj+git@anthropic.com>
51 lines
No EOL
1.3 KiB
JSON
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",
|
|
"docker-hub",
|
|
"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"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |