java-sdk/conformance-tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dariusz Jędrzejczyk 87e2c7d4de
feat: validate embedded JSON Schema documents against 2020-12 meta-schema (SEP-1613) (#949)
MCP embeds JSON Schema documents in three places — Tool.inputSchema,
Tool.outputSchema, and ElicitRequest.requestedSchema — and SEP-1613
mandates that these documents conform to JSON Schema 2020-12 by default.

Servers now reject malformed schemas at both build time (McpServer.build())
and runtime (McpAsyncServer/McpStatelessAsyncServer.addTool()), returning
an IllegalArgumentException that identifies the offending field and
references SEP-1613.  Elicitation requests whose requestedSchema violates
the meta-schema are rejected before being sent to the client.

Schemas that explicitly declare a different dialect via $schema are accepted
without meta-schema validation, since 2020-12 is the default, not the only
permitted dialect.

Refine meta-schema loading and deprecate orphan JsonSchemaValidator

Resolves #700

Signed-off-by: Dariusz Jędrzejczyk <2554306+chemicL@users.noreply.github.com>
2026-05-07 14:14:53 +02:00
..
client-jdk-http-client feat!: enforce required MCP spec fields in McpSchema; lenient wire deserialization (#928) 2026-05-04 21:01:46 +02:00
client-spring-http-client feat!: enforce required MCP spec fields in McpSchema; lenient wire deserialization (#928) 2026-05-04 21:01:46 +02:00
server-servlet feat: validate embedded JSON Schema documents against 2020-12 meta-schema (SEP-1613) (#949) 2026-05-07 14:14:53 +02:00
conformance-baseline.yml conformance: update to mcp-security 0.1.5, pass scope-step-up 2026-04-02 10:55:43 +02:00
pom.xml Next development version 2026-03-13 13:31:03 +01:00
VALIDATION_RESULTS.md feat: validate embedded JSON Schema documents against 2020-12 meta-schema (SEP-1613) (#949) 2026-05-07 14:14:53 +02:00