You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/claude_mcp_integration.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,29 @@ For installations using the default setup script, you can use:
79
79
}
80
80
```
81
81
82
+
Or if you're using a `.mcp.json` file in your project root:
83
+
84
+
```json
85
+
{
86
+
"mcpServers": {
87
+
"files-db-mcp": {
88
+
"type": "stdio",
89
+
"command": "python",
90
+
"args": [
91
+
"~/.files-db-mcp/src/claude_mcp_server.py",
92
+
"--host",
93
+
"localhost",
94
+
"--port",
95
+
"3000"
96
+
],
97
+
"env": {}
98
+
}
99
+
}
100
+
}
101
+
```
102
+
103
+
**Important:** Make sure to use the full path to the `src/claude_mcp_server.py` file. The file is located in the `src` subdirectory, not directly in the `~/.files-db-mcp` directory.
104
+
82
105
## Using the Integration
83
106
84
107
After setting up the integration, start a new conversation with Claude and enable the Files-DB-MCP MCP tool.
@@ -158,6 +181,12 @@ Understanding the architecture and port configuration is important for troublesh
158
181
- Ensure your codebase has been properly indexed
159
182
- Check indexing status with `curl http://localhost:3000/health`
160
183
- Verify the project path in your docker-compose configuration
184
+
185
+
5.**"Connection closed" or "MCP error -32000: Connection closed"**:
186
+
- Verify the path to `claude_mcp_server.py` in your MCP configuration
187
+
- Make sure to specify the full path including the `src` directory: `~/.files-db-mcp/src/claude_mcp_server.py`
188
+
- Check if the file exists using `ls -la ~/.files-db-mcp/src/claude_mcp_server.py`
189
+
- Try running the command manually to see if it works: `python ~/.files-db-mcp/src/claude_mcp_server.py --host localhost --port 3000`
0 commit comments