Skip to content
Gemini CLI

MCP Failure Lab for Gemini CLI

io.github.cloudlabworks/mcp-failure-lab

Deliberately faulty MCP server for testing how agent clients handle tool errors and disconnects.

client:Gemini CLI transport:stdio runtime:oci

Install MCP Failure Lab in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcp-failure-lab": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2"
      ],
      "env": {
        "LAB_SCENARIO": "<LAB_SCENARIO>",
        "LAB_DELAY_MS": "<LAB_DELAY_MS>",
        "LAB_FAILURES": "<LAB_FAILURES>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

MCP Failure Lab in other clients