Multi-Database Configuration Support#31
Open
noxymon-mekari wants to merge 2 commits intoexecuteautomation:mainfrom
Open
Multi-Database Configuration Support#31noxymon-mekari wants to merge 2 commits intoexecuteautomation:mainfrom
noxymon-mekari wants to merge 2 commits intoexecuteautomation:mainfrom
Conversation
Allow a single MCP server instance to connect to multiple databases
simultaneously via a JSON config file (--config flag), enabling
companies with multiple microservices to use one server for all DBs.
Key changes:
- New config loader with validation (src/config.ts)
- Database registry replacing singleton adapter (src/db/index.ts)
- New list_databases tool and database parameter on all DB tools
- Multi-DB resource listing with db://{name}/{table}/schema URIs
- Insights converted to in-memory storage for DB-agnostic operation
- Full backward compatibility with single-database CLI mode
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
--config now auto-detects JSON strings vs file paths (starts with '{').
Added --config-env <VAR_NAME> to read config from an environment
variable, ideal for Kubernetes Secrets where the JSON is injected
as an env var rather than mounted as a file.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
This fix #32