Support for Gemini CLI (setup instructions) - WIP

This commit is contained in:
Fahad
2025-06-25 19:36:09 +04:00
parent 9c1503faac
commit 6d0bafa81d
7 changed files with 276 additions and 83 deletions

43
docs/gemini-setup.md Normal file
View File

@@ -0,0 +1,43 @@
# Gemini CLI Setup
> **Note**: While Zen MCP Server connects successfully to Gemini CLI, tool invocation is not working
> correctly yet. We'll update this guide once the integration is fully functional.
This guide explains how to configure Zen MCP Server to work with [Gemini CLI](https://github.com/google-gemini/gemini-cli).
## Prerequisites
- Zen MCP Server installed and configured
- Gemini CLI installed
- At least one API key configured in your `.env` file
## Configuration
1. Edit `~/.gemini/settings.json` and add:
```json
{
"mcpServers": {
"zen": {
"command": "/path/to/zen-mcp-server/zen-mcp-server"
}
}
}
```
2. Replace `/path/to/zen-mcp-server` with your actual Zen installation path.
3. If the `zen-mcp-server` wrapper script doesn't exist, create it:
```bash
#!/bin/bash
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"
exec .zen_venv/bin/python server.py "$@"
```
Then make it executable: `chmod +x zen-mcp-server`
4. Restart Gemini CLI.
All 15 Zen tools are now available in your Gemini CLI session.

79
docs/wsl-setup.md Normal file
View File

@@ -0,0 +1,79 @@
# WSL (Windows Subsystem for Linux) Setup Guide
This guide provides detailed instructions for setting up Zen MCP Server on Windows using WSL.
## Prerequisites for WSL
```bash
# Update WSL and ensure you have a recent Ubuntu distribution
sudo apt update && sudo apt upgrade -y
# Install required system dependencies
sudo apt install -y python3-venv python3-pip curl git
# Install Node.js and npm (required for Claude Code CLI)
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
# Install Claude Code CLI globally
npm install -g @anthropic-ai/claude-code
```
## WSL-Specific Installation Steps
1. **Clone the repository in your WSL environment** (not in Windows filesystem):
```bash
# Navigate to your home directory or preferred location in WSL
cd ~
# Clone the repository
git clone https://github.com/BeehiveInnovations/zen-mcp-server.git
cd zen-mcp-server
```
2. **Run the setup script**:
```bash
# Make the script executable and run it
chmod +x run-server.sh
./run-server.sh
```
3. **Verify Claude Code can find the MCP server**:
```bash
# List configured MCP servers
claude mcp list
# You should see 'zen' listed in the output
# If not, the setup script will provide the correct configuration
```
## Troubleshooting WSL Issues
### Python Environment Issues
```bash
# If you encounter Python virtual environment issues
sudo apt install -y python3.12-venv python3.12-dev
# Ensure pip is up to date
python3 -m pip install --upgrade pip
```
### Path Issues
- Always use the full WSL path for MCP configuration (e.g., `/home/YourName/zen-mcp-server/`)
- The setup script automatically detects WSL and configures the correct paths
### Claude Code Connection Issues
```bash
# If Claude Code can't connect to the MCP server, check the configuration
cat ~/.claude.json | grep -A 10 "zen"
# The configuration should show the correct WSL path to the Python executable
# Example: "/home/YourName/zen-mcp-server/.zen_venv/bin/python"
```
### Performance Tip
For best performance, keep your zen-mcp-server directory in the WSL filesystem (e.g., `~/zen-mcp-server`) rather than in the Windows filesystem (`/mnt/c/...`).