Skip to content

Commit d966485

Browse files
committed
docs: clarify MCP server file location in claude integration guide
1 parent bd756e7 commit d966485

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/claude_mcp_integration.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,29 @@ For installations using the default setup script, you can use:
7979
}
8080
```
8181

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+
82105
## Using the Integration
83106

84107
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
158181
- Ensure your codebase has been properly indexed
159182
- Check indexing status with `curl http://localhost:3000/health`
160183
- 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`
161190

162191
### Logs and Diagnostics
163192

0 commit comments

Comments
 (0)