Skip to content

Commit b9683af

Browse files
authored
Merge pull request #87 from bulgariamitko/fix/correct-attribution-and-examples
fix: Correct package attribution and genericize all examples
2 parents 94ea7d3 + 67f57cc commit b9683af

File tree

3 files changed

+24
-26
lines changed

3 files changed

+24
-26
lines changed

PROJECT_SETUP_GUIDE.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ Each project requires three main components for database access through Claude C
2020
2. **MCP Configuration** - Configure database access through MCP server
2121
3. **Hooks** - Automatically start/stop tunnels with Claude
2222

23-
### Current Project Configurations
23+
### Example Project Configurations
2424

2525
| Project | Port | SSH Server | Database | Location |
2626
|---------|------|------------|----------|----------|
27-
| NIMA | 3307 | gold.superhosting.bg:1022 | izdavamc_nima | `/Users/dimitarklaturov/Dropbox/nima` |
28-
| IZDAVAM | 3308 | gold.superhosting.bg:1022 | izdavamc_izdavam | `/Users/dimitarklaturov/Dropbox/izdavam` |
29-
| NUFC | 3309 | nufc.bg:1022 | pwr0iwww_nufc | `/Users/dimitarklaturov/Dropbox/nufc` |
30-
| STUDIA | 3310 | gold.superhosting.bg:1022 | izdavamc_studia | `/Users/dimitarklaturov/Dropbox/flutter/studia` |
27+
| project-a | 3307 | server1.example.com:1022 | db_project_a | `/path/to/project-a` |
28+
| project-b | 3308 | server1.example.com:1022 | db_project_b | `/path/to/project-b` |
29+
| project-c | 3309 | server2.example.com:1022 | db_project_c | `/path/to/project-c` |
30+
| project-d | 3310 | server1.example.com:1022 | db_project_d | `/path/to/project-d` |
3131

3232
## Prerequisites
3333

34-
1. **MCP MySQL Server** installed at: `/Users/dimitarklaturov/Dropbox/github/mcp-server-mysql`
34+
1. **MCP MySQL Server** installed at: `/path/to/mcp-server-mysql`
3535
- Must have `MYSQL_DISABLE_READ_ONLY_TRANSACTIONS` support for CREATE TABLE operations
3636
- Built with `npm run build` or `pnpm build`
3737

