sxsphinxstack

Home / PartMode MCP

PartMode MCP · public operating guide

Operate PartMode with an AI agent

Connect your agent securely, make controlled CAD changes against a known revision, and export artifacts with evidence another person can verify.

Learn PartMode

Twelve skills from first sketch to finished artifact

Start with no CAD experience, follow one bounded procedure at a time, and keep an editable model plus evidence you can check. Read a guide yourself or give its Markdown URL to an agent.

Start here

Connect without exposing the key

  1. Open PartMode. Sign in, open the intended CAD project, and create the least-powerful suitable agent key.
  2. Store the key as a secret. Put it in OS or client secret storage exposed as PARTMODE_AGENT_KEY. Never paste it into a chat, URL, repository, or tracked configuration file.
  3. Add the MCP server. In Codex, run the command below; other Streamable HTTP MCP clients use the same URL and bearer token.
  4. Approve one bounded session. Prefer visible approval in the intended PartMode tab. Confirm session status, project identity, permissions, expiry, and commit budget before any CAD work.
codex mcp add partmode --url https://partmode.com/mcp --bearer-token-env-var PARTMODE_AGENT_KEY

Operate with an agent

Three MCP skills cover the operating loop

Give this to the agent

One prompt to begin

Read https://sphinxstack.com/skills/connect-partmode-to-an-agent.md and follow it.
Then read the learning, edit, or export PartMode skill linked from https://sphinxstack.com/partmode/ that matches my task.
Do not ask me to paste a key. Work only in the project I approve, preview every mutation, and report exact revision-bound evidence.

My task: [describe the CAD change or artifact here]

Keep authority bounded

Choose one session model

Browser-approved project recommended

The key authenticates the agent, but it does not grant access to an open CAD project. The person selects the intended PartMode tab and visibly approves the requested permissions, duration, and commit budget.

Server-headless project

Use only when the key was explicitly created with headless access. Open a stable project ID, keep duration and commits bounded, and use the dedicated headless STEP export path when exact STEP output is required.

Finish with proof

What a completed operation reports

Screenshots, DOM rows, mesh counts, filenames, and success messages can help explain a result; they are not exact CAD completion evidence by themselves.

Troubleshooting

Common stopping points

The MCP URL does not look like an app
That URL is a protocol endpoint. Use the public MCP reference in a browser and configure the endpoint in an MCP client.
No browser Studio is available
Open the intended signed-in PartMode project, list Studios again, request a bounded connection, and approve it visibly in that tab.
The document revision is stale
Do not retry the old mutation. Inspect the new revision, classify concurrent changes, refresh invariants, and create a new preview.
An export format is unavailable
Follow live capabilities. Do not silently substitute a screenshot, mesh, or nearby file type; ask the person to choose an advertised alternative.