freecad-addon-robust-mcp-server: Instructions file for Codex

AGENTS.md

freecad-addon-robust-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from spkane/freecad-addon-robust-mcp-server. It costs 20,511 tokens per session, scanned C, original, Apache-2.0.

Project instructions for a Python server that connects FreeCAD to AI tools through the Model Context Protocol (MCP), a standard way for software to expose tools to an AI assistant. They document supported connection modes and the required Python version.

In plain words
What is it for?
Use them when developing, configuring, or troubleshooting the FreeCAD integration server and its Python environment.
Why use it?
They prevent crashes caused by using a Python version different from the one built into FreeCAD. They also give agents the project's required setup and safety rules.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is spkane/freecad-addon-robust-mcp-server's own configuration. It tells Codex and OpenCode how to work on freecad-addon-robust-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything freecad-addon-robust-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to spkane/freecad-addon-robust-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/spkane/freecad-addon-robust-mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/spkane/freecad-addon-robust-mcp-server

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for freecad-addon-robust-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/spkane/freecad-addon-robust-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/spkane/freecad-addon-robust-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/spkane/freecad-addon-robust-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/spkane/freecad-addon-robust-mcp-server/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for freecad-addon-robust-mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/spkane/freecad-addon-robust-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/spkane/freecad-addon-robust-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20,511 This file is loaded in full into every session.
When invoked 20,511 The same file — it is already loaded in full.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.20511 $0.20511
Opus 5.5 $0.08204 $0.08204
Sonnet 5.5 $0.04102 $0.04102
Haiku 4.5 $0.02051 $0.02051

Measured 10d ago against content hash 43f8b7304a4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

freecad-addon-robust-mcp-server AGENTS.md scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl https://mise.run | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl https://mise.run | sh
AGENTS.md · 2,153 lines

How it starts

The opening of the file, as written. The whole thing — 2,153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md - AI Assistant Guidelines for This Project

Project Overview

This is a Python project that provides an MCP (Model Context Protocol) server for FreeCAD integration. It follows strict code quality, security, and documentation standards.

Critical: Python Version Must Match FreeCAD

CRITICAL: This project MUST use the same Python version that the current stable FreeCAD release bundles internally. FreeCAD embeds a specific Python version (e.g., libpython3.11.dylib), and using a different Python version causes fatal crashes (SIGSEGV) due to ABI incompatibility.

Before changing the Python version in .mise.toml or pyproject.toml:

  1. Check which Python version FreeCAD bundles:
    • macOS: ls /Applications/FreeCAD.app/Contents/Resources/lib/libpython*
    • Linux: ls /usr/lib/freecad/lib/libpython* or check FreeCAD's Python console
  2. The Python minor version (e.g., 3.11) must match exactly
  3. Using Python 3.12+ with FreeCAD that bundles Python 3.11 will crash on import FreeCAD

Current requirement: Python 3.11 (matching FreeCAD 1.0.x bundled Python)

FreeCAD Connection Modes

This MCP server supports three connection modes. Embedded mode does NOT work on macOS due to how FreeCAD's libraries are linked.

Mode Description Platform Support Testing Level
xmlrpc Connects to FreeCAD via XML-RPC (port 9875) All platforms (recommended) Full integration
socket Connects via JSON-RPC socket (port 9876) All platforms Full integration
embedded Imports FreeCAD directly into process Linux only (crashes on macOS) Unit tests only

Embedded mode testing: Embedded mode is tested via mocked unit tests in CI. It does not have integration tests with actual FreeCAD because that would require running FreeCAD in-process on Linux CI runners. For production use, prefer xmlrpc or socket modes which have full integration test coverage.

Read the full file on GitHub · 2,153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +12 lines · +176 tokens per session 43f8b7304a4f
  2. 2mo ago First seen · 2,141 lines · 20,335 tokens per session scan C 4613a55425e6

Subscribe to this mod's changes

freecad-addon-robust-mcp-server AGENTS.md is an instructions file published in the GitHub repository spkane/freecad-addon-robust-mcp-server (265 stars, last pushed yesterday), licensed Apache-2.0. It adds 20,511 tokens to every session, about $0.0820 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.

Related

freecad-addon-robust-mcp-server AGENTS.md compared with instructions from other repositories

freecad-addon-robust-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
freecad-addon-robust-mcp-server AGENTS.mdspkane/freecad-addon-robust-mcp-serverInstructions file265yesterdayApache-2.0C20,511Codex, OpenCode
graftcode graftcode-python.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA4,639GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot