Add database MCP configuration and instructions on how to use it#5
Conversation
7b9a7bf to
1f532cd
Compare
cecilia-donnelly
left a comment
There was a problem hiding this comment.
Super easy and mostly there it appears!
| "db": { | ||
| "type": "stdio", | ||
| "command": "bash", | ||
| "args": ["-c", "source ./.env && dbhub --dsn $DATABASE_URL"] |
There was a problem hiding this comment.
This didn't work for me since I just have dbhub in node_modules, not globally, so Claude couldn't find it.
There was a problem hiding this comment.
(I see this is outdated but the relevant piece is dbhub as opposed to npx dbhub or similar, which is still there)
1f532cd to
9e59b14
Compare
df5a3f8 to
4fce8c8
Compare
cecilia-donnelly
left a comment
There was a problem hiding this comment.
There are also a couple of README updates: remove the note about database access not being on this branch (since it is!) and change the .env instructions to use the new variable names.
| "prettier": "^3.8.3" | ||
| }, | ||
| "dependencies": { | ||
| "@bytebase/dbhub": "^0.21.2" |
There was a problem hiding this comment.
Claude added "pg": "^8.21.0" as an explicit dependency here
The first purpose of this repo is to provide a streamlined way for non-engineering staff to use Claude to query the database. To that end, this commit adds MCP server config to this repo, and instructions for how to clone the repo and set it up such that Claude will be able to read (and only read) our production database.
4fce8c8 to
c431c5a
Compare
cecilia-donnelly
left a comment
There was a problem hiding this comment.
Working! So cool. We'll have to follow up with a skill telling Claude not to show SQL commands, etc.
The first purpose of this repo is to provide a streamlined way for non-engineering staff to use Claude to query the database. To that end, this commit adds MCP server config to this repo, and instructions for how to clone the repo and set it up such that Claude will be able to read (and only read) our production database.