- --unified-tools flag for consolidated tool registration
- Shared tools with database parameter
Full changelog
New Features
- Add
--unified-toolsflag for consolidated MCP tool registration (#55)
How it works
When connecting many databases (e.g. 30+), the server previously registered 5 tools per database — resulting in 150+ tools. With --unified-tools, only 6 shared tools are registered (query, execute, transaction, performance, schema, list_databases) that accept a database parameter.
Usage
# Default mode — per-database tools (no changes)
./db-mcp-server -c config.json
# Unified mode — shared tools with database parameter
./db-mcp-server -c config.json --unified-tools
Tool call in unified mode:
{
"tool": "query",
"parameters": {
"database": "dev_accounting",
"query": "SELECT * FROM users LIMIT 10"
}
}