MCP Failure Lab
v0.1.2Deliberately faulty MCP server for testing how agent clients handle tool errors and disconnects.
Values you need
| Variable | What it is | |
|---|---|---|
LAB_SCENARIO | optional | Fault to inject: healthy, tool-error, transient-error, delay, malformed, or disconnect Default: healthy |
LAB_DELAY_MS | optional | Delay in milliseconds for the delay scenario (0 to 10000) Default: 1000 |
LAB_FAILURES | optional | 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.2Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: lab_probe.
- If it fails, check that the required runtime is installed (Docker) and that the values above are set.
Machine-readable: install.md · manifest.json