You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(schema): invalid regex in databasePassword patterns breaks DeepSeek API #43
The databasePassword (and databaseRootPassword, password) fields across libsql-create, mariadb-create, mongo-create, mysql-create, postgres-create, and their password-change counterparts use a Zod .regex() pattern that produces an invalid JSON Schema regex. DeepSeek API's schema validator rejects it with:
Error from provider (DeepSeek): Invalid schema for function 'dokploy_libsql-create': "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$" is not a "regex"
Steps to Reproduce
Configure @dokploy/mcp with DeepSeek as the LLM provider
The MCP server sends tools/list to DeepSeek
DeepSeek rejects the schema because the pattern regex is not valid ECMA-262
Root Cause
The regex ^[a-zA-Z0-9@#%^&*()_+=[\]{}|;:,.<>?~-]*$(or its zod-to-json-schema-transformed variant) contains characters that DeepSeek's JSON Schema validator does not accept as a valid regex. Likely the backtick or how zod-to-json-schema escapes the-` inside the character class.
Affected Tools
All tools with databasePassword, databaseRootPassword, or password fields using this regex:
All database-related tools should register successfully with any provider that validates JSON Schema patterns (DeepSeek, Anthropic, OpenAI, etc.).
Suggested Fix
Replace the .regex() constraint with a simpler validation or remove it entirely — the server validates the password anyway. For example, use z.string().min(1) instead of z.string().regex(...).
Activity
fix: strip regex patterns invalid under strict provider validators