Repository navigation
fix: strip unsupported regex patterns from tool schemas - #58
Merged
Siumauricio merged 1 commit intoAug 7, 2026
Merged
Conversation
Author
|
Hi, gentle follow-up after a couple of weeks. This is still ready on my side; happy to adjust or close if it is not aligned with the project direction. |
This was referenced Aug 7, 2026
Siumauricio
added a commit
to franktronics/mcp-dokploy
that referenced
this pull request
Aug 7, 2026
Extends the lookaround strip from Dokploy#58: any schema pattern that fails to compile under the RegExp v flag (e.g. the database password pattern with an unescaped '[' inside a character class) is now removed from the advertised tool schemas. DeepSeek and other strict validators reject these patterns, breaking tools/list for all database tools. Server-side Zod validation is unchanged; only the JSON Schema exposed to clients is sanitized. Fixes Dokploy#43 Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
patternfields from MCPtools/listJSON schemasFixes #45.
Verification
npm exec --yes pnpm@10 -- install --frozen-lockfilenpm exec --yes pnpm@10 -- test src/server.test.tsnpm exec --yes pnpm@10 -- formatnpm exec --yes pnpm@10 -- lintnpm exec --yes pnpm@10 -- testnpm exec --yes pnpm@10 -- type-checkgit diff --checkNote:
biome checkstill reports the existingResponseFormatterstatic-only class warning, but exits successfully after formatting.