MCP Failure Lab

v0.1.2
io.github.cloudlabworks/mcp-failure-lab Checked 19 hours ago Published 1 month ago

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

Values you need

VariableWhat it is
LAB_SCENARIOoptional Fault to inject: healthy, tool-error, transient-error, delay, malformed, or disconnect Default: healthy
LAB_DELAY_MSoptional Delay in milliseconds for the delay scenario (0 to 10000) Default: 1000
LAB_FAILURESoptional Failing calls before success for the transient-error scenario (0 to 10) Default: 2

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add mcp-failure-lab -- docker run -i --rm ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-failure-lab": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2"
      ],
      "command": "docker"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-failure-lab": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2"
      ],
      "command": "docker"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-failure-lab": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2"
      ],
      "command": "docker",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-failure-lab]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: lab_probe.
  4. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json