Gemini Code Context MCP
Codebase Q&A for Claude Code through Gemini's 1M-token window, with workspace scans and caching.
Connector by qmediat · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/qmediat-gemini-code-context-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 7 read · 0 write · 2 delete · 1 not yet classified
- Secrets
- 2 (API keys, tokens or passwords)
- Install scripts
- Not scanned yet
- Runs as
- Node.js package
Tools by what they do 10
Read from the source code; the running server may list different tools.
Read 7 · Look things up without changing anything.
askask_agenticfind_filesgreplist_directoryread_filestatus
Delete 2 · Delete, drop, revoke or wipe things.
clearreindex
Not yet classified 1 · We could not tell from the name and description.
code
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
GEMINI_API_KEYGEMINI_CREDENTIALS_PROFILE
Other settings (environment variables or headers).
GEMINI_CODE_CONTEXT_CACHE_TTL_SECONDSGEMINI_CODE_CONTEXT_CACHING_MODEGEMINI_CODE_CONTEXT_DEFAULT_MODELGEMINI_CODE_CONTEXT_LOG_LEVELGEMINI_DAILY_BUDGET_USDGEMINI_USE_VERTEXGOOGLE_CLOUD_PROJECT
Tools (10)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
askAsk GeminiPrimary tool for codebase Q&A on workspaces that fit the model input-token limit (~1M tokens for Gemini Pro — covers most repos). Eager: the scanned workspace goes with the question (implicit caching by default; `cachingMode: "explicit"` builds a persistent Context Cache — measured ~8× faster and ~4× cheaper on repeat queries than sending the codebase inline). Falls back to `ask_agentic` automatically when the workspace exceeds the limit (set `onWorkspaceTooLarge: "fallback-to-agentic"`). For repos that genuinely exceed 1M tokens or when only a handful of files matter, call `ask_agentic` direc…
ask_agenticAsk Gemini (agentic)Surgical fallback for repos that exceed `ask`'s model input-token limit (~1M tokens for Gemini Pro), OR when you only need a handful of files (cheaper than eager-uploading a large repo). Gemini uses sandboxed file-access tools (`list_directory`, `find_files`, `read_file`, `grep`) to read only what it needs across multiple iterations (default 20). Cost profile: more API round trips than `ask`, but total tokens usually much smaller on big repos. **Wall-clock is structurally slower than `ask`** — each iteration pays ~30-60s of HIGH-thinking latency, so a 20-iter call can take 10-20 minutes. For t…
clearClear workspace cacheDelete the cached context and manifest entries for a workspace. The Gemini-side cache is also released. Useful before switching projects or when you want to reset state deliberately.
codeDelegate coding to GeminiDelegate a coding task to Gemini using its native thinking budget and (optional) code execution. Returns structured edits in OLD/NEW format that Claude Code can apply via its Edit tool, plus a brief rationale.
find_filesRecursive glob search for files under the workspace root. Supports `*` (match any character except `/`) and `**` (match any character including `/`). Examples: `**/*.ts`, `src/**/index.*`, `README.md`. Respects the same default excludes as list_directory.
grepRegular-expression search through source files in the workspace. Pattern is compiled as a JavaScript RegExp (standard metacharacters). Each match line is capped at 500 characters. At most 100 matches per call.
list_directoryList the immediate children (files + subdirectories) of a workspace-relative directory path. Does NOT recurse. Excluded directories (node_modules, .git, .next, etc.) and denylisted filenames (lockfiles, .env, etc.) are silently filtered out.
read_fileRead a file from the workspace, optionally a line-range slice. Responses are hard-capped at 200 KB; if the file is larger you get a head-truncated slice with `truncated: true` and `totalLines` metadata. Call again with `startLine` / `endLine` to page through. Rejects binary / non-source extensions.
reindexForce-rebuild workspace cacheClear the current Gemini Context Cache for a workspace and rescan the file tree. The next ask/code call will upload changed files and build a new cache. Use after a large refactor when hash-based invalidation would be slower than a full rebuild.
statusContext cache statusInspect the cache state for a workspace: file count, cache ID, TTL remaining, cumulative cost, and savings from cache hits. Also lists models available to the current API key.
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit
- Oct 16, 2026 (12 days ago)
- Last release
- Oct 6, 2026 (22 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
io.github.qmediat/gemini-code-context-mcp- Version
- 1.20.0
- Auth
- API key
- Packages
- npm @qmediat.io/gemini-code-context-mcp
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from qmediat
- 0.602score
Cursor MCP
qmediat
Cursor's agent (cursor-agent CLI) through MCP: any model your plan offers, resumable sessions.
ConnectorAFreshness: ALocal★ 1Claude Code +5 - 0.579score
Ideogram MCP
qmediat
Ideogram platform MCP (api v2): 18 image models, price quotes, async generations, raw call
ConnectorAFreshness: ALocalClaude Code +5
Cite this page
Gemini Code Context MCP. Agent Mart. https://agentmart.dev/connectors/qmediat-gemini-code-context-mcp (last updated 2026-10-24)