Learn/App & Interface/Automation & agents
Connect an Agent (Experimental)
Updated v2.6.1At a glance
- Use an external MCP client, or open the built-in Agent Tower for project conversations
- Work across Design, Drafting, eCAD, Mill, sheet CAM, Laser, Router, and Motion preparation
- Connect Codex, Claude Code, or another local MCP client with a copy-ready configuration
- A private pairing token and loopback-only listener keep the connection on your computer
- Agents can bind an open project, inspect it, model parts, source catalog items, and prepare manufacturing work
- Assembly intent survives reopening; exports, catalog results, and review screenshots report the current project state
- Start a fresh agent session after first connecting; agents reconnect on their own after JetCad3 restarts
JetCad3 includes its experimental official Agentic MCP server in the normal application install. There is no separate server or plug-in to download. An MCP-compatible agent running on the same computer can connect to JetCad3, bind one of its open project tabs, and work through controlled operations across the project's current CAD, CAM, eCAD, and preparation/diagnostic workspaces.
The connection is opt-in. JetCad3 listens only on your computer and requires a private pairing token generated by the app.
Experimental: The automation interface now covers JetCad3's current engineering workspaces. Physical machine execution stays with the operator.
For the integrated experience, use Agent Tower. Its installation, sign-in, and permissions are under Settings → Agents; external-client pairing is not required. Both interfaces can work with the Project Archive for saved notes, files, and project evidence.
Before you connect
You need:
- JetCad3 installed and running;
- Codex, Claude Code, or another MCP-compatible client installed on the same computer; and
- the JetCad3 project you want to use open in its own tab.
Keeping a project open does not give an agent access by itself—the client must connect and explicitly bind that tab. The actions the agent can use still depend on your JetCad3 license and the native features available in the selected workspace.
Start Agentic MCP in JetCad3
- Open Settings → Agentic MCP.
- Check Enable Agentic MCP.
- Leave the loopback port at 47330 unless another local program already uses it.
- Save Settings.
- Reopen Settings → Agentic MCP and confirm the listener says Running.
The default local endpoint is:
http://127.0.0.1:47330/mcpKeep JetCad3 running while the agent is connected.
Connect Codex
- In Settings → Agentic MCP, click Copy Codex config.
- Add the copied block to your Codex configuration file:
- macOS and Linux:
~/.codex/config.toml - Windows:
%USERPROFILE%\.codex\config.toml
- macOS and Linux:
- Close the current Codex session and start a fresh one.
The copied block already contains the correct local URL and pairing token. It has this shape:
[mcp_servers.jetcad3]
url = "http://127.0.0.1:47330/mcp"
http_headers = { Authorization = "Bearer <pairing-token>" }Use the text copied from JetCad3; do not type the token shown above.
Connect Claude Code
- In Settings → Agentic MCP, click Copy Claude command.
- Paste and run that command in the terminal where you use Claude Code.
- Close the current Claude Code session and start a fresh one.
JetCad3 generates a command with the local endpoint and pairing token already included. The
connection is registered under the name jetcad3.
Connect another MCP client
Click Copy JSON and paste the result into your client's MCP server settings. The configuration uses
Streamable HTTP, the local /mcp endpoint, and an Authorization header containing the pairing
token.
If the client asks for the transport separately, choose HTTP or Streamable HTTP. The connection will not work from a different computer because JetCad3 deliberately accepts loopback connections only.
Start working on a project
Open the desired project in JetCad3 before starting the agent session. You can then ask the agent plainly:
Use the JetCad3 MCP to inspect the open project and help me model this part.
A correctly connected agent can discover JetCad3, list the open tabs, bind the project you choose, read its Project Memory and geometry, and then ask for any design decisions it still needs. Compact task search points it to the exact native recipe and operation details instead of returning a full manual. Body IDs come from the project geometry query, repeated parts can be created and placed in one recoverable native edit, and ordinary static or joint-motion clearance uses the same project geometry and saved studies as the manual Drafting tools.
The agent should inspect compatible existing feature history before replacing it, carry each returned revision, and use checkpoints, evaluation/render waits, measurements, exports, and current screenshots while it works. If a mutation response is lost, it replays the exact original request with the same key instead of guessing a revision or creating a duplicate edit. If JetCad3 does not advertise a required native capability, the agent should report that specific gap instead of rebuilding a separate copy of the model outside the project.
Only one project tab is bound by a particular document handle. Opening or closing other tabs does not silently redirect the agent to a different design.
Supported workspace work
Both Agent Tower and an external MCP client use the same supported project actions.
- Design: inspect and edit shapes, nodes, layers, groups, text, images and traces; arrange geometry; import, export, print, and Send To.
- Drafting: create and edit sketches, features, sheet metal, assemblies, JShapes and supported file operations.
- eCAD: work through schematic, PCB, sourcing decisions, checks, review and fabrication preparation.
- Mill: create setups and operations, generate and inspect paths, simulate, review and prepare exact output.
- Plasma and Oxyfuel: manage sheets, exact stock, imports, quantities, placement, nesting, contours, process settings, generation, simulation, quotes and reviewed output.
- Laser: manage Cartesian Laser operations and prepare GRBL or Ruida output. Fiber Galvo supports offline lens/calibration inspection and job preparation.
- Router: use all seven current operation types, their native strategy settings, generation, simulation, quotes and output preparation.
- GcodePilot: inspect passive machine status and saved history, inspect a Project Archive program offline, author PointTrace drawings, and hand completed PointTrace or CamTrace geometry to CAD/CAM.
- Turn: reports unavailable until native turning CAM is implemented.
Machine control stays with the operator. Agents cannot connect or disconnect hardware, jog, home, probe, send MDI, change live offsets or configuration, enable outputs, load or queue a controller program, start or resume a run, Light or Mark a Galvo, install drivers, or flash firmware.
Drafting to Mill and portable generators
An agent can discover all eight supported Mill operation types, create setups and editable operations, generate paths, and inspect simulation results. Completing generation keeps its result current; later changes to geometry or machining settings still require regeneration and renewed review where applicable.
JShape discovery includes both the installed library and generators stored in the project. Ask the agent to inspect the bundled generator before looking elsewhere for an existing shape. Forking a library generator into a project preserves its source and required helper so that the saved project can reopen with that definition. A generated part still needs the dimensional and machining review appropriate to your job.
Mill references to sketch chains and holes on the standard XY, YZ, and XZ planes survive saving and reopening. Use Project Memory and the Project Archive to retain design decisions, setup intent, and remaining checks for the next session, and review the current toolpaths and simulation before preparing output.
Reliable workspace workflows
Saved projects retain assembly grounding, linked components, joints, dimensions, 3D sketches, active-component selection, materials, and visibility. Exact STEP, IGES, and BREP component exports use the current evaluated geometry without requiring a dummy edit; stale, incomplete, or not-yet-positioned geometry returns an error instead of an older cached shape. Rigid component moves publish directly to the viewport, picking, measurements, and exports without toggling a feature or forcing an unnecessary solid rebuild. Curved-part measurements use the actual trimmed-solid bounds, not the larger box of an underlying untrimmed surface.
Catalog sourcing distinguishes an empty result from a login or browser challenge. When public McMaster-Carr data is available, agents can verify catalog identity, source dimensions and units, and matching CAD downloads. Incomplete family results still require a selection; a partial list is not treated as an automatic exact match.
Review screenshots wait for a rendered frame and the requested project, revision, workspace, camera, and visibility state. Changing views are reported as stale rather than returned as if current. Operation discovery and recovery guidance use the same supported Drafting tools, bounded edit batches, and refreshed geometry references throughout the workflow.
eCAD automation uses the same import identities, routing geometry, manufacturing rules, DRC and fabrication preflight as the workspace. Long operations are cancellable, and an exact retry after a lost response returns the original committed result instead of duplicating board changes. View and screenshot requests settle on the requested current board before returning.
Design and the sheet-CAM workspaces use their normal ownership, source, stock, nesting, operation, generation, simulation and save behavior. Exact source and library fingerprints prevent an older result from being presented as current. Locked CAM parts remain unchanged until explicitly unlocked. Output is prepared as an inspectable Project Archive artifact and can require current human review.
GcodePilot access is limited to passive diagnostics and preparation. PointTrace capture reads a fresh, idle position without issuing motion. CamTrace results must already exist before an agent can inspect or hand them to another workspace.
On macOS, JetCad3 now shuts down cleanly after automated, development, and packaged workflows that opened tabs or auxiliary views.
The same revision, cancellation, screenshot, save/reopen, and recovery rules apply across the supported workspaces.
Pairing-token safety
The pairing token authorizes local control of JetCad3. Treat copied client configuration like a password:
- do not post it in screenshots, forum messages, or shared project files;
- do not commit it to a repository;
- use Rotate Pairing Token if it may have been exposed; and
- copy a fresh configuration into every client after rotating it.
Rotating the token immediately disconnects existing MCP sessions. Disabling Agentic MCP also closes all connected sessions.
Troubleshooting
The agent has no JetCad3 tools
Confirm the listener says Running, then start a completely fresh agent session. Most clients load their MCP tool list when a session starts and will not add a newly configured server to a conversation that is already open.
Connection refused or “fetch failed”
JetCad3 is not running, Agentic MCP is disabled, or the configured port does not match. Reopen Settings, confirm the running endpoint, and copy the configuration again.
JetCad3 tools stop working after restarting JetCad3
Restarting JetCad3 ends the agent's old connection, and the agent reconnects on its own the next time it calls a JetCad3 tool. If an older client keeps reporting “MCP session not found”, reconnect the JetCad3 server in that client or start a fresh agent session.
The pairing token is rejected
Use Copy Codex config, Copy Claude command, or Copy JSON again. If necessary, rotate the pairing token and replace the old client configuration.
The agent cannot find the project
Make sure the project is open in JetCad3. Ask the agent to list documents and bind the desired tab again; document handles do not survive closing or replacing a tab.
The listener cannot start
Another local program may already be using the selected port. Choose a different port, save Settings, then copy a new client configuration because the endpoint changed.