Skip to main content
Glama

codex-gemini-bridge

中文说明

A lightweight, zero-dependency MCP server that connects OpenAI Codex to Gemini models via your local Antigravity CLI (agy).

Supports macOS, Linux, and Windows.


1. Prerequisites

  1. Node.js: >= 22.0.0 (node --version)

  2. Antigravity CLI (agy):


Related MCP server: codex-cli-mcp-tool

Run the one-liner setup command for your operating system. It downloads the project to ~/.codex/mcp-servers/codex-gemini-bridge and automatically configures Codex (~/.codex/config.toml):

macOS / Linux

bash <(curl -fsSL https://raw.githubusercontent.com/theotherkim/codex-gemini-bridge/main/scripts/setup.sh)

Windows (PowerShell)

irm https://raw.githubusercontent.com/theotherkim/codex-gemini-bridge/main/scripts/setup.ps1 | iex

(If you already cloned the repo locally, simply run npm run setup inside the project directory).


3. Manual Configuration (Optional)

If you prefer to configure manually, clone the repository into your Codex MCP directory:

macOS / Linux

git clone https://github.com/theotherkim/codex-gemini-bridge.git ~/.codex/mcp-servers/codex-gemini-bridge

Add to ~/.codex/config.toml:

[mcp_servers.codex-gemini-bridge]
command = "node"
args = ["~/.codex/mcp-servers/codex-gemini-bridge/src/index.mjs"]
env_vars = ["AGY_BIN"]

(Or via Codex CLI: codex mcp add codex-gemini-bridge -- node ~/.codex/mcp-servers/codex-gemini-bridge/src/index.mjs)

Windows

git clone https://github.com/theotherkim/codex-gemini-bridge.git "$env:USERPROFILE\.codex\mcp-servers\codex-gemini-bridge"

Add to %USERPROFILE%\.codex\config.toml:

[mcp_servers.codex-gemini-bridge]
command = "node"
args = ["C:/Users/<YourUsername>/.codex/mcp-servers/codex-gemini-bridge/src/index.mjs"]
env_vars = ["AGY_BIN"]

4. Usage

Restart Codex, then ask in natural language:

  • "Ask Gemini to summarize this codebase"

  • "Use Gemini to review this pull request"

  • "List available models with gemini_models"

Available Tools

  • gemini: Send prompts to Gemini (supports prompt, model, thinking_level, store, etc.).

  • gemini_models: List all models available to your local account.


License

MIT © Kim

Available Tools

2 tools
geminiA

Send a prompt to the local Antigravity CLI and return the model text output. The default model is Gemini 3.7 Flash High. Pass store=true to receive a conversation_id that can be used with previous_interaction_id on a later call. Returns model text, interaction_id, model, usage metadata and status. Never returns credentials.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNoModel id. Defaults to gemini-3.7-flash-high.
storeNoReturn a conversation_id so it can be referenced later by previous_interaction_id. Defaults to false.
promptYesThe user prompt to send to the model (required, non-empty).
timeout_msNoRequest timeout in milliseconds. Defaults to 120000, max 300000.
thinking_levelNoReasoning effort. Defaults to high.
system_instructionNoOptional system instruction to prepend to the conversation.
previous_interaction_idNoID of a previously stored interaction to continue the conversation. Requires store=true.

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the burden of revealing behavioral traits. It discloses what is returned (model text, interaction_id, model, usage metadata, status), a safety guarantee ('Never returns credentials'), and the conditional behavior of store=true generating a conversation_id. While it does not mention rate limits or side effects, it covers the most critical behavior for an AI agent selecting this tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four sentences, approximately 70 words, with each sentence contributing unique information: purpose, default model, store mechanism, return values and safety. It is front-loaded and contains no redundant filler, making it highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool complexity (7 params, no annotations, no output schema), the description is reasonably complete. It explains the tool's operation, return fields, and conversation continuation. It does not cover error scenarios or detailed response formatting, but the schema covers parameter specifics, and the description lists the key output components.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds value by explaining the relationship between store and previous_interaction_id, and by stating the default model, which complements the schema. It does not describe every parameter but enriches the context for the conversation flow.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Send a prompt to the local Antigravity CLI and return the model text output.' This is specific with a verb and resource. However, it does not explicitly differentiate from the sibling tool 'gemini_models', missing the chance to contrast with a likely model-listing tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides useful context about the default model, store=true for conversation continuation, and return values. However, it offers no explicit guidance on when to use this tool versus alternatives (e.g., gemini_models) or any when-not scenarios. The usage is implied but not explicitly framed as a choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

gemini_modelsA

List the models available to the local Antigravity CLI. Returns filtered model ids and display names.

ParametersJSON Schema
NameRequiredDescriptionDefault
filterNoOptional case-insensitive substring to filter model ids, e.g. 'flash' or 'gemini-3'.

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description discloses that the tool is local to the Antigravity CLI and returns filtered model ids and display names. However, it does not explicitly mention side effects, permissions, or failure modes, though for a simple list operation these may be less critical.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that immediately states the purpose and separates the return value. It is concise, front-loaded, and contains no filler, earning the highest score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool with one optional parameter and no output schema, the description provides sufficient context: it states the local scope, the list action, and the return fields. It is complete for the tool's simplicity, though it could benefit from explicit sibling differentiation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already provides full coverage (100%) of the 'filter' parameter, describing it as a case-insensitive substring. The description adds minimal extra meaning by mentioning 'filtered' output, but it does not explain parameter syntax or behavior beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists models available to the local Antigravity CLI, using a specific action ('List') and resource ('models'). It also mentions the return format (filtered model ids and display names), which distinguishes it from the sibling 'gemini' tool that likely performs a different action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is used to discover available models, but it does not explicitly state when to use it versus the sibling 'gemini' tool. No alternative or when-not-to-use guidance is provided, leaving room for confusion in tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updatesv0.1.0
    • First observedgemini
    • First observedgemini_models

TDQS

A3.9/5.0
Disambiguation5/5

The two tools have clearly distinct purposes: 'gemini' sends prompts and returns text completions, while 'gemini_models' lists available models. There is no ambiguity or overlap between them.

Naming Consistency4/5

Both names share the 'gemini' prefix, but one is a bare noun and the other uses an underscore suffix. This is readable and predictable, though it doesn't follow a strict verb_noun pattern.

Tool Count3/5

With only two tools, the server feels extremely thin for a general bridge. However, the scope is limited to prompt execution and model listing, so the count is borderline acceptable.

Completeness4/5

The core functions of sending prompts and listing models are covered, including support for conversation history via IDs. Minor gaps exist, such as streaming or explicit model selection parameters in the main tool, but the essential workflow is usable.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/theotherkim/codex-gemini-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server