From 7c5201498b1aec11eac1324123e088c6e7eb0cdb Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Thu, 20 Nov 2025 14:26:27 +0100 Subject: [PATCH] docs: update MCP server config with tested uv run command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6e5617a..a818970 100644 --- a/README.md +++ b/README.md @@ -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"