docs: Add logging section to bridge README

Added documentation for:
- Log file location (/tmp/proxysql_mcp_bridge.log)
- What information is logged
- How to use logs for debugging
pull/5310/head
Rene Cannao 4 months ago
parent 49e964bb02
commit 2ceaac049c

@ -107,8 +107,36 @@ Once configured, you can ask Claude:
> "Show me 5 rows from the orders table"
> "Run SELECT COUNT(*) FROM customers"
## Logging
For debugging, the bridge writes logs to `/tmp/proxysql_mcp_bridge.log`:
```bash
tail -f /tmp/proxysql_mcp_bridge.log
```
The log shows:
- stdout writes (byte counts and previews)
- tool calls (name, arguments, responses from ProxySQL)
- Any errors or issues
This can help diagnose communication issues between Claude Code, the bridge, and ProxySQL.
## Troubleshooting
### Debug Mode
If tools aren't working, check the bridge log file for detailed information:
```bash
cat /tmp/proxysql_mcp_bridge.log
```
Look for:
- `"tools/call: name=..."` - confirms tool calls are being forwarded
- `"response from ProxySQL:"` - shows what ProxySQL returned
- `"WRITE stdout:"` - confirms responses are being sent to Claude Code
### Connection Refused
Make sure ProxySQL MCP server is running:
```bash

Loading…
Cancel
Save