@@ -144,7 +144,7 @@ Create `.mcp.json` in your project directory:
144144
"[project]-mysql-server": {
145145
"type": "stdio",
146146
"command": "bash",
147-
"args": ["-c", "cd /Users/dimitarklaturov/Dropbox/github/mcp-server-mysql && node dist/index.js"],
147+
"args": ["-c", "cd /path/to/mcp-server-mysql && node dist/index.js"],
148148
"env": {
149149
"MYSQL_HOST": "127.0.0.1",
150150
"MYSQL_PORT": "33XX",
@@ -188,29 +188,29 @@ Your project should have this structure:
188188

189189
## Configuration Examples
190190

191-
### Example 1: Project on gold.superhosting.bg
191+
### Example 1: Project on example.com
192192

193-
For projects hosted on gold.superhosting.bg (like NIMA, IZDAVAM, STUDIA):
193+
For projects hosted on example.com (like project-a, project-b, project-d):
194194

195195
```json
196196
{
197197
"hooks": {
198198
"claude_start": {
199199
"command": "./start-tunnel-myproject.sh",
200200
"background": true,
201-
"description": "Start SSH tunnel for MYPROJECT database"
201+
"description": "Start SSH tunnel for myproject database"
202202
},
203203
"claude_stop": {
204204
"command": "./stop-tunnel-myproject.sh",
205205
"background": false,
206-
"description": "Stop SSH tunnel for MYPROJECT database"
206+
"description": "Stop SSH tunnel for myproject database"
207207
}
208208
},
209209
"inputs": [
210210
{
211211
"type": "promptString",
212212
"id": "mysql-password-myproject",
213-
"description": "MySQL Password for MYPROJECT Database",
213+
"description": "MySQL Password for myproject Database",
214214
"password": true,
215215
"default": "my_secure_password"
216216
}
@@ -219,13 +219,13 @@ For projects hosted on gold.superhosting.bg (like NIMA, IZDAVAM, STUDIA):
219219
"myproject-mysql-server": {
220220
"type": "stdio",
221221
"command": "bash",
222-
"args": ["-c", "cd /Users/dimitarklaturov/Dropbox/github/mcp-server-mysql && node dist/index.js"],
222+
"args": ["-c", "cd /path/to/mcp-server-mysql && node dist/index.js"],
223223
"env": {
224224
"MYSQL_HOST": "127.0.0.1",
225225
"MYSQL_PORT": "3311",
226-
"MYSQL_USER": "izdavamc_myproject",
226+
"MYSQL_USER": "db_myproject",
227227
"MYSQL_PASS": "${input:mysql-password-myproject}",
228-
"MYSQL_DB": "izdavamc_myproject",
228+
"MYSQL_DB": "db_myproject",
229229
"ALLOW_INSERT_OPERATION": "true",
230230
"ALLOW_UPDATE_OPERATION": "true",
231231
"ALLOW_DELETE_OPERATION": "true",
@@ -239,12 +239,12 @@ For projects hosted on gold.superhosting.bg (like NIMA, IZDAVAM, STUDIA):
239239

240240
### Example 2: Project on Different Server
241241

242-
For projects on different servers (like NUFC on nufc.bg):
242+
For projects on different servers (like project-c on server2.example.com):
243243

244244
```bash
245245
# start-tunnel-myproject.sh
246246
LOCAL_PORT=3312
247-
REMOTE_SERVER="myserver.com"
247+
REMOTE_SERVER="server2.example.com"
248248
SSH_PORT=22 # Standard SSH port
249249
SSH_USER="myuser"
250250
```
@@ -322,8 +322,7 @@ DROP TABLE test_table;
322322
- **Verify database exists**: `SHOW DATABASES;`
323323

324324
#### 3. MCP Server Fails to Connect
325-
326-
- **Check MCP server is built**: `ls /Users/dimitarklaturov/Dropbox/github/mcp-server-mysql/dist/`
325+
- **Check MCP server is built**: `ls /path/to/mcp-server-mysql/dist/`
327326
- **Verify Node.js version**: `node --version` (should be 18+ or 20+)
328327
- **Check logs**: `claude --debug`
329328

@@ -348,7 +347,7 @@ ps aux | grep ssh | grep -E "3307|3308|3309|3310"
348347
lsof -i -P | grep LISTEN | grep -E "3307|3308|3309|3310"
349348

350349
# Test MCP server directly
351-
cd /Users/dimitarklaturov/Dropbox/github/mcp-server-mysql
350+
cd /path/to/mcp-server-mysql
352351
MYSQL_HOST=127.0.0.1 MYSQL_PORT=33XX MYSQL_USER=user MYSQL_PASS=pass MYSQL_DB=db node dist/index.js
353352

354353
# View Claude logs
@@ -389,7 +388,6 @@ For each new project:
389388
## Support
390389

391390
For issues with:
392-
393-
- **MCP Server**: Check `/Users/dimitarklaturov/Dropbox/github/mcp-server-mysql`
394-
- **Claude Code**: Run `claude --help` or visit [https://docs.anthropic.com/en/docs/claude-code](https://docs.anthropic.com/en/docs/claude-code)
391+
- **MCP Server**: Check `/path/to/mcp-server-mysql`
392+
- **Claude Code**: Run `claude --help` or visit https://docs.anthropic.com/en/docs/claude-code
395393
- **SSH Tunnels**: Check server connectivity and SSH key configuration

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ If you want to clone and run this MCP server directly from the source code, foll
303303
"ALLOW_INSERT_OPERATION": "false",
304304
"ALLOW_UPDATE_OPERATION": "false",
305305
"ALLOW_DELETE_OPERATION": "false",
306-
"PATH": "/Users/atlasborla/Library/Application Support/Herd/config/nvm/versions/node/v22.9.0/bin:/usr/bin:/bin", // <--- Important to add the following, run in your terminal `echo "$(which node)/../"` to get the path
307-
"NODE_PATH": "/Users/atlasborla/Library/Application Support/Herd/config/nvm/versions/node/v22.9.0/lib/node_modules" // <--- Important to add the following, run in your terminal `echo "$(which node)/../../lib/node_modules"`
306+
"PATH": "/path/to/node/bin:/usr/bin:/bin", // <--- Important to add the following, run in your terminal `echo "$(which node)/../"` to get the path
307+
"NODE_PATH": "/path/to/node/lib/node_modules" // <--- Important to add the following, run in your terminal `echo "$(which node)/../../lib/node_modules"`
308308
}
309309
}
310310
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@benborla29/mcp-server-mysql",
33
"version": "2.0.6",
4-
"description": "MCP server for interacting with MySQL databases based on Node",
4+
"description": "MCP server for interacting with MySQL databases with write operations support",
55
"license": "MIT",
66
"author": "Ben Borla (https://github.com/benborla)",
77
"type": "module",

0 commit comments

Comments
 (0)