MCP低风险未认领

gemini-code-context-mcp

Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.

qmediatqmediat/gemini-code-context-mcp更新于 2026年10月6日

server.json

{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "name": "io.github.qmediat/gemini-code-context-mcp",
  "description": "Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.",
  "repository": {
    "url": "https://github.com/qmediat/gemini-code-context-mcp",
    "source": "github"
  },
  "version": "1.20.0",
  "packages": [
    {
      "registryType": "npm",
      "identifier": "@qmediat.io/gemini-code-context-mcp",
      "version": "1.20.0",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "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.",
          "format": "string",
          "name": "GEMINI_CREDENTIALS_PROFILE"
        },
        {
          "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.",
          "format": "string",
          "isSecret": true,
          "name": "GEMINI_API_KEY"
        },
        {
          "description": "Set to `true` to use Vertex AI backend via Application Default Credentials. Requires GOOGLE_CLOUD_PROJECT.",
          "format": "string",
          "name": "GEMINI_USE_VERTEX"
        },
        {
          "description": "GCP project ID when using Vertex AI backend. Only read when GEMINI_USE_VERTEX=true.",
          "format": "string",
          "name": "GOOGLE_CLOUD_PROJECT"
        },
        {
          "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`.",
          "format": "string",
          "name": "GEMINI_DAILY_BUDGET_USD"
        },
        {
          "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.",
          "format": "string",
          "name": "GEMINI_CODE_CONTEXT_DEFAULT_MODEL"
        },
        {
          "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.",
          "format": "string",
          "name": "GEMINI_CODE_CONTEXT_CACHING_MODE"
        },
        {
          "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.",
          "format": "string",
          "name": "GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDS"
        },
        {
          "description": "`debug` | `info` | `warn` | `error`. Default: `info`.",
          "format": "string",
          "name": "GEMINI_CODE_CONTEXT_LOG_LEVEL"
        }
      ]
    }
  ]
}

权限

声明检测
运行代码—node
安装—npm:@qmediat.io/gemini-code-context-mcp@1.20.0
安装时运行脚本—无
网络无无
需要的凭据GEMINI_API_KEYGEMINI_API_KEY
工作区外的路径—无
智能体工具—无

检查

低风险 · 没有发现需要提醒的地方。

未经人工审核 · 已做规则检查;模型审核尚未开启。

版本

  1. #11.20.0最新2026年10月7日