docs: update MCP server config with tested uv run command

Update the Claude Code MCP configuration to use 'uv run' instead of
direct python execution. This ensures the virtual environment and
dependencies are properly activated when the MCP server starts.

Also added a note about working directory requirements.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-20 14:26:27 +01:00
co-authored by Claude
parent c86c6d9a64
commit 7c5201498b
+4 -3
View File
@@ -255,9 +255,8 @@ To use the MCP server with Claude Code, add it to your MCP configuration:
{
"mcpServers": {
"clubber": {
"command": "python",
"args": ["-m", "src.mcp_server"],
"cwd": "/absolute/path/to/clubber",
"command": "uv",
"args": ["run", "python", "-m", "src.mcp_server"],
"env": {
"CLUBBER_API_URL": "http://127.0.0.1:8000/graphql"
}
@@ -266,6 +265,8 @@ To use the MCP server with Claude Code, add it to your MCP configuration:
}
```
**Note**: The `uv run` command ensures the virtual environment and dependencies are properly activated. The MCP server will use the current working directory where Claude Code is running, so make sure to open Claude Code from the clubber project directory.
After adding the configuration, restart Claude Code. You can then use natural language to manage members:
- "List all members in the society"