Skip to content
VS Code

cadloop Slicer for VS Code

io.github.richardofortune/cadloop-slicer

Find printer profiles, check bed fit, slice to .gcode.3mf and extract the G-code.

client:VS Code transport:stdio runtime:pypi

Install cadloop Slicer in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "slicer-workspace",
      "description": "SLICER_WORKSPACE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "slicer-bin",
      "description": "SLICER_BIN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "slicer-profile-dirs",
      "description": "SLICER_PROFILE_DIRS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "slicer-timeout",
      "description": "SLICER_TIMEOUT",
      "password": true
    }
  ],
  "servers": {
    "cadloop-slicer": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "cadloop"
      ],
      "env": {
        "SLICER_WORKSPACE": "${input:slicer-workspace}",
        "SLICER_BIN": "${input:slicer-bin}",
        "SLICER_PROFILE_DIRS": "${input:slicer-profile-dirs}",
        "SLICER_TIMEOUT": "${input:slicer-timeout}"
      }
    }
  }
}

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

cadloop Slicer in other clients