cadloop Slicer

v0.1.0
io.github.richardofortune/cadloop-slicer Checked 1 day ago Published 4 months ago

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

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
SLICER_WORKSPACEoptional The only directory this server reads and writes. Defaults to ~/cad.
SLICER_BINoptional Path to the slicer binary. Auto-detected if unset. Creality Print's CLI does not work headless on macOS; prefer OrcaSlicer, Bambu Studio or ElegooSlicer there.
SLICER_PROFILE_DIRSoptional Extra profile roots, os.pathsep separated. Added to the auto-detected roots rather than replacing them.
SLICER_TIMEOUToptional Seconds before a slice is killed. Defaults to 600.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add cadloop-slicer -- uvx --with 'mcp<2' --from cadloop==0.1.0 cadloop-openscad
Add to claude_desktop_config.json
{
  "mcpServers": {
    "cadloop-slicer": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "cadloop==0.1.0",
        "cadloop-openscad"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "cadloop-slicer": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "cadloop==0.1.0",
        "cadloop-openscad"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "cadloop-slicer": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "cadloop==0.1.0",
        "cadloop-openscad"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.cadloop-slicer]
command = "uvx"
args = ["--with", "mcp<2", "--from", "cadloop==0.1.0", "cadloop-openscad"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: openscad_info, list_files, read_file, write_file, check, echo, render, measure, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json