Skip to content

MCP server schema 2025-12-11 does not validate #14

@KyleC69

Description

@KyleC69

The definitions were not properly referenced. There are several definitions but not properly exported to root. Below is corrected option that keeps in line with original merging of several previous vendor standards and allows for easy addition of new client specific schemas.

{
"$comment": "Corrected root schema. Original schema was invalid because it referenced ServerDetail directly without exporting it as the root. This version wraps the intended root types in a oneOf union, preserving compatibility with all MCP contexts.",
"$id": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",

"oneOf": [
{ "$ref": "#/definitions/ServerDetail" },
{ "$ref": "#/definitions/Package" },
{ "$ref": "#/definitions/RemoteTransport" }
],

"definitions": {
/* KEEP ALL ORIGINAL DEFINITIONS EXACTLY AS PUBLISHED */
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions