Skip to content

fix: declare Draft-07 schema for MCP tool inputs#219

Open
asim48-ctrl wants to merge 1 commit into
executeautomation:mainfrom
asim48-ctrl:fix-vscode-tool-schema-draft07
Open

fix: declare Draft-07 schema for MCP tool inputs#219
asim48-ctrl wants to merge 1 commit into
executeautomation:mainfrom
asim48-ctrl:fix-vscode-tool-schema-draft07

Conversation

@asim48-ctrl

Copy link
Copy Markdown

Summary

  • explicitly marks every MCP tool inputSchema as Draft-07 using the http://json-schema.org/draft-07/schema URI
  • adds a regression check so tool definitions do not reference the HTTPS Draft-07 meta-schema URL

Why

VS Code users in #109 report that the MCP client drops most tools after failing to load https://json-schema.org/draft-07/schema with a certificate signature error. Declaring the Draft-07 schema with the HTTP meta-schema URI avoids that HTTPS fetch path while keeping the existing tool parameter schemas unchanged.

Fixes #109

Verification

  • npm ci --ignore-scripts
  • npx jest --no-cache --runTestsByPath src/__tests__/tools.test.ts
  • npm run build

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.

Start server fails with error :MCP server playwright-mcp has tools with invalid parameters which will be omitted.

1 participant