AgentSlicer
Let an AI agent slice with OrcaSlicer, look at the result, and run a Bambu Lab printer over LAN (tested on a P2S), through MCP.
AgentSlicer is built on top of your OrcaSlicer install, not beside it: it uses Orca's own profiles, the printers you connected in Orca, and Orca's CLI. There is nothing to configure.
Requirements
- OrcaSlicer (macOS, Linux or Windows). No display needed: slicing runs through Orca's CLI. Found in the usual install locations, or set
AGENTSLICER_ORCAto its executable. - uv.
- For printer control: the printer connected in Orca's Device tab in LAN mode, with Developer Mode on.
Install
Claude Code (MCP server + skill):
/plugin marketplace add jasoncronje/agentslicer
/plugin install agentslicer@agentslicer
Any MCP client: run uvx agentslicer as a stdio server, e.g.
{ "mcpServers": { "agentslicer": { "command": "uvx", "args": ["agentslicer"] } } }
The workflow and safety rules for agents live in skills/agentslicer/SKILL.md (npx skills add jasoncronje/agentslicer for other agents); the server also sends a short version as MCP instructions.
Without MCP: uvx --from agentslicer agentslicer-printer status|frame|light|upload|print|stop|clear-error.
How it uses Orca
- Profiles: read from the preset caches Orca ships and updates (
<vendor>.opc), so slicing works offline and matches the app exactly. - Printers: read from Orca's config (
OrcaSlicer.conf→local_machines): name, IP, serial and access code of every LAN printer you connected. With several printers, tools takeprinter(name or serial); the default is the one selected in Orca. - Settings catalogue (
find_settings): setting labels, ranges and the tab layout exist only in Orca's source, so three source files are downloaded once per Orca version. - Everything derived is cached in
~/.cache/agentslicer/and rebuilt automatically when Orca or its profiles update.uvx --from agentslicer python -m agentslicer.slicer.syncshows the status.
Docker
docker build -t agentslicer .
docker run -i --rm --network host \
-v ~/.config/OrcaSlicer:/root/.config/OrcaSlicer:ro \
-v agentslicer-cache:/root/.cache/agentslicer \
agentslicer
Mount your OrcaSlicer config folder (above: Linux path; macOS ~/Library/Application Support/OrcaSlicer, Windows %APPDATA%\\OrcaSlicer) so the container sees the printers you connected in Orca. The image bundles Orca's Linux build (extracted AppImage, x86_64 or arm64) and runs the MCP server over stdio. The bridge only makes outbound connections to the printer (MQTT, FTPS, RTSPS); --network host is the simplest setup on Linux. Printer control from inside Docker is not tested yet.
Development
uv run agentslicer # the MCP server, from this checkout
uv run python scripts/smoke.py # printer-free end-to-end check
claude plugin validate .
CI runs the smoke test on Linux without a display, in Docker and on Windows. Releases: bump the version in pyproject.toml only, commit, and push a vX.Y.Z tag. The release workflow publishes to PyPI, waits until the version is installable (PyPI plus uv's 10-minute index cache), and only then points the Claude Code plugin at it on main. Don't edit the plugin's version by hand.
Tools
| Tool | Does |
|---|---|
list_profiles |
Orca machine / process / filament profile names |
find_settings |
All 600+ Orca settings: browse by tab/page, search by name or print problem, full detail (type, range, allowed values, default, profile value) |
slice |
Models → .gcode.3mf, with setting overrides; returns time, weight, filament use |
sliced_info |
Estimates for an existing .gcode.3mf |
analyze_print |
Layers, per-feature path/filament, bridge / overhang / support layers, seams |
preview |
Toolpath image: iso / top / front / one layer (seams marked); highlight features |
plan_ams_mapping |
Which AMS slot each filament prints from (Orca's own matching), with warnings |
printer_status |
State, current step, temps, AMS trays, error code + text |
camera_frame |
One chamber camera image |
chamber_light |
Light on/off |
start_print |
Upload + start with automatic AMS mapping; refuses unless user_confirmed=true |
stop_print / clear_error |
Cancel a print / dismiss its error |
start_monitoring / monitor_events / stop_monitoring |
Background watcher: state/step/layer/error events, camera frames every N layers, on pause, fail and finish |
check_progress |
Camera frame next to a render of what should be printed by the current layer |
Notes (verified on P2S, Orca 2.5.3)
- The Orca CLI resolves profile
inheritsitself when given system profile files from a vendor tree with its manifest (profiles/BBL.jsonin the cache). It leavesprinter_model_idblank, soslicepatches it (P2S = N7). - The printer moves uploaded files to
/cacheafter a print;start_printuploads every time. - Print options
auto_bed_leveling,extrude_cali_flag,nozzle_offset_calitake 0/1/2 = off/on/auto (OrcaPrintOption::getValueInt). Wire format reference:agentslicer/bridge/fixtures/orca-project_file-p2s.json. - Nothing Orca-version-specific lives in the repo.
agentslicer/slicer/opc.pyreads Orca's preset caches (PresetCacheFormat.cpp's format) and unpacks them into the JSON tree the CLI resolvesinheritsagainst; it is rebuilt whenever Orca's caches change.agentslicer/slicer/catalog.pyparses the installed version'sPrintConfig.cpp,Tab.cpp(andPublishSettings.cppwhere present), downloaded over HTTPS. A release without a source tag (nightly) only losesfind_settings. If a newer Orca yields 10% fewer settings than the last version,find_settingswarns that the parser may need updating. - Setting overrides go to the CLI as
--key=value; a bare--enable-support 1makes Orca read1as an input file. - Previews are drawn from the G-code's own
; FEATURE:/; CHANGE_LAYERannotations (agentslicer/render/), no GPU needed. - Verified end to end on the P2S (2026-11-29): Orca slice → monitor → start_print → step, layer, frame and finish events → check_progress mid-print.
check_progressrenders through a calibrated model of the P2S chamber camera (agentslicer/render/cameras/p2s.json): Kannala-Brandt fisheye, ~117° horizontal FOV, 0.37 px rms over 5 bed heights. Recalibrate: print test/camera_calib_plate.stl, runuv run python -m agentslicer.render.capture_calib DIR(moves the bed), thenuv run --extra calib python -m agentslicer.render.calibrate DIR.- AMS mapping is a port of Orca's
DevMappingUtil::ams_filament_mapping: material type must match, then the closest colour by Orca's colour distance (which feeds 0-255 values into a 0-1 formula; kept so picks match Orca's Print dialog), ties to the same filament id. Passfilament_colorstosliceso the file's colours match the loaded spools; Orca's default is orange. - Step names come from Orca's
get_stage_string; error texts from Bambu's HMS tables, fetched the way Orca'sHMSQuerydoes (only the 3-character model prefix of the serial is sent).
License
AGPL-3.0, as OrcaSlicer: parts of AgentSlicer are ports of Orca code (preset cache format, AMS mapping, settings definitions).
Metadata
Release files for agentslicer 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentslicer-0.1.3.tar.gz | 66.4 kB | With provenance | Details for agentslicer-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentslicer-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for agentslicer-0.1.3-py3-none-any.whl |
Total release size: 141.3 kB
Release files / agentslicer-0.1.3.tar.gz
| Download URL | agentslicer-0.1.3.tar.gz |
|---|---|
| Size | 66.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
526d035ff2acd067609ef02a6fb28ba05503abb25a70f84b548b40fe8c58c700
|
|
BLAKE2b-256 checksum How to use checksums |
a5f6e9b47867611e018c60e80650779aeaa1405ee30fb39e2b21ae6c8ef129bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / agentslicer-0.1.3-py3-none-any.whl
| Download URL | agentslicer-0.1.3-py3-none-any.whl |
|---|---|
| Size | 74.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c2ed4e93163d2b9a6985cf3f861b6fc1b6e8442aa094445758770640cb55bc9
|
|
BLAKE2b-256 checksum How to use checksums |
5eb30701683e65f829ebb52e7cc4e230f37ec85b725279ceed9e68de9722004c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for agentslicer 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agentslicer-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.