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:
@@ -255,9 +255,8 @@ To use the MCP server with Claude Code, add it to your MCP configuration:
|
|||||||
{
|
{
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"clubber": {
|
"clubber": {
|
||||||
"command": "python",
|
"command": "uv",
|
||||||
"args": ["-m", "src.mcp_server"],
|
"args": ["run", "python", "-m", "src.mcp_server"],
|
||||||
"cwd": "/absolute/path/to/clubber",
|
|
||||||
"env": {
|
"env": {
|
||||||
"CLUBBER_API_URL": "http://127.0.0.1:8000/graphql"
|
"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:
|
After adding the configuration, restart Claude Code. You can then use natural language to manage members:
|
||||||
|
|
||||||
- "List all members in the society"
|
- "List all members in the society"
|
||||||
|
|||||||
Reference in New Issue
Block a user