Skip to content
VS Code

MCP Failure Lab for VS Code

io.github.cloudlabworks/mcp-failure-lab

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

client:VS Code transport:stdio runtime:oci

Install MCP Failure Lab in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "lab-scenario",
      "description": "LAB_SCENARIO",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lab-delay-ms",
      "description": "LAB_DELAY_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lab-failures",
      "description": "LAB_FAILURES",
      "password": true
    }
  ],
  "servers": {
    "mcp-failure-lab": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/cloudlabworks/mcp-failure-lab:0.1.2"
      ],
      "env": {
        "LAB_SCENARIO": "${input:lab-scenario}",
        "LAB_DELAY_MS": "${input:lab-delay-ms}",
        "LAB_FAILURES": "${input:lab-failures}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

MCP Failure Lab in other clients