Skip to content

Add OrcaSlicer headless MCP LXC helper - #2701

Draft
Estcool9 wants to merge 18 commits into
community-scripts:mainfrom
Estcool9:feat/orcaslicer-headless-mcp
Draft

Estcool9 wants to merge 18 commits into
community-scripts:mainfrom
Estcool9:feat/orcaslicer-headless-mcp

Conversation

@Estcool9

@Estcool9 Estcool9 commented Nov 22, 2026 •

Copy link
Copy Markdown

✍️ Description

Adds a bare-metal Debian 13 LXC helper for OrcaSlicer 2.5.2 and a small Streamable HTTP MCP bridge for on-demand Bambu Lab X1 Carbon STL inspection and G-code 3MF export. The installer selects the official AppImage release for amd64 or arm64 and uses the official Bambu printer/process/PETG profiles; it does not install Docker, watch folders, or control the printer. I tested the CLI slicing path on Proxmox VE 9.2.32 with a synthetic STL (valid .gcode.3mf containing Metadata/plate_1.gcode) and verified the MCP endpoint advertises all three tools; ARM64 and Nextcloud WebDAV end-to-end remain untested. Written with GPT-6, high reasoning, following the current DevScripts agent instructions; the generated scripts were reviewed and corrected against those rules.

🔗 Related PR / Issue

Link: #2700

✅ Prerequisites

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – The clean Helper Scripts install and Nextcloud upload path still need an end-to-end test.
  • No breaking changes – Only new files are added.
  • No security risks – MCP HTTP itself has no authentication; access must remain restricted to trusted clients using the Proxmox firewall.

🧩 Script

Name: OrcaSlicer MCP

Tool: A headless OrcaSlicer MCP service for on-demand STL geometry inspection, orientation, support selection, and export of Bambu-ready G-code 3MF files to Nextcloud.

🗂️ Category (X in brackets)

  • CT – LXC container (ct/ + install/)
  • VM – Virtual machine (vm/)
  • Addon – tools/addon/
  • PVE Tool – tools/pve/
  • Other – path given in the Description

🖥️ Platform – tested on (X in brackets)

  • Proxmox VE – Created on a Proxmox VE host and the app works.
  • Incus – Created on an Incus host and the app works.

🏗️ Architecture (X in brackets)

  • arm64 supported - Tested and supported on arm64.
  • arm64 not tested - Upstream publishes an aarch64 AppImage and the script selects it, but ARM64 installation has not been tested.
  • arm64 not supported - Confirmed upstream dependencies or binaries do not support arm64.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 🆕 New script
  • 🌍 Website update
  • 🔧 Refactoring / Code Cleanup
  • 📝 Documentation update

🔍 Code & Security Review (X in brackets)

  • Follows CODE-AUDIT.md & CONTRIBUTING.md guidelines
  • Uses correct script structure (AppName.sh, AppName-install.sh, AppName.json)
  • No hardcoded credentials
  • No Docker / Docker Compose – the application is installed bare-metal.
  • No git pull – updates use the core GitHub release helpers.

📋 Additional Information

The service exposes three MCP tools: list_stl_files, inspect_stl, and slice_stl. The default material profile is Bambu PETG Basic; users must verify their actual PETG brand and plate before printing. The HTTP MCP endpoint has no authentication and must be firewalled to trusted clients.

📦 Application Requirements (for new scripts)

  • The application is at least 6 months old
  • The application is actively maintained
  • The application has 1,000+ GitHub stars
  • Official release binaries are published
  • I understand that not all scripts will be accepted due to various reasons and criteria by the community-scripts ORG

🌐 Source

https://github.com/OrcaSlicer/OrcaSlicer

🤖 AI Assistance (X in brackets)

  • No AI used
  • AI was used – I confirm the scripts were built using AGENTS.md and .github/agents/pve-script-creator.agent.md as guidance, and the output has been reviewed and corrected to match those guidelines.

GPT-6, high reasoning. The model drafted and reviewed the CT script, installer and metadata, then checked Bash/JSON/Python syntax and tested the deployed OrcaSlicer CLI and MCP endpoint. ARM64 and the actual Nextcloud WebDAV path remain untested.

@github-actions

Copy link
Copy Markdown
Contributor

Try this branch

The engine and the scripts resolve independently, so this runs the changed
ct/ and install/ scripts against the production engine:

export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/Estcool9/DevScripts-voicestudio/feat/orcaslicer-headless-mcp
bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/orcaslicer.sh")"

Both lines are needed. Without COMMUNITY_SCRIPTS_URL the engine falls back to
main, so curling the branch URL on its own gives you the ct/ script from
this PR and the install/ script from main. Frequently the one you meant to test.

The same command works on an Incus host: the engine detects the platform and
loads the matching backend, while the scripts still come from this branch.

Useful while testing

dev_mode=net logs every fetch with status and URL, which is the quickest way
to confirm the branch is really being used. dev_mode=keep stops a failed
build from deleting the container along with the evidence.

export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/Estcool9/DevScripts-voicestudio/feat/orcaslicer-headless-mcp
dev_mode=net,keep bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/orcaslicer.sh")"
Against a core branch as well

Add COMMUNITY_SCRIPTS_CORE_URL=https://raw.githubusercontent.com/OWNER/core/BRANCH
to test an engine change at the same time. The two resolve independently.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Not ready for review yet

@Estcool9, this pull request is missing the following:

  • Official release tarballs are published

Edit the PR description to fix it — no new PR needed. This check runs again on every edit and clears itself once everything is in place.

Until then the PR is marked stale and will be closed in 7 days.


@community-scripts/contributor please take a look: close it, comment, or set keep-open to keep it.

@github-actions github-actions Bot added requirements missing PR description misses template items; closes after 7 days unless fixed or keep-open stale new script labels Nov 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new script requirements missing PR description misses template items; closes after 7 days unless fixed or keep-open stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant