From ddd1d518303a39b00acbc93cb908829dc7c48a5c Mon Sep 17 00:00:00 2001 From: Fahad Date: Sun, 8 Jun 2025 23:27:58 +0400 Subject: [PATCH] fix: correct MCP server configuration to use shell scripts Updated the configuration to use run_gemini.sh (macOS/Linux) or run_gemini.bat (Windows) instead of directly calling Python. The shell scripts properly: - Set up the virtual environment - Handle Python path resolution - Run gemini_server.py (not server.py) This ensures the server runs with the correct dependencies. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3b75fe3..4d0ad97 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,7 @@ Add to your `claude_desktop_config.json`: { "mcpServers": { "gemini": { - "command": "python", - "args": ["/absolute/path/to/gemini-mcp-server/server.py"], + "command": "/absolute/path/to/gemini-mcp-server/run_gemini.sh", "env": { "GEMINI_API_KEY": "your-gemini-api-key-here" } @@ -40,6 +39,8 @@ Add to your `claude_desktop_config.json`: } ``` +**Windows users**: Use `run_gemini.bat` instead of `run_gemini.sh` + ### 3. Restart Claude Desktop ### 4. Connect to Claude Code