Skip to content
VS Code

ScratchRun for VS Code

dev.scratchrun/mcp

Ephemeral MicroVM-isolated code execution for AI agents. Fresh VM per call, hard-purged after.

client:VS Code transport:stdio runtime:npm

Install ScratchRun in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "scratchrun-api-key",
      "description": "SCRATCHRUN_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@scratchrun/mcp-server"
      ],
      "env": {
        "SCRATCHRUN_API_KEY": "${input:scratchrun-api-key}"
      }
    }
  }
}

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

ScratchRun in other clients