Skip to content
VS Code

irsmith for VS Code

io.github.ambujone/irsmith

Debug LLVM, MLIR and CIRCT crashes: run, reduce, bisect and diff passes with your local builds

client:VS Code transport:stdio runtime:pypi

Install irsmith in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "irsmith-llvm-build",
      "description": "IRSMITH_LLVM_BUILD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "irsmith-circt-build",
      "description": "IRSMITH_CIRCT_BUILD",
      "password": true
    }
  ],
  "servers": {
    "irsmith": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "irsmith"
      ],
      "env": {
        "IRSMITH_LLVM_BUILD": "${input:irsmith-llvm-build}",
        "IRSMITH_CIRCT_BUILD": "${input:irsmith-circt-build}"
      }
    }
  }
}

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

irsmith in other clients