@pilat/mcp-datalink 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Works with Claude Desktop, Claude Code, Cursor, Cline, and any MCP-compatible cl
|
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
|
-
Add to your MCP client config:
|
|
13
|
+
Add to your MCP client config file (see [config locations](#config-file-locations) below):
|
|
14
14
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
@@ -19,19 +19,51 @@ Add to your MCP client config:
|
|
|
19
19
|
"command": "npx",
|
|
20
20
|
"args": ["-y", "@pilat/mcp-datalink"],
|
|
21
21
|
"env": {
|
|
22
|
-
"
|
|
22
|
+
"DATALINK_ANALYTICS_URL": "postgresql://user:password@localhost:5432/analytics",
|
|
23
|
+
"DATALINK_ANALYTICS_READONLY": "true",
|
|
24
|
+
|
|
25
|
+
"DATALINK_INVENTORY_URL": "mysql://user:password@localhost:3306/inventory",
|
|
26
|
+
|
|
27
|
+
"DATALINK_CACHE_URL": "sqlite:///path/to/cache.db"
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
31
|
}
|
|
27
32
|
```
|
|
28
33
|
|
|
34
|
+
This creates three database connections: `analytics` (read-only), `inventory`, and `cache`.
|
|
35
|
+
|
|
29
36
|
| Variable | Description |
|
|
30
37
|
|----------|-------------|
|
|
31
38
|
| `DATALINK_{NAME}_URL` | Connection URL (creates database named `{name}`) |
|
|
32
39
|
| `DATALINK_{NAME}_READONLY` | Set to `true` to block writes |
|
|
33
40
|
|
|
34
|
-
**
|
|
41
|
+
**Connection URL formats:**
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# PostgreSQL
|
|
45
|
+
postgresql://user:password@localhost:5432/dbname
|
|
46
|
+
postgresql://user:password@localhost:5432/dbname?sslmode=require
|
|
47
|
+
|
|
48
|
+
# MySQL
|
|
49
|
+
mysql://user:password@localhost:3306/dbname
|
|
50
|
+
mysql://user:password@localhost:3306/dbname?ssl=true
|
|
51
|
+
|
|
52
|
+
# SQLite
|
|
53
|
+
sqlite:///path/to/database.db
|
|
54
|
+
sqlite:///Users/me/data/app.sqlite
|
|
55
|
+
sqlite://../relative/path/data.db
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Config File Locations
|
|
59
|
+
|
|
60
|
+
| Client | Config file |
|
|
61
|
+
|--------|-------------|
|
|
62
|
+
| Claude Code | `~/.claude/settings.local.json` (global) or `.mcp.json` (project) |
|
|
63
|
+
| Claude Desktop (macOS) | `~/Library/Application Support/Claude/claude_desktop_config.json` |
|
|
64
|
+
| Claude Desktop (Windows) | `%APPDATA%\Claude\claude_desktop_config.json` |
|
|
65
|
+
| Cursor | `~/.cursor/mcp.json` or Settings → Features → MCP Servers |
|
|
66
|
+
| Cline | `cline_mcp_settings.json` or VS Code settings `cline.mcpServers` |
|
|
35
67
|
|
|
36
68
|
## Tools
|
|
37
69
|
|