gemini-code-context-mcp
Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.
Documentation & Preview
{ "mcpServers": { "mcp-gemini-code-context-mcp-2d8b6967fa8c723bdb59": { "command": "npx", "args": [ "-y", "--package", "@qmediat.io/gemini-code-context-mcp@1.25.1", "gemini-code-context-mcp" ], "env": { "GEMINI_CREDENTIALS_PROFILE": "${ENV_GEMINI_CREDENTIALS_PROFILE}", "GEMINI_API_KEY": "${ENV_GEMINI_API_KEY}", "GEMINI_USE_VERTEX": "${ENV_GEMINI_USE_VERTEX}", "GOOGLE_CLOUD_PROJECT": "${ENV_GOOGLE_CLOUD_PROJECT}", "GEMINI_DAILY_BUDGET_USD": "${ENV_GEMINI_DAILY_BUDGET_USD}", "GEMINI_CODE_CONTEXT_DEFAULT_MODEL": "${ENV_GEMINI_CODE_CONTEXT_DEFAULT_MODEL}", "GEMINI_CODE_CONTEXT_CACHING_MODE": "${ENV_GEMINI_CODE_CONTEXT_CACHING_MODE}", "GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS": "${ENV_GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS}", "GEMINI_CODE_CONTEXT_LOG_LEVEL": "${ENV_GEMINI_CODE_CONTEXT_LOG_LEVEL}" } } }, "setup": { "fields": [ { "id": "ENV_GEMINI_CREDENTIALS_PROFILE", "label": "GEMINI_CREDENTIALS_PROFILE", "description": "Profile name in ~/.config/qmediat/credentials (chmod 0600). Created by npx @qmediat.io/gemini-code-context-mcp init. Recommended; keeps your API key out of ~/.claude.json.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GEMINI_API_KEY", "label": "GEMINI_API_KEY", "description": "Fallback Tier 3 auth. Your Gemini API key. Emits a warning at startup recommending you move it to the credentials profile via the init command.", "required": false, "secret": true, "default": "" }, { "id": "ENV_GEMINI_USE_VERTEX", "label": "GEMINI_USE_VERTEX", "description": "Set to true to use Vertex AI backend via Application Default Credentials. Requires GOOGLE_CLOUD_PROJECT.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GOOGLE_CLOUD_PROJECT", "label": "GOOGLE_CLOUD_PROJECT", "description": "GCP project ID when using Vertex AI backend. Only read when GEMINI_USE_VERTEX=true.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GEMINI_DAILY_BUDGET_USD", "label": "GEMINI_DAILY_BUDGET_USD", "description": "Hard daily USD cap enforced locally. Server refuses calls after the cap until UTC midnight. Unlimited if unset. Honoured by ask, code, and per-iteration by ask_agentic.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GEMINI_CODE_CONTEXT_DEFAULT_MODEL", "label": "GEMINI_CODE_CONTEXT_DEFAULT_MODEL", "description": "Model alias (latest-pro-thinking, latest-pro, latest-flash, latest-lite, latest-vision) or literal model ID, read by ask, ask_agentic and code. Default: latest-pro-thinking (the thinking tier). code replaces a configured default that resolves but cannot reason or think with latest-pro-thinking and reports it as configuredModelReplaced; a default that does not resolve fails every tool.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GEMINI_CODE_CONTEXT_CACHING_MODE", "label": "GEMINI_CODE_CONTEXT_CACHING_MODE", "description": "implicit (default since v1.14.0: the workspace text is sent inline, Gemini's automatic prefix cache decides any discount) or explicit (Files API upload + Context Cache with Google's cached-input price). Per-call cachingMode wins.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS", "label": "GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS", "description": "Context Cache TTL in seconds in explicit caching mode. Default: 3600 (1 hour). Hot workspaces (<10 min since last use) auto-refresh via background watcher.", "required": false, "secret": false, "default": "" }, { "id": "ENV_GEMINI_CODE_CONTEXT_LOG_LEVEL", "label": "GEMINI_CODE_CONTEXT_LOG_LEVEL", "description": "debug | info | warn | error. Default: info.", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.qmediat/gemini-code-context-mcp", "registryVersion": "1.25.1", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.qmediat%2Fgemini-code-context-mcp/versions/1.25.1", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "@qmediat.io/gemini-code-context-mcp", "version": "1.25.1", "integrity": "sha512-IHqm+W8z2RtG1dzT+B4sIcokMGunW9yVr63HAgj0oaVgvBGBs9w867+tKL6KFq/no0Qw6dwvzcjarD8HCv9+yg==", "registryNameMatched": "io.github.qmediat/gemini-code-context-mcp", "checkedAt": "2026-11-21T18:21:13.726Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }