agentleFS
sandraschisandraschi/freecad-mcp/AGENTS.md

freecad-mcp

AGENTS.md32 starsChanged 3 months agoMITView on GitHub

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Annotation Constants: Every @mcp.tool() explicitly includes annotations=READ_ONLY or annotations=MUTATING.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

freecad-mcp — Agent Guide

Overview

FreeCAD MCP server — Parametric 3D CAD modeling, 2D TechDraw drafting, 2D constraint sketching, multi-part STEP assemblies, generative topology optimization, CFD (OpenFOAM CPU + FluidX3D GPU), and CalculiX FEM structural stress analysis via 50+ MCP tools and REST API.

Core Capabilities for Fleet Agents

CapabilityCore MCP ToolsOutput FormatsFleet Handoff Targets
Parametric CAD & Extrusionfreecad_model (sketch), create_shapeSTEP, STL, FCStdqcad-mcp, prusa-slicer-mcp
2D Engineering Blueprintsfreecad_model (techdraw)SVG, PDFmcp-central-docs
Multi-Part STEP Assembliesfreecad_model (assembly, inspect_assembly)STEP, STL, Tree JSONrobotics-mcp (URDF)
Generative Weight Reductionfreecad_model (generative)STEP, Volume JSONrobotics-mcp, prusa-slicer-mcp
Heuristic Edge Filletingfreecad_model (heuristic_fillet)STEPManufacturing pipelines
Architectural BIM / IFCbim_create_wall, bim_export_ifcIFC, FCStdArchitecture workflows
OpenFOAM CFD (CPU)cfd_create_domain, cfd_snappy_mesh, cfd_configure_physics, cfd_post_processOpenFOAM case, Cd/Cl JSONopenfoam-mcp
Fluid-Structure Interaction (FSI)cfd_map_loads_to_femCalculiX INP, Stress MPafreecad-mcp (FEM)
FluidX3D GPU LBM CFDcfd_fluidx3d_setup, cfd_fluidx3d_export_for_renderVTK, OBJ Streamlines, WebMgodot-mcp, resonite-mcp (VR)
CalculiX Structural FEMfem_create_analysis, run_fem_analysisVon Mises Stress MPa, INPEngineering validation

Standards & Patterns

  • FastMCP 3.4+ Portmanteau Pattern: Portmanteau tool freecad_model maps execution_mode ("hands_off" or "hands_in") to underlying operational modules in src/freecad_mcp/model_ops.py.
  • Annotation Constants: Every @mcp.tool() explicitly includes annotations=READ_ONLY or annotations=MUTATING.
  • Dual Execution Architecture: Prefers live FreeCAD TCP bridge (port 11968) for full B-Rep tree access; automatically falls back to headless FreeCADCmd subprocess if GUI is not connected.
  • REST Control Endpoint: POST http://localhost:10944/api/v1/control/tool with payload {"tool": "...", "arguments": {...}}.

Key Files & Structure

  • src/freecad_mcp/server.py — MCP server entrypoint and REST dispatch table.
  • src/freecad_mcp/model_ops.py — Script generator backend for CAD extensions (TechDraw, Sketcher, Assemblies, Generative, Filleting, Introspection).
  • src/freecad_mcp/tools/model_tools.py — Portmanteau MCP tool definition (freecad_model).
  • src/freecad_mcp/tools/cfd.py — OpenFOAM CFD tools (blockMesh, snappyHexMesh, physics, post-proc, FSI).
  • src/freecad_mcp/tools/fluidx3d.py — GPU LBM CFD tools and rendering export manifest.
  • src/freecad_mcp/tools/bim.py — BIM architectural design & IFC import/export.
  • src/freecad_mcp/tools/fem.py — CalculiX structural FEM analysis tools.
  • webapp/ — React 19 + Vite + Tailwind CSS dark-mode web application (port 10945).
  • docs/ — Technical guides (cfd-guide.md, mcp-tools.md, architecture.md, fleet-pipeline.md).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.