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.3 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. Validated on Proxmox VE 9.3.1 in dedicated Debian 13 test CT 141: the OrcaSlicer MCP service is active, /health returns HTTP 200, all three MCP tools work, and Nextcloud STL listing and geometry inspection pass. slice_stl generated a G-code 3MF, verified its G-code entry, uploaded it to Nextcloud, and the temporary output was removed after verification. The source STL was left untouched and no print was submitted. ARM64 remains untested. Validation was performed in the contributor's Proxmox environment with AI assistance (ChatGPT / GPT-6), following the current DevScripts agent instructions.

🔗 Related PR / Issue

Link: #2700

✅ Prerequisites

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Proxmox deployment, MCP inspection/slicing, and the Nextcloud G-code upload path were exercised end to end; ARM64 remains untested.
  • 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 tarballs are published — the v2.5.2 release publishes Linux AppImages for x86_64/aarch64 plus portable ZIP and Flatpak assets: https://github.com/OrcaSlicer/OrcaSlicer/releases/tag/v2.5.3
  • 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. AI assistance was used to draft and review the CT script, installer and metadata, validate Bash/JSON/Python syntax, and execute the Proxmox/MCP/Nextcloud tests. The slice_stl test generated a G-code 3MF, verified the archive contained G-code, uploaded it to Nextcloud, and removed the temporary output. No printer submission was performed. ARM64 remains untested.

Additional Proxmox Validation (2026-11-29)

  • Host: Proxmox VE 9.3.1.
  • Test CT: 141, Debian 13; OrcaSlicer 2.5.3.
  • bash -n passed for the PR-head CT and installer scripts.
  • orcaslicer-mcp is active and /health returns HTTP 200.
  • MCP initialization and discovery passed; all three tools (list_stl_files, inspect_stl, slice_stl) are available.
  • Nextcloud input listing returned 8 STL files. Geometry inspection passed on a small existing STL.
  • slice_stl passed with draft quality, light strength, supports disabled, and orientation kept. The exported 3MF was 460,866 bytes and contained a G-code entry.
  • Nextcloud output upload passed; the temporary G-code 3MF was deleted successfully after verification. The original STL was not modified and no print was submitted.
  • Proxmox firewall is enabled with inbound default DROP; TCP 8765 is allowed only from the configured MCP client host.
  • ARM64 remains untested.

The deployed test copy differs from the current PR head only by explicit core metadata exports already populated by variables() and an additional cd failure guard in the Orca update function. The PR-head files were syntax-checked separately.

@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

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ Requirements check passed. Thanks for fixing the description — the requirements missing label has been removed.

@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
@github-actions github-actions Bot removed stale requirements missing PR description misses template items; closes after 7 days unless fixed or keep-open labels Nov 26, 2026
@Estcool9

Copy link
Copy Markdown
Author

Additional Proxmox validation has been added to the description. The end-to-end MCP slice and Nextcloud upload test passed; the temporary output was removed and no print was submitted. ARM64 remains untested.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant