Install guide · VS Code
Install gemini-code-context-mcp for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
Add to Cursor: gemini-code-context-mcpInstall in VS Code: gemini-code-context-mcpInstall in VS Code Insiders: gemini-code-context-mcp
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "qmediat-gemini-code-context-mcp": { "type": "stdio", "command": "npx", "args": [ "-y", "@qmediat.io/gemini-code-context-mcp@1.25.1" ], "env": { "GEMINI_CREDENTIALS_PROFILE": "", "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY", "GEMINI_USE_VERTEX": "", "GOOGLE_CLOUD_PROJECT": "", "GEMINI_DAILY_BUDGET_USD": "", "GEMINI_CODE_CONTEXT_DEFAULT_MODEL": "", "GEMINI_CODE_CONTEXT_CACHING_MODE": "", "GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS": "", "GEMINI_CODE_CONTEXT_LOG_LEVEL": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |