Skip to content

Commit f14aa92

Browse files
authored
Merge pull request #10 from srthkdev/feat/auth-ssl-pg-fallback
Fix authentication via DBeaver credentials + SSL; add Postgres pg fallback; clean MCP stdout
2 parents 95306bf + 2c72fd3 commit f14aa92

6 files changed

Lines changed: 351 additions & 90 deletions

File tree

docs-site/docs/troubleshooting.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,39 @@ dbeaver-mcp-server
5858
- Restart DBeaver after making configuration changes
5959

6060
### Connection Authentication
61+
62+
#### Password Authentication Issues
63+
If you're experiencing authentication failures even though connections work in DBeaver, this is now fixed in version 1.1.8+. The server properly loads and decrypts credentials from DBeaver's credential store.
64+
65+
**How it works:**
66+
- DBeaver stores passwords encrypted in `credentials-config.json`
67+
- The MCP server automatically decrypts and uses these credentials
68+
- Passwords are loaded from: `~/.local/share/DBeaverData/workspace6/General/.dbeaver/credentials-config.json` (Linux) or equivalent path on other platforms
69+
70+
**Troubleshooting:**
71+
1. Ensure your connections are saved with passwords in DBeaver
72+
2. Test connections in DBeaver GUI first to verify they work
73+
3. The MCP server will automatically detect and use stored credentials
74+
4. Enable debug mode to see credential loading logs:
75+
```bash
76+
DBEAVER_DEBUG=true dbeaver-mcp-server
77+
```
78+
79+
**Common Issues:**
80+
- **Empty password field**: Make sure you saved the password in DBeaver (check "Save password" when creating connection)
81+
- **SSL/TLS requirements**: The server now properly handles SSL settings from DBeaver
82+
- **Connection properties**: All connection properties including host, port, database name are loaded from DBeaver
83+
84+
**Manual credential check:**
85+
```bash
86+
# On Linux/macOS - view decrypted credentials
87+
openssl aes-128-cbc -d \
88+
-K babb4a9f774ab853c96c2d653dfe544a \
89+
-iv 00000000000000000000000000000000 \
90+
-in ~/.local/share/DBeaverData/workspace6/General/.dbeaver/credentials-config.json | \
91+
dd bs=1 skip=16 2>/dev/null | jq
92+
```
93+
6194
- Verify connection credentials haven't expired
6295
- Check if database server is accessible
6396
- Ensure firewall settings allow database connections

package-lock.json

Lines changed: 151 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dbeaver-mcp-server",
3-
"version": "1.1.7",
3+
"version": "1.2.3",
44
"description": "Production-ready Model Context Protocol server for universal database access through DBeaver connections - supports 200+ database types",
55
"main": "dist/index.js",
66
"type": "module",
@@ -55,12 +55,13 @@
5555
"@modelcontextprotocol/sdk": "1.9.0",
5656
"csv-parser": "^3.0.0",
5757
"csv-stringify": "^6.4.6",
58-
"xml2js": "^0.6.2"
58+
"pg": "^8.13.1"
5959
},
6060
"devDependencies": {
6161
"@types/node": "^20.0.0",
6262
"@types/xml2js": "^0.4.14",
63-
"bumpp": "^10.2.3",
63+
"@types/pg": "^8.11.6",
64+
"typescript": "^5.8.3",
6465
"rimraf": "^5.0.5",
6566
"shx": "^0.4.0",
6667
"typescript": "^5.8.3"

0 commit comments

Comments
 (0)