Skip to content

Commit 93cfd1e

Browse files
authored
Merge branch 'main' into tadasant/setup-claude-md
2 parents 111e837 + a5f417b commit 93cfd1e

File tree

3 files changed

+45
-12
lines changed

3 files changed

+45
-12
lines changed

docs/server-json/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ Please note: this is different from the file commonly referred to as `mcp.json`,
1313

1414
References:
1515
- [schema.json](./schema.json) - The official JSON schema specification for this representation
16-
- [examples.md](./examples.md) - Example manifestations of the JSON schema
16+
- [examples.md](./examples.md) - Example manifestations of the JSON schema
17+
- [registry-schema.json](./registry-schema.json) - A more constrained version of `schema.json` that the official registry supports
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://modelcontextprotocol.io/schemas/draft/2025-07-09/registry-server.json",
4+
"title": "MCP Server Detail - Registry Schema",
5+
"description": "Registry-specific constraints for MCP server representation. Extends the base schema with additional validation rules.",
6+
"$ref": "https://modelcontextprotocol.io/schemas/draft/2025-07-09/server.json",
7+
"properties": {
8+
"repository": {
9+
"properties": {
10+
"source": {
11+
"enum": [
12+
"github"
13+
]
14+
}
15+
}
16+
},
17+
"packages": {
18+
"items": {
19+
"properties": {
20+
"registry_name": {
21+
"enum": [
22+
"npm",
23+
"pypi",
24+
"docker",
25+
"nuget"
26+
]
27+
},
28+
"runtime_hint": {
29+
"enum": [
30+
"npx",
31+
"uvx",
32+
"docker",
33+
"dnx"
34+
]
35+
}
36+
}
37+
}
38+
}
39+
}
40+
}

docs/server-json/schema.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://modelcontextprotocol.io/schemas/draft/2025-07-09/server.json",
34
"title": "MCP Server Detail",
45
"$ref": "#/$defs/ServerDetail",
56
"$defs": {
@@ -18,10 +19,7 @@
1819
},
1920
"source": {
2021
"type": "string",
21-
"enum": [
22-
"github",
23-
"gitlab"
24-
],
22+
"description": "Repository hosting service",
2523
"example": "github"
2624
},
2725
"id": {
@@ -32,6 +30,7 @@
3230
},
3331
"VersionDetail": {
3432
"type": "object",
33+
"description": "Version information for this server. Defined as an object to allow for downstream extensibility (e.g. release_date)",
3534
"required": [
3635
"version"
3736
],
@@ -79,13 +78,6 @@
7978
"properties": {
8079
"registry_name": {
8180
"type": "string",
82-
"enum": [
83-
"npm",
84-
"docker",
85-
"pypi",
86-
"homebrew",
87-
"nuget"
88-
],
8981
"description": "Package registry type",
9082
"example": "npm"
9183
},

0 commit comments

Comments
 (0)