Skip to content

Commit ddd1d51

Browse files
committed
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.
1 parent 96b7afc commit ddd1d51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ Add to your `claude_desktop_config.json`:
3030
{
3131
"mcpServers": {
3232
"gemini": {
33-
"command": "python",
34-
"args": ["/absolute/path/to/gemini-mcp-server/server.py"],
33+
"command": "/absolute/path/to/gemini-mcp-server/run_gemini.sh",
3534
"env": {
3635
"GEMINI_API_KEY": "your-gemini-api-key-here"
3736
}
@@ -40,6 +39,8 @@ Add to your `claude_desktop_config.json`:
4039
}
4140
```
4241

42+
**Windows users**: Use `run_gemini.bat` instead of `run_gemini.sh`
43+
4344
### 3. Restart Claude Desktop
4445

4546
### 4. Connect to Claude Code

0 commit comments

Comments
 (0)