Repository navigation
Releases
Releases · 1orgar/freecad-advanced-mcp
v0.4.0 — High-Speed Solid Helpers, 20 Smart Features, DfAM Upgrades & Multi-Color Explode/Section WebGL
v0.4.0 — High-Speed Solid Helpers, 20 Smart Features, DfAM Upgrades & Multi-Color Explode/Section WebGL
Latest
🚀 What's New in v0.4.0
⚡ High-Speed TNP-Safe Solid Modeling (cad_helpers.py)
cad.rounded_box: Analytic rounded box generator (zeromakeFilletcrash risk).cad.safe_fillet&cad.safe_chamfer: Edge-filtered dress-ups with automatic100% -> 75% -> 50%fallback on OpenCASCADE kernel rejection.cad.boolean_chain: Batch boolean union & subtraction with built-inremoveSplitter()coplanar seam refinement.cad.linear_pattern&cad.polar_pattern: 1D/2D linear grid and circular array generators.cad.shell_solid&cad.align_to: Thin-walled enclosure hollowing (makeThickness) and semantic bounding-box alignment (center,min,max,stack_top,stack_bottom).
🧩 20 Semantic Smart Features (apply_smart_feature)
- Added 4 new enclosure & assembly primitives:
snap_fit(cantilever hook),enclosure_lip(perimeter tongue & groove rim),dovetail_joint(sliding male/female dovetail), andmounting_ear(flanged stadium-slot ear). - Automatic operation inference (
fusefor additive features,cutfor subtractive cutouts) andnormalvector auto-orientation. - Clean
PartDesign::Bodyreplacement withShapeColor/Transparencypreservation and automatic hiding of superseded bodies.
🛠️ Hardware Cavities & DfAM Upgrades
cut_component_cavity: Carves exact mounting cutouts and screw holes forc14_socket,keystone_rj45,fan_40mm, andfan_80mminstead of outer bounding boxes; supports passing existingDummy_*object names.analyze_stability: SupportsXY,XZ, andYZbase planes and discretizes curved/cylindrical base edges (e.discretize(Number=16)).audit_wall_thickness: Added 3D BoundingBox overlap checks for opposing planar faces and coaxial cylindrical wall thickness auditing.split_part_for_bed: Generates alignment dowel pin sockets across all split axes (X,Y,Z) with configurable radial clearance.inspect_geometry&generate_drawing: Added surface type breakdown (planar,cylindrical,conical,toroidal,bspline), material mass estimates (PLA_PETG,ABS_ASA,Aluminum_6061), and automatic TechDraw SVG title block population.
🌐 Multi-Color Interactive WebGL Viewer (export_viewer_html)
- Per-Part RGB Colors (
aColor): Preserves FreeCADShapeColorper solid or applies an automatic engineering palette for multi-part assemblies (object_name="all"). - Interactive
ExplodeSlider: Smoothly explodes multi-part assemblies radially/axially in real time inside the chat widget. - Live
SectionClipping Plane: One-click cross-section cut plane with warm amber interior highlight.
v0.3.0 - WebGL 3D In-Chat Viewer & 6 New CAD/DfAM Tools
What's Changed in v0.3.0
🎮 In-Chat Interactive 3D WebGL Viewer (export_viewer_html)
- Zero-Dependency WebGL 2.0 Engine: Pure native GLSL shaders and matrix math without external 3D libraries or CDNs, fully compliant with strict Content Security Policies (CSP).
- Embedded Chat Mode (
mode="chat"): Compact cards (< 450px) specifically built for inline rendering via<agent-embed>. - Theme-Adaptive CAD Styling: Real-time detection of host dark/light theme, authentic CAD feature wireframe edge rendering, and OrbitControls (orbit, pan, zoom).
- Compound Assemblies Support: Full support for multi-part assemblies (
Part::Compound) with individual spatial translation vectors (Exploded Views).
🛠️ 6 New Advanced CAD & DfAM Tools (25 Tools Total)
apply_smart_feature: Semantic parametric primitives library (honeycomb ventilation, slotted grilles, Ruthex heat-set insert bosses, captive hex nut pockets, DIN screw countersinks/counterbores, mounting tabs, snap fits, zip-tie saddles).cut_component_cavity: Boolean clearance pocket carver for packaging electronics (Raspberry Pi 5, C14 sockets, Keystone jacks, cooling fans, Mean Well PSUs).audit_wall_thickness: DfAM thickness scanner for detecting fragile or non-manifold thin walls (< 1.2 mm) prior to 3D printing.split_part_for_bed: Automated build-bed part splitter for oversized prints with interlocking alignment dowel sockets.generate_drawing: TechDraw 2D vector engineering drawing generator (multi-view orthogonal + isometric projections to vector PDF/SVG).get_selection: Human-in-the-Loop selection inspector with TNP-safe query criteria.
📦 Claude Desktop Bundle
- Attached
freecad-advanced-mcp.mcpbextension for one-click installation into Claude Desktop.
v0.0.1 - Initial Release
FreeCAD Advanced MCP v0.0.1
Initial release of FreeCAD Advanced MCP — high-performance, in-process Model Context Protocol (MCP) server for FreeCAD v1.1+.
✨ Features
- 11 Native CAD Tools:
get_view: Multi-angle Coin3D screenshots withFlat Linesstyling and auto-framing.inspect_geometry: Deep topology & physical properties (BoundingBox, volume, surface area, center of mass, manifold/watertight checks).check_clearance: Real-time collision detection and minimum gap calculation using OpenCASCADE extrema.export_geometry: Multi-format manufacturing export (STL with customizable linear/angular deflection, STEP, 3MF, DXF).set_display_state: Batch visibility, shading mode, and transparency control.get_document_tree: Full scene graph hierarchy and object labels.manage_document: Active document query, create, open, save, close, and recompute.undo_redo: Safe transaction history control.execute_python: Qt main-thread execution with auto-rollback transactions.execute_python_file: Run local Python scripts directly.get_output_page: Paged stream reader for large logs.
🏗️ Architecture
- Operates inside the live FreeCAD GUI on the Qt main thread with zero process overhead.
- Supports streamable HTTP on
127.0.0.1:39280/mcpand stdio relay. - Attached Claude Desktop bundle:
freecad-advanced-mcp.mcpb.