768 B
768 B
Core-MCP TODO
Security
-
Critical: Fix Database Connection Fallback -
QueryDatabasetool falls back to the default database connection ifmcp.database.connectionis not defined or invalid. This risks exposing write access. Must throw an exception or strictly require a valid read-only connection. -
High: Strengthen SQL Validator Regex - The current whitelist regex
/.+/in the WHERE clause is too permissive, allowing boolean-based blind injection. Consider a stricter parser or document the read-only limitation clearly.
Features
- Explain Plan - Add option to
QueryDatabasetool to runEXPLAINfirst, allowing the agent to verify cost/safety before execution.
See changelog/2026/jan/ for completed features.