# @qmediat.io/gemini-code-context-mcp

MCP server that gives Claude Code and other MCP hosts long-context memory of a codebase through Gemini's 1M-token window: `ask`/`code` send the scanned workspace with implicit caching by default or an explicit Context Cache on request; `ask_agentic` reads

- **Type:** MCP server
- **Trust:** 85/100 (A), scored on the package rubric
- **Verification:** verified (build provenance)
- **Version:** 1.21.0
- **Author:** Quantum Media Technologies
- **License:** MIT
- **npm:** @qmediat.io/gemini-code-context-mcp
- **Source:** https://github.com/qmediat/gemini-code-context-mcp
- **Compatible clients:** claude-code, cursor, copilot, gemini (basis: transport)

## Trust

85/100 (A), scored on the package rubric
- Publisher verified: no
- Build provenance: verified attestation
- npm trusted publishing (OIDC): yes
- Install scripts: nothing suspicious found
- Prompt-injection scan: not run
- Obfuscation scan: not run
- Evidence age: 1 day

## Security scan

- **Status:** clean
- **Scanned:** 2026-10-15T01:26:29.815Z
- **Version scanned:** 1.21.0
- **CVEs:** none found by OSV at scan time

## Tools

10 declared. Statically extracted from the shipped source — a floor on the surface, not a census.
- `list_directory` — List the immediate children (files + subdirectories) of a workspace-relative directory path. Does NOT recurse. Excluded directories (node_modules, .git, .next, 
- `find_files` — Recursive glob search for files under the workspace root. Supports `*` (match any character except `/`) and `**` (match any character including `/`). Examples: 
- `read_file` — Read 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 `t
- `grep` — Regular-expression search through source files in the workspace. Pattern is compiled as a JavaScript RegExp (standard metacharacters). Each match line is capped
- `ask_agentic`
- `ask`
- `clear` — Delete 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 res
- `code` — Delegate 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
- `reindex` — Clear 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 aft
- `status` — Inspect 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 c

## Install

**Verdict: install** — No blocking findings and no open coverage gaps — safe to install as configured.
**Config** (claude-code):
```json
"{\n  \"mcpServers\": {\n    \"gemini-code-context\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@qmediat.io/gemini-code-context-mcp\"\n      ],\n      \"env\": {\n        \"GEMINI_API_KEY\": \"<YOUR_GEMINI_API_KEY>\"\n      }\n    }\n  }\n}"
```
**Credentials it will ask for** (names only — Forge never holds a value):
- `GEMINI_API_KEY` — Gemini API Key (optional)
Placeholders only. Forge never holds, brokers, or transmits a credential value — replace each <YOUR_NAME> in your own config file. Do not send a value back to Forge; no Forge endpoint accepts one.
- This entry needs 1 credential (0 required). The generated config carries placeholders, so it will fail in the editor rather than at runtime if they are left unset.

## Blast radius

Moderate blast radius — holds an api key; runs on your machine.
- Floor 23, ceiling 23 (tier: moderate)
- This is impact, not likelihood. A high radius is not a defect: a filesystem server is supposed to write files. It is never part of the trust score.

## Machine-readable views of this entry

- Signed JSON: https://forgeregistry.com/api/v1/packages/%40qmediat.io%2Fgemini-code-context-mcp
- Install plan: https://forgeregistry.com/api/v1/packages/%40qmediat.io%2Fgemini-code-context-mcp/install-plan
- Alternatives: https://forgeregistry.com/api/v1/alternatives/%40qmediat.io%2Fgemini-code-context-mcp
- HTML page: https://forgeregistry.com/registry/%40qmediat.io%2Fgemini-code-context-mcp
- MCP: POST https://forgeregistry.com/api/mcp → `forge_get_package` / `forge_install_plan`

## About this document

Generated by Forge (https://forgeregistry.com) — a compact rendering of the same record served, signed, at the JSON URL above. Trust and scan facts are the registry's own measurements; anything Forge did not measure is named as unmeasured rather than omitted.
