coremcp.yaml) carries one or more sources. Each source is a database the agent will expose to CoreBase. Reload by restarting the agent (systemctl restart coremcp or stop/start the binary).
Supported sources
Need a driver that isn’t listed? CoreMCP exposes an adapter interface — community PRs welcome.
Microsoft SQL Server
Per-source options
SQL Server 2000 / 2008
CoreMCP auto-detects the SQL Server version on connect and rewrites queries:- SQL Server 2000: uses
sysobjects/sysforeignkeysinstead ofsys.*views - SQL Server 2008 and older: rewrites
OFFSET FETCHtoSELECT TOP N - All versions: rewrites
LIMIT NtoSELECT TOP N(T-SQL compatibility)
Multiple sources
Add as many sources as you need under one agent:Disabling a source
Comment out the entry incoremcp.yaml and restart the agent. Existing chat sessions referencing the source return a “source unavailable” error gracefully.
Custom query tools
Define reusable SQL queries as named MCP tools your client can call directly. They show up alongside auto-discovered tools.Hardening
- Read-only credentials only. Generated SQL is read-only by design and
readonly: trueis the default, but DB-level scoping is your second line of defense. - Network ACLs. Lock down which IPs can reach each database — CoreMCP is the only consumer that needs them.
- TLS to the database. Set
encrypt=truefor production MSSQL DSNs;encrypt=disableis for local/dev only.