diff --git a/README.md b/README.md index 62e44bf..382f543 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,31 @@ The configuration for Claude Desktop and Cline is the same (provided below for [ Please refer to the [README file](./run-with-google-adk/README.md) for both - locally running the prebuilt agent and [Cloud Run](https://cloud.google.com/run) deployment. +## MCP Client Config Locations + +MCP clients all use the same JSON configuration format (see the [MCP Server Configuration Reference](https://google.github.io/mcp-security/usage_guide.html#mcp-server-configuration-reference)), but they expect the file in different locations. + +| Client Application | Scope | macOS / Linux Location | Windows Location | Notes | +| ------------------------ | --------- | ------------------------------------- | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **Gemini CLI** | Global | `~/.gemini/settings.json` | `%USERPROFILE%\.gemini\settings.json` | File must include `mcpServers`. Confirmed in [Google Security Ops post](https://security.googlecloudcommunity.com/google-security-operations-2/google-cloud-security-mcp-servers-in-gemini-cli-922). | +| **Claude Desktop** | Global | `~/Claude/claude_desktop_config.json` | `%USERPROFILE%\Claude\claude_desktop_config.json` | Config accessible via *Claude > Settings > Developer > Edit Config*. | +| **Claude Code** | Global | `~/.claude.json` | `%USERPROFILE%\.claude.json` | Primary config file for Claude Code CLI and extensions. | +| **Cursor IDE (Global)** | Global | `~/.cursor/mcp.json` | `%USERPROFILE%\.cursor\mcp.json` | Enables MCP servers globally across all projects. | +| **Cursor IDE (Project)** | Project | `/.cursor/mcp.json` | `/.cursor/mcp.json` | Workspace/project-specific config file. | +| **VS Code (Workspace)** | Workspace | `/.vscode/mcp.json` | `/.vscode/mcp.json` | Workspace-level config used when an MCP extension (like **Cline**) is installed. Overrides global config if present. | +| **Cline (VS Code Ext.)** | Global | Inside VS Code extension data | `%APPDATA%\Code\User\globalStorage\\settings\cline_mcp_settings.json` | Exact path varies by VS Code variant and platform. `` corresponds to the installed extension folder (e.g., `saoudrizwan.claude-dev`). | + +### Additional Notes for Windows + +- `%USERPROFILE%` → `C:\Users\` +- `%APPDATA%` → `C:\Users\\AppData\Roaming` +- `` → folder opened in VS Code or IDE for the project +- `` → name of the installed extension folder (e.g., `saoudrizwan.claude-dev` for Claude/Cline) + +### Tip: Single Config with Symlinks + +If you use multiple MCP clients, you can maintain a **single config file** and symlink it into each expected location. This avoids drift and keeps your server definitions consistent. + ### Using uv (Recommended)