Skip to content

fix(schema): strip incompatible password patterns - #44

Closed
Baijack-star wants to merge 1 commit into
Dokploy:mainfrom
Baijack-star:fix-deepseek-password-patterns
Closed

Baijack-star wants to merge 1 commit into
Dokploy:mainfrom
Baijack-star:fix-deepseek-password-patterns

Conversation

@Baijack-star

Copy link
Copy Markdown

Fixes #43.

Summary

  • strip the Dokploy database password regex pattern while generating tool schemas
  • regenerate the affected MCP tool definitions so database password fields no longer emit pattern
  • add a tools/list regression test for the affected database password fields

Verification

  • corepack pnpm --config.verify-deps-before-run=false test
  • corepack pnpm --config.verify-deps-before-run=false type-check
  • corepack pnpm --config.verify-deps-before-run=false format:check
  • git diff --check

@yurisasc

yurisasc commented May 27, 2026 •

Copy link
Copy Markdown

Tested this, and the issue with deepseek-v4-pro and deepseek-v4-flash is fixed 👍
Before:
image
After:
image

@Siumauricio

Copy link
Copy Markdown
Contributor

Thanks for the detailed diagnosis in #43 and for the PR, @Baijack-star — the root cause analysis of the unescaped [ in the character class was exactly right.

We're addressing this with #68 instead, which extends the runtime sanitization layer introduced in #58: any schema pattern that fails to compile under the strict RegExp v flag is stripped from tools/list, in any field. That covers the database password pattern generically (no hardcoded pattern strings or field-name lists), survives future pnpm generate runs and upstream pattern changes, and keeps server-side Zod validation intact.

Verified all 15 affected tools (libsql-*, mariadb-*, mongo-*, mysql-*, postgres-*, redis-changePassword) come out clean, with a regression test sweeping all 524 tool schemas.

Closing in favor of #68 — thanks again for the contribution!

@Siumauricio Siumauricio closed this Aug 7, 2026
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.

fix(schema): invalid regex in databasePassword patterns breaks DeepSeek API

3 participants