Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/jaimejunr/cursor-mcp-bridge/claude-mdgit clone --depth 1 https://github.com/JaimeJunr/cursor-mcp-bridgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/jaimejunr/cursor-mcp-bridge/claude-md)<a href="https://agentmods.dev/instructions/jaimejunr/cursor-mcp-bridge/claude-md"><img src="https://agentmods.dev/badge/instructions/jaimejunr/cursor-mcp-bridge/claude-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.05978 | $0.05978 |
| Opus 5 | $0.02989 | $0.02989 |
| Sonnet 5 | $0.01196 | $0.01196 |
| Haiku 4.5 | $0.00598 | $0.00598 |
Grade B, and why
cursor-mcp-bridge CLAUDE.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
never loads `~/.codex/config.toml` (whose MCP servers hung the CLI, spawning runaway `mcp-server` How it starts
The opening of the file, as written. The whole thing — 286 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What this is
An MCP server (stdio) that lets any MCP host delegate to headless coding-agent CLIs: Codex, Grok,
Claude Code, and an opt-in Cursor fallback. The fleet handles implementation, project mapping,
surgical reads, filtered command output, and web lookups without putting the worker's full raw
context into the caller. The design goal of every tool is context economy: format() in
src/index.ts logs the char count returned to context, because that char count is the real cost
being optimized.
Commands
npm run build # tsc → dist/ (the published/registered artifact is dist/index.js)
npm run dev # run the server from source via tsx (no build step)
npm test # vitest run — all unit tests
npx vitest run test/cli.test.ts # single test file
npx vitest run -t "resolveModel" # single test by name
There is no linter configured. npm run build (tsc, strict: true) is the type-check gate.
prepublishOnly runs the build; only dist/ is published (see files in package.json).
Architecture
Five small modules under src/, with pure logic covered by test/*.test.ts. The split exists so
the pure logic is testable without spawning a worker process:
index.ts— MCP server + tool registrations (twelve tools:delegate,fast_delegate,explore,read_slice,run_filtered,web_lookup,plan,build,fan_out,generate_image,follow_up,bridge_stats). Owns tool descriptions and the sharedroutingparams (cwd/model/effort). The second arg tonew McpServer(...)is aninstructionsstring that states the routing boundary (read/locate/web/grunt-work → bridge tools; native Read only when about to edit). These load at startup and are visible to the host even while tool schemas are deferred — that is why they matter for adoption. The five core tools (delegate,explore,read_slice,run_filtered,web_lookup) register with_meta: { "anthropic/alwaysLoad": true }so Claude Code (≥2.1.121) eagerly loads their schemas; secondary tools (fast_delegate,plan,build,fan_out,generate_image,follow_up,bridge_stats) stay deferred.format()appends thesession_idfooter and logs usage;follow_upfeeds that id back asRunOpts.resumeso a prior worker session continues without resending its context — the footer andfollow_upare two ends of the same loop.follow_uptakes an optionalmode— without it, a resumed session regains full tool access, so continuing a read-only session (explore/read_slice/web_lookup) must passmode:'ask'to stay read-only. The default (no mode) is for continuing adelegate.cli.ts— the only module that touches the child process.runCursor()spawns the engine's CLI;buildCursorArgs()/buildGrokArgs()/buildCodexArgs()/buildClaudeArgs()(+buildArgsdispatcher),resolveModel(),parseCliJson()/parseCodexJsonl()(+parseOutputdispatcher),resolveTier(),resolveFastTier(),hasEngine(),binExists(),budgetNote()are pure and unit-tested. Keep the spawn boundary here — do not spawn from elsewhere.agents.ts— resolves an optionaldelegate/fast_delegate/buildpersona on the host. A name such aspit:issue-investigatorsearches project/home.claude/agentsand~/.claude/plugins; plugin collisions pick the newest match by mtime. An inline{prompt}skips lookup. Only the markdown body crosses into the worker, and names containing/or..are rejected.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 286 lines · 5,978 tokens per session scan B 4df0b4f76ebe
cursor-mcp-bridge CLAUDE.md is an instructions file published in the GitHub repository JaimeJunr/cursor-mcp-bridge (2 stars, last pushed 9d ago), licensed MIT. It adds 5,978 tokens to every session, about $0.0299 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
gortex CLAUDE.md
Claude Code instructions for zzet/gortex, covering gortex, build & test, codebase overview, discovery (read once, then keep using) and llm provider (powers ask and searchsymbols assist: modes).
ClaudeCodeExtension CLAUDE.md
Claude Code instructions for dliedke/ClaudeCodeExtension, covering claude.md - claude code extension for visual studio, project overview, mandatory: version & documentation updates, build & test and release.
ClaudeCodeExtension AGENTS.md
AGENTS.md instructions for dliedke/ClaudeCodeExtension, covering agent instructions for claudecodeextension, build & test, code style and architecture.
hop AGENTS.md
Instructions for amittamari/hop, covering agent map, start here, what this repo builds, working rules and common commands.
feishu-cursor-claw AGENTS.md
Instructions for nongjun/feishu-cursor-claw, covering agents.md — feishu-cursor-claw(虾群平台版), 项目定位, 技术栈, 目录结构 and 模块职责与依赖.
codeseeker CLAUDE.md
Claude Code instructions for jghiringhelli/codeseeker: Smart Claude Code CLI — semantic search, graph analysis, token-optimized code intelligence. Read .claude/index.md before any task. Load .claude/core.md always.