Skip to content

Commit 9c3f95d

Browse files
committed
update schema url point to the actual location
1 parent 61fdf17 commit 9c3f95d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/reference/server-json/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changes to the server.json schema and format.
44

55
## Draft (Unreleased)
66

7-
This section tracks changes that are in development and not yet released. The draft schema is available at [`server.schema.json`](./server.schema.json) in this repository.
7+
This section tracks changes that are in development and not yet released. The draft schema is available at [`server.schema.json`](./draft/server.schema.json) in this repository.
88

99
### Changed
1010

docs/reference/server-json/server.schema.json renamed to docs/reference/server-json/draft/server.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$comment": "This file is auto-generated from docs/reference/api/openapi.yaml. Do not edit manually. Run 'make generate-schema' to update.",
3-
"$id": "https://static.modelcontextprotocol.io/schemas/draft/server.schema.json",
3+
"$id": "https://raw.githubusercontent.com/modelcontextprotocol/registry/main/docs/reference/server-json/draft/server.schema.json",
44
"$ref": "#/definitions/ServerDetail",
55
"$schema": "http://json-schema.org/draft-07/schema#",
66
"definitions": {

tools/extract-server-schema/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
const (
1515
openAPIPath = "docs/reference/api/openapi.yaml"
16-
schemaOutputDir = "docs/reference/server-json"
16+
schemaOutputDir = "docs/reference/server-json/draft"
1717
)
1818

1919
func main() {
@@ -93,7 +93,7 @@ func main() {
9393
// When releasing, the schema is published to a versioned URL (e.g., 2025-10-17)
9494
// on https://github.com/modelcontextprotocol/static
9595
_ = version // version from OpenAPI spec available if needed
96-
schemaID := "https://static.modelcontextprotocol.io/schemas/draft/server.schema.json"
96+
schemaID := "https://raw.githubusercontent.com/modelcontextprotocol/registry/main/docs/reference/server-json/draft/server.schema.json"
9797
jsonSchema := map[string]interface{}{
9898
"$comment": "This file is auto-generated from docs/reference/api/openapi.yaml. Do not edit manually. Run 'make generate-schema' to update.",
9999
"$schema": "http://json-schema.org/draft-07/schema#",

0 commit comments

Comments
 (0)