bridge-mcp

bridge-mcp is a command for coding agents from xiaolai/cc-suite. It costs 17 tokens per session (394 once invoked), scanned A, original, ISC.

A configuration synchronizer that copies MCP server entries from `.mcp.json` into Codex and Antigravity workspace settings. MCP servers are external tools that an AI coding agent can call.

In plain words
What is it for?
Use it after changing `.mcp.json` to update both projections, or run its sync alias when you want the configurations reconciled.
Why use it?
It prevents the same server list from drifting between agent configurations. It also preserves user-managed Antigravity settings and removes outdated entries owned by the suite.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the cc-suite plugin — 13 skills, 39 commands, 6 agents, 3 hooks shipped together

Install

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.

agentmods
npx agentmods add commands/xiaolai/cc-suite/bridge-mcp
Clone the repo
git clone --depth 1 https://github.com/xiaolai/cc-suite

Or install cc-suite, the plugin that ships this one along with the rest of its 13 skills, 39 commands, 6 agents, 3 hooks.

Wrote 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.

agentmods badge for bridge-mcp

README.md
[![agentmods](https://agentmods.dev/badge/commands/xiaolai/cc-suite/bridge-mcp.svg)](https://agentmods.dev/commands/xiaolai/cc-suite/bridge-mcp)
Your own site
<a href="https://agentmods.dev/commands/xiaolai/cc-suite/bridge-mcp"><img src="https://agentmods.dev/badge/commands/xiaolai/cc-suite/bridge-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 394 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.00394
Opus 5 $0.00009 $0.00197
Sonnet 5 $0.00003 $0.00079
Haiku 4.5 $0.00002 $0.00039

Measured 5d ago against content hash 1a8239d2c693, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bridge-mcp scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/bridge-mcp.md · 50 lines

What it actually says

/cc-suite:bridge-mcp

Copy every MCP server registered in .mcp.json into both target projections: Codex's .codex/config.toml and Antigravity's generated .agents/mcp_config.json. The agy projection also registers the pinned claude-code server for agy → Claude delegation.

Idempotent and reconciliatory. Codex entries are sentinel-managed and stale cc-suite-owned entries are removed when they disappear from .mcp.json. Agy entries are refreshed only when the provenance file belongs to cc-suite; user-managed agy configs are never overwritten. Names containing characters Codex rejects (for example, @scope/pkg) are normalized only in the Codex projection.

The explicit alias /cc-suite:sync-mcp runs the same sync for discoverability.

Workflow

Step 1: Run the bridge script

bash "${CLAUDE_PLUGIN_ROOT}/scripts/bridge_mcp.sh"

If the script exits non-zero, report the error output and stop. If .mcp.json does not exist, Codex receives no project servers; the agy projection still contains cc-suite's reverse Claude bridge.

Step 2: Report results

Use this template:

**bridge-mcp**: MCP servers mirrored from `.mcp.json` to Codex and agy

| Server | Action |
|--------|--------|
| {server-name} | mirrored |
| {server-name} | already present (skipped) |
| codex-cli | available to agy; skipped in Codex's own config |

Success criterion: script exits 0 and the source servers appear in both target configs, subject to transport validation and user-managed conflict protection.

Changes

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.

  1. 5d ago First seen · 50 lines · 17 tokens per session scan A 1a8239d2c693

Subscribe to this mod's changes

bridge-mcp is a command published in the GitHub repository xiaolai/cc-suite (44 stars, last pushed 3d ago), licensed ISC. It adds 17 tokens to every session and 394 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.