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 after the PartMode connection below is working.

Start here

Create an account, agent key, and MCP connection

Current production status: Google sign-in is not configured. Use the PartMode account-name and passphrase forms. The CAD editor remains available without an account; the account is required only to create revocable agent keys.

  1. Create or sign in to the account. Open PartMode Agent access. Create an account with an account name and a passphrase of at least 12 characters, or sign in with an existing account name and passphrase.
  2. Create the least-powerful suitable key. In the signed-in dashboard, give the key a label and choose Read only or Edit after approval. Leave Allow headless server sessions off for a project that stays in the browser. Enable it only on an edit key when unattended server execution and durable server-side project storage are deliberately required.
  3. Copy the one-time key. PartMode shows the raw key once. Store it in OS or client secret storage exposed as PARTMODE_AGENT_KEY. Never paste it into a chat, URL, shell command, repository, skill, or tracked configuration file. If it is lost, revoke it and create another.
  4. Add the MCP server. In Codex, run the command below after the secret environment variable is available to the Codex process; other Streamable HTTP MCP clients use the same URL and bearer token.
  5. Restart and verify. Start a new agent session. The client must initialize https://partmode.com/mcp, list PartMode resources and tools, and read the live MCP reference. A skill file by itself is not a connection.
  6. Authorize one CAD session. For a browser-local project, keep the intended project open in a signed-in PartMode tab and approve the visible, bounded request. For headless work, use only a key created with the explicit headless grant. Confirm project identity, permissions, expiry, commit budget, and current revision before any CAD work.
codex mcp add partmode --url https://partmode.com/mcp --bearer-token-env-var PARTMODE_AGENT_KEY

If the agent cannot list PartMode MCP tools, stop at setup. Do not let it simulate the workflow from prose or claim that a CAD operation completed.

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.