Skip to content

fix(mcp): support draft-07 output schemas - #39367

Closed
rekram1-node wants to merge 2 commits into
devfrom
investigate-tool-schemas
Closed

fix(mcp): support draft-07 output schemas#39367
rekram1-node wants to merge 2 commits into
devfrom
investigate-tool-schemas

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • route MCP tool output schemas declaring draft-07 through a draft-07 Ajv validator
  • preserve the SDK default validator for unstamped and 2020-12 schemas
  • lazily initialize the compatibility validator only when needed
  • cover successful and failed draft-07 structured output validation

Fixes #39333

Testing

  • bun test test/mcp/catalog.test.ts
  • bun typecheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1.18.8 strict AjvJsonSchemaValidator rejects MCP servers emitting draft-07 schemas (n8n, Dokploy, any MCP TypeScript SDK server)

1 participant