Skip to content
VS Code

Gaffer for VS Code

sh.gaffer/mcp

Test analytics for AI agents: test history, flaky tests, failure clusters, coverage.

client:VS Code transport:stdio runtime:npm

Install Gaffer in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gaffer-api-key",
      "description": "GAFFER_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gaffer-api-url",
      "description": "GAFFER_API_URL",
      "password": true
    }
  ],
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@gaffer-sh/mcp"
      ],
      "env": {
        "GAFFER_API_KEY": "${input:gaffer-api-key}",
        "GAFFER_API_URL": "${input:gaffer-api-url}"
      }
    }
  }
}

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

Gaffer in other clients