About Agentcad
Agentcad is an MCP server published by jdilla1277 in the Science category: cAD CLI and MCP server for AI agents. Conduid read 35 tools from its source: changes_compare, changes_list, changes_repair, changes_restore, changes_show, check_spec and 29 more. It is published to PyPI as agentcad and runs with uvx.
The repository has 230 stars and 26 forks, is licensed Apache-2.0, and its last commit was on 1 Dec 2026. The latest release is v0.8.0 (13 Nov 2026): Thanks to Wei Chen (@cw-jlu) and Shuting Xu (@waibiancheng520) for making failed MCP commands easier to diagnose. It follows v0.7.2 (6 Nov 2026), and the 5 most recent releases go back to v0.6.0 (11 Sep 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include build123d, cad and cadquery.
Install
uvx agentcadpip install agentcadgit clone https://github.com/jdilla1277/agentcadTools (35)
changes_compareCompare exact retained revisions' saved measurements, checks and policies.| Parameter | Type | Description |
|---|---|---|
| baseline * | string | |
| build_dir | string | |
| cwd * | string | |
| experimental_changes | boolean | |
| revision * | string |
changes_listRead retained CAD attempts, including failures and interrupted work.| Parameter | Type | Description |
|---|---|---|
| before | string | |
| build_dir | string | |
| cwd * | string | |
| experimental_changes | boolean | |
| limit | integer |
changes_repairExecute edited Python CAD source as NEW STAGED work linked to a revision.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | |
| cwd * | string | |
| experimental_changes | boolean | |
| idempotency_key * | string | |
| label | string | |
| params | string | |
| revision | string | |
| source | string | |
| status | boolean |
changes_restoreRestore verified saved source/model/artifacts as NEW STAGED work.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | |
| cwd * | string | |
| experimental_changes | boolean | |
| idempotency_key * | string | |
| label | string | |
| revision | string | |
| status | boolean |
changes_showRead a retained revision's verified source, geometry, checks and diagnostics.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | |
| cwd * | string | |
| experimental_changes | boolean | |
| revision * | string |
check_specCheck a file/spec or inspect a retained revision's pinned check receipt.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Use returned artifact paths. |
| complete | boolean | Complete deferred checks and settle the original automatic acceptance if still current. Staged/superseded work stays unaccepted. current_advanced reports a fresh acceptance; promotion is its durable decision, separate from passed/validation_state. Reads are read-only. |
| cwd | string | Source project directory (or a subdirectory); defaults to current. |
| experimental_changes | boolean | |
| file * | string | STEP/STP/BREP path, or a returned retained revision ID. |
| spec_file | string | JSON cylindrical-feature spec for file checks. Omit for a retained revision: its requirements are already pinned. |
cloud_activityRead account-owned cloud job activity, newest first. Use next_cursor for another page, limit 1–100.| Parameter | Type | Description |
|---|---|---|
| cursor | string | |
| limit | integer |
cloud_check_specUpload one explicit JSON spec (at most 256 KiB); returns a verification job.| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| idempotency_key | string | |
| project * | string | |
| spec_file * | string | |
| version * | integer |
cloud_create_projectCreate an account-owned cloud project. Runtime is build123d or cadquery.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| runtime | string |
cloud_diffCompare two stored versions in one cloud project; returns a job.| Parameter | Type | Description |
|---|---|---|
| from_version * | integer | |
| idempotency_key | string | |
| project * | string | |
| to_version * | integer |
cloud_downloadDownload a private STEP, PNG, JSON report, or exported mesh to a local file.| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| destination * | string | |
| job | string | |
| kind | string | |
| overwrite | boolean | |
| path | string | |
| project * | string | |
| version | integer |
cloud_exportExport a saved cloud version to whole-model meshes without rebuilding CAD.| Parameter | Type | Description |
|---|---|---|
| formats * | array | |
| idempotency_key | string | |
| project * | string | |
| version * | integer |
cloud_importUpload one explicit .step/.stp file (at most 20 MiB) to a cloud project.| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| file * | string | |
| idempotency_key | string | |
| project * | string |
cloud_inspectInspect a stored cloud version; returns a job to poll with cloud_job.| Parameter | Type | Description |
|---|---|---|
| idempotency_key | string | |
| ids | boolean | |
| limit | integer | |
| project * | string | |
| summary | boolean | |
| validate_only | boolean | |
| version * | integer |
cloud_jobRead a cloud job and, when complete, its nested result or measurement.| Parameter | Type | Description |
|---|---|---|
| job * | string | |
| project * | string | |
| wait_seconds | integer |
cloud_measureRead stored cloud-version measurements using returned project/version IDs.| Parameter | Type | Description |
|---|---|---|
| project * | string | |
| version * | integer |
cloud_projectRead a returned cloud project ID and its version count.| Parameter | Type | Description |
|---|---|---|
| project * | string |
cloud_projectsList cloud projects owned by the configured API account.cloud_renderRequest the fixed 800x600 isometric PNG of a cloud version; returns a job.| Parameter | Type | Description |
|---|---|---|
| idempotency_key | string | |
| project * | string | |
| version * | integer |
cloud_runUpload one explicit UTF-8 .py CAD script (at most 256 KiB) to a cloud project.| Parameter | Type | Description |
|---|---|---|
| cwd | string | |
| export_glb | boolean | |
| idempotency_key | string | |
| label * | string | |
| project * | string | |
| script * | string |
contextShow project state, including interrupted-version recovery candidates.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Initialize this root first. |
| cwd * | string | Source project directory (or a subdirectory). |
| experimental_changes | boolean |
diffCompare two versions by number or label.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Use returned artifact paths. |
| cwd * | string | Source project directory (or a subdirectory). |
| ref1 * | string | First version reference (number or label). |
| ref2 * | string | Second version reference (number or label). |
docsShow build123d documentation, or explicit CadQuery compatibility docs.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. |
| cwd | string | Optional source project directory for runtime-aware documentation. |
| runtime | string | Optional runtime override. Pass ``cadquery`` to retrieve the same compatibility docs as ``agentcad docs --runtime cadquery``. |
| section | string | Optional section name (quickstart, commands, helpers, patterns, etc). |
exportExport a STEP file to mesh formats (stl, glb, obj).| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Use returned artifact paths. |
| cwd * | string | Source project directory (or a subdirectory). |
| formats * | string | Comma-separated formats (stl, glb, obj). |
| step_file * | string | Path to the STEP file. |
feedbackRecord local feedback; no input returns guided questions/template without sending.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | |
| cwd | string | |
| diagnostics | boolean | |
| local_only | boolean | |
| max_entries | integer | |
| message | string | |
| report | string | |
| reviewed_payload | object | |
| send | boolean |
import_cadImport a local STEP/STP/BREP baseline with inspection images and measured IDs.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | |
| checks_file | string | |
| context_window | integer | |
| cwd * | string | |
| defer_checks | boolean | |
| diff | boolean | |
| experimental_changes | boolean | |
| experimental_inspect | boolean | |
| file * | string | |
| full_response | boolean | |
| idempotency_key | string | |
| image_budget | integer | |
| initialize | boolean | |
| inspection_background | boolean | |
| inspection_wait_timeout | number | |
| label | string | |
| max_images | integer | |
| report | boolean | |
| report_images | boolean | |
| response_budget | integer | |
| response_text_budget | integer | |
| runtime | string | |
| stage | boolean | |
| text_budget | integer | |
| validation_profile | string | |
| view | boolean | |
| vision_profile | object |
inspectInspect topology of a STEP file (solids, shells, faces, edges, validity).| Parameter | Type | Description |
|---|---|---|
| artifact | string | Read saved bytes over this tool: "manifest", "baseline", or an exact returned inventory/image path. Requires the original file/build_dir. Returns bounded base64 chunks with full SHA-256 and next.mcp arguments; no client filesystem access, CAD work or regeneration. Cannot combine with geometry/report/image/job controls. Existing --image attaches PNGs. |
| artifact_bytes | integer | Maximum raw chunk bytes, 1..49152, default 3072. Encoding adds about one third; these explicit reads have no report token budget. |
| artifact_expires_at | string | Retained-artifact expiry from the first chunk; required on its continuations. Generated next actions pin both hash and expiry. |
| artifact_offset | integer | Byte offset; nonzero requires artifact_sha256 from first chunk. |
| artifact_sha256 | string | Require the full file's returned SHA-256 on each continuation. Reject changed, expired, evicted or wrong-baseline evidence explicitly. |
| background | boolean | Start report in a detached local worker; return inspection_job. |
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Use returned artifact paths. |
| context_window | integer | Derive a 5% combined response target from caller context tokens. |
| cwd * | string | Source project directory (or a subdirectory). |
| entity_id | string | Retrieve one typed ID from an imported or run-generated baseline's geometry manifest. |
| experimental_inspect | boolean | |
| file * | string | Path to the STEP file. |
| full_response | boolean | Skip whole-response compaction; a plain report has its previous flat shape. Report preparation limits still apply. Cannot combine with caller budgets. Harmless for already-unbounded ID lookups. |
| ids | boolean | Include per-feature ID lists. |
| image | boolean | Return a labeled four-view PNG attachment plus its JSON record. |
| image_budget | integer | Inline image-token limit. Without vision_profile, omit constrained images. |
| isolate | boolean | Show only the selected entity; requires image and entity_id. |
| job_action | string | status, wait (default with job_id), resume or cancel. Requires job_id/report. Cancellation stops between stages and preserves completed artifacts. |
| job_id | string | Saved inspection job for this file. Uses its original image configuration. |
| limit | integer | Optional maximum records per ID list and IDs per summary cluster. |
| max_images | integer | Maximum distinct report images, 0..9; overall then alternating part/face-edge samples. |
| no_limit | boolean | Return complete ID lists. Can be very large. |
| report | boolean | Return nested inspection plus a whole-response delivery audit, defaulting to 2000 estimated text tokens, and ranked image samples. retention reports the 30-day/512 MiB cache policy, expiry and protected checkpoint bytes. Configure [inspection.cache] in agentcad.toml. Expired job results fail explicitly with a fresh inspection action; resource_limit jobs stop and can resume after raising their quota. |
| report_images | boolean | Prepare/deliver report images; false keeps the same analysis without images. |
| response_budget | integer | Override that target with a combined JSON/image estimated limit. |
| response_snapshot | string | Retrieve a complete saved delivery response with report=True, without CAD work. Returns historical_response; current never advances. References report expiry and possible earlier byte-quota eviction. Default retention is 30 days/64 MiB per build root; configure [inspection.snapshots] in agentcad.toml. Expired or evicted evidence fails explicitly with a fresh inspection action, never a substituted report. |
| response_text_budget | integer | Bound complete JSON text; default is combined limit when known, otherwise 2000, including when no caller options are supplied. text_budget separately bounds report preparation. |
| summary | boolean | Include compact face/edge clusters. |
| text_budget | integer | Estimated token allowance for the report JSON (compact UTF-8 bytes / 3). |
| vision_profile | object | Caller estimate {name: "host", tokens_per_image: 1000} per 1024-square sheet. Inspect delivery fields for applied estimates/omissions. |
| wait_timeout | number | Seconds to wait for report; deadline does not cancel its worker. |
measureMeasure dimensions and feature sizes in a STEP/BREP file.| Parameter | Type | Description |
|---|---|---|
| axis | string | Optional axis filter (+x, -x, +y, -y, +z, -z, other). |
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Use returned artifact paths. |
| cwd * | string | Source project directory (or a subdirectory). |
| cylinders_only | boolean | Return only cylindrical feature buckets and core metrics. |
| diameter | number | Optional cylindrical feature diameter filter. |
| features | boolean | Include full per-solid, per-face, and per-edge measurement lists. |
| file * | string | Path to the STEP/STP/BREP file. |
| limit | integer | Optional maximum records per feature list. |
| no_limit | boolean | Return complete feature lists. Can be very large. |
| tolerance | number | Diameter tolerance used with diameter. |
promoteAccept an exact saved CAD revision or read its durable operation status.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | |
| cwd * | string | |
| experimental_changes | boolean | |
| idempotency_key * | string | |
| revision | string | |
| status | boolean | |
| target | string |
recoverValidate and reconcile an interrupted version directory safely.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Use returned artifact paths. |
| cwd * | string | Source project directory (or a subdirectory). |
| experimental_changes | boolean | |
| make_current | boolean | Explicitly make the recovered successful version current. |
| version_dir * | string | Direct version directory name reported by context. |
renderRender PNG views of an existing STEP file.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Use returned artifact paths. |
| cwd * | string | Source project directory (or a subdirectory). |
| focus | string | Camera focus point as x,y,z. |
| highlight | string | Use "validation" to mark failing edges/vertices in red and return the report. |
| name | string | Output name label. |
| no_fit | boolean | Skip FitAll (requires focus). |
| step_file * | string | Path to the STEP file. |
| view * | string | View spec (front,right,iso,all or custom angle az:el). |
| zoom | number | Zoom factor. |
runExecute a build123d script and produce a versioned STEP file with metrics.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Initialize this root first. |
| checks_file | string | Optional JSON dimension/preservation requirements. Repairs inherit the selected policy when omitted. See docs check-spec. |
| cwd * | string | Source project directory (or a subdirectory). |
| defer_checks | boolean | Retain pending declared checks instead of evaluating them now. Complete with check_spec(revision_id, complete=True); completion accepts a still-current normal-run intent if checks pass. Staged or superseded work stays unaccepted; reads never change current. |
| diff | boolean | Compare automatically with the prior successful version. Pass False to skip it; explicit diff remains available. |
| dry_run | boolean | Compute metrics without creating a version. |
| experimental_changes | boolean | |
| experimental_inspect | boolean | |
| export | string | Comma-separated mesh formats (stl, glb, obj). |
| idempotency_key | string | Save before sending. Identical source/options replay the original result without execution. Edits need a new key. Use run_status with only key/cwd/build_dir after source changes/removal. |
| output | string | Label for this version. Required unless dry_run is True. |
| params | string | Parameter overrides as key=value,key=value. |
| preview | boolean | Render a quick 256x256 iso preview. Default True — pass False to suppress. |
| render | string | Comma-separated views to render (front,right,top,iso,all). |
| script * | string | Path to the Python CAD script. |
| stage | boolean | Save and check a candidate without accepting it. Open the saved revision with view, then use promote to accept exact saved bytes. Render/export diagnostics separately from change.geometry. |
| view | boolean | Open or reuse the live project viewer. Share project_viewer.url with the human for automatic updates; viewer is a fixed snapshot. Pass False with preview=False and diff=False to also bypass viewer generation on the core-only fast path. |
run_statusRead the original authored run by key without executing source or selecting work.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | |
| cwd * | string | |
| experimental_changes | boolean | |
| experimental_inspect | boolean | |
| idempotency_key * | string |
viewOpen a GLB, STEP, or retained revision in the browser via three.js.| Parameter | Type | Description |
|---|---|---|
| build_dir | string | Optional artifact/history root, relative to the project root. Overrides agentcad.toml for this call only. Use returned artifact paths. |
| cwd * | string | Source project directory (or a subdirectory). |
| experimental_changes | boolean | |
| file * | string | GLB/STEP path, or retained revision ID to review its diagnostic geometry and check receipt without changing current. Its response includes an immutable file URL and project_viewer.url, pinned to that revision. The human can explicitly switch back to Follow working. |
| validation | boolean | Show failure markers and conditional repair guidance for a STEP file. |
viewerOpen/follow a project, read viewer state, or stop the local service.| Parameter | Type | Description |
|---|---|---|
| action | string | |
| build_dir | string | |
| cwd * | string | |
| experimental_changes | boolean | |
| revision | string |
Security checks
- ✓README presentThe repository's README runs to about 3.2K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 106 source files and found 1 call to eval or shell execution, in src/agentcad/runners/build123d.py. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 3.2K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README