Skip to main content

Runlayer for Gemini CLI

Connect Gemini CLI to local and remote MCP servers with hooks, enforcement, and Sessions support.

01

Connect

Give everyone in Gemini CLI the golden path to approved tools

Add one Runlayer Plugin endpoint so people find every tool they’re approved for, or connect a single server when you want a narrower set.

Runlayer Plugin

Unified endpoint

Add one remote MCP endpoint. Users discover and authorize the approved tools available to them without accumulating separate client configurations.

Direct connection

Per-connector endpoint

Give the client a dedicated Runlayer URL for one connector. Identity, policy, scanning, and audit still stay attached to every request.

Connection support

Remote MCP and local MCP

Read the Gemini CLI setup guide
02

Observe

See how Gemini CLI is being used

Runlayer uses every channel Gemini CLI exposes. Each one is labeled, so you can tell real-time hooks from after-the-fact imports.

Supported

Client hooks

Capture supported prompts, reasoning, local and MCP tool calls, responses, and scanner decisions in real time.

Read the guide
03

Enforce

Know exactly what Gemini CLI can block

Each row reflects Runlayer’s enforcement code for Gemini CLI: what it can stop before a call runs, block afterward, or redact in place.

ControlSupportWhat that means
Pre-tool denySupportedRunlayer can deny a tool call before Gemini CLI runs it.
Post-tool output blockSupportedRunlayer can block a tool’s output before Gemini CLI’s model sees it.
Output rewriteUnsupportedGemini CLI can only add text to a tool result, not replace it, so Runlayer blocks output it would otherwise mask.
Enforcement postureManaged device
Minimum supported version0.26.0

Client-specific caveats

  • When Runlayer blocks a call or its output, Gemini CLI shows the model the block reason instead.
  • Runlayer can rewrite a tool’s inputs before Gemini CLI runs it.
  • Hooks need Gemini CLI 0.26.0 or newer; older versions ignore them.
  • Failed tool calls are checked the same way as successful ones.

MCP servers

Connect Gemini CLI to the tools your teams use

Setup steps, tools, and controls for each MCP server in Gemini CLI.