Fusion Toolsmith MCP

Fusion Toolsmith MCP

A safety-first Autodesk Fusion 360 MCP add-in that enables agents to inspect, plan, validate, and package CAD changes without blindly running raw scripts, with structured tools and preflight checks.

Category
访问服务器

README

Fusion Toolsmith MCP

Safety-first Autodesk Fusion 360 MCP add-in for agents that need to inspect, plan, validate, and package CAD changes without blindly running raw scripts.

Fusion Toolsmith MCP runs inside Fusion 360, exposes MCP over local HTTP on port 9100 with Streamable HTTP and legacy HTTP/SSE compatibility, and writes live discovery data to ~/.fusion_mcp.json. The add-in is opt-in by default and does not start automatically with Fusion.

The installed Fusion add-in folder is still named FusionMCP for compatibility with existing local installs.

Why Toolsmith

Generic Fusion MCP servers often expose a raw script bridge. Toolsmith adds a disciplined CAD workflow around that bridge:

  • Inspect the live model before editing.
  • Map sketches, features, parameters, projected geometry, and downstream dependencies.
  • Route agents through structured tools before raw Fusion API scripts.
  • Preflight exports and model mutations.
  • Keep dangerous tools separated from normal inspection/modeling workflows.
  • Record a local redacted tool-call journal.

Use Toolsmith when you want an agent to behave like a careful CAD assistant, not just a Python executor.

See docs/tooling-roadmap.md for the general CAD tooling backlog.

See docs/external-fusion-mcp-sweep.md for the public Fusion MCP comparison notes that informed Toolsmith's adoption layer.

What It Is Good At

  • Inspecting existing designs before editing: sketches, features, parameters, projected geometry, selections, dependency reports, and coordinate mapping.
  • Safer model mutation: explicit operations, preflight checks, downstream-consumer warnings, before/after design-state comparisons, and validation tools.
  • Export safety: preflight-gated STEP/STL/PDF workflows.
  • Local runtime hardening: fixed port, bearer-token support, token-free /health, session TTL cleanup, single active SSE client, and automatic Antigravity config sync.
  • Machine-readable adoption metadata: initialize instructions, MCP tool/resource annotations, fusion://agent/server-capabilities, fusion://agent/tool-profiles, and fusion://agent/tool-first-workflow.

Runtime Shape

MCP client
  -> http://127.0.0.1:9100/sse
  -> FusionMCP add-in running inside Fusion 360
  -> Fusion API on Fusion's main thread

Discovery file:

C:\Users\<you>\.fusion_mcp.json

The discovery file includes:

  • sse_url: legacy query-token URL for clients that only support URL auth.
  • bearer_sse_url: preferred token-free URL.
  • streamable_http_url: preferred Streamable HTTP endpoint.
  • authorization_header: preferred bearer auth header.
  • transports: advertised transport modes.
  • port and token.

Install From This Checkout

Detailed installation and troubleshooting notes are in docs/installation.md.

Install the management CLI in editable mode:

python -m pip install -e .

Install or refresh the Fusion add-in files:

fusion-mcp install-addin

If the old prototype add-in folder Fusion MCP Addin is present, the installer moves it to AddInsDisabled so it cannot keep claiming port 9100 or serve stale tools. Use --keep-legacy-addin only if you are intentionally testing that older add-in.

Build a distributable add-in ZIP:

fusion-mcp package-addin

The package is written to:

dist\FusionMCP-addin.zip

Then start or restart the FusionMCP add-in from Fusion 360:

Utilities > Add-Ins > Scripts and Add-Ins > Add-Ins > FusionMCP > Run

The manifest keeps runOnStartup set to false. Start the add-in only when you need it.

Verify

Run the live smoke test:

fusion-mcp test-live

fusion-mcp doctor also checks the advertised tool registry. If required tools are missing after an install, it returns nonzero and recommends reloading the Fusion add-in.

Or use the PowerShell script directly:

powershell -ExecutionPolicy Bypass -File scripts/test_fusion_mcp_live.ps1

Check runtime health:

Invoke-RestMethod http://127.0.0.1:9100/health | ConvertTo-Json

Expected health output includes discovery, transports, active_sessions, active_http_sessions, task_manager_running, and pending_tasks. It should not include a token or sse_url.

Client Config

Print both legacy and bearer-style client snippets:

fusion-mcp print-client-config

Export the offline MCP schema bundle without launching Fusion:

fusion-mcp dump-schemas --output dist\mcp-schemas.json

Run a deterministic no-Fusion mock server for client integration tests:

fusion-mcp mock-server --port 9101

The mock server exposes /health and Streamable HTTP MCP calls at /sse. It advertises the same offline tool/resource/prompt surface as dump-schemas, but tool calls return deterministic mock data instead of touching Fusion.

For Antigravity/Gemini-style config, FusionMCP auto-syncs this file on add-in startup:

C:\Users\<you>\.gemini\config\mcp_config.json

Manual sync is still available:

fusion-mcp sync-config

Tool Profiles

Machine-readable profiles are available through both the CLI and MCP resource layer:

fusion-mcp list-profiles
fusion://agent/tool-profiles

Server adoption metadata is available as JSON:

fusion://agent/server-capabilities

That resource summarizes supported transports, discovery keys, initialize instructions, safety gates, tool/resource annotation coverage, profiles, prompts, and capability counts so clients can route without scraping README text.

Use these mental profiles when exposing tools to agents or documenting workflows:

  • core: readiness, runtime diagnostics, workflow routing, and change-journal tools.
  • inspection: design snapshots, physical-property and printability checks, sketch/feature/parameter/dependency inspection, selection queries, body face/edge targeting, assembly reference/joint inspection, material/appearance reporting, timeline/tree inspection, and mutation preflight.
  • modeling: structured sketches, constraints, projection, extrude/revolve/loft/sweep/fillet/chamfer/shell, offset face, combine, primitives, component-targeted construction geometry, rigid point-to-point joints, rounded cuts/pockets, hole patterns, mirror/pattern, appearance discovery/application, mesh conversion, and component organization.
  • parameters: user/model parameter reads and edits, parameterization planning, sketch dimension editing, and parameter CSV import/export.
  • export: preflight-gated STEP/STL/PDF export plus still-frame capture helpers.
  • presentation: viewport camera, visibility staging, user prompts, screenshots, and capture_demo_sequence still-frame sequences.
  • document: document listing, assembly tree/reference reads, timeline reads, timeline marker movement, and feature recipe cloning.
  • docs: local Fusion API, workflow, and best-practices lookup.
  • dangerous: raw scripting, clear journal, document activation/revert, undo, delete, and suppress tools. Use only after structured tools are insufficient.

Feature Matrix

Area What Toolsmith exposes
Runtime safety doctor, initialize instructions, offline schema export, runtime diagnostics, fixed-port health, Streamable HTTP/SSE metadata, bearer auth, MCP read-only/destructive/idempotent tool annotations, resource ranking annotations, change journal, structured-tool routing
Inspection design snapshots, sketch/feature/dependency inspection, body face/edge targeting, assembly origin/reference/joint reports, physical-property reports, material/appearance reports, mesh-aware inspect_printability warnings
Safe modeling typed sketching, guarded sketch constraint creation/deletion, extrudes, revolves, lofts, sweeps, token-targeted fillets/chamfers/shells, offset_face_or_press_pull, holes, pockets, mirrors, patterns, construction geometry, rigid point-to-point joints
Parameters user/model parameter reads, safe edits, parameterization planning, dimension editing, CSV import/export
Export and presentation preflighted STL/STEP/PDF export, screenshots, staged visibility, still-frame demo sequences
MCP prompts workflow prompts for tool-first routing, export readiness, threaded fasteners, sheet-metal planning, printability review, and physical-property review
Dangerous tools raw scripts, guarded undo/revert, timeline deletion/suppression, and document activation are isolated from normal workflows

Development

Run the unit suite:

python -m unittest discover -s tests

Run the structural live fixture when FusionMCP is loaded and you want deeper end-to-end coverage:

powershell -ExecutionPolicy Bypass -File scripts/test_fusion_mcp_inspection_fixture.ps1

Useful starter prompts are in examples/prompts.md.

Use docs/demo-script.md to record the short demo GIF/video for the README.

CI And Releases

GitHub Actions runs the unit suite, checks the no-Fusion mock/schema surfaces, and builds the add-in ZIP on pushes and pull requests.

To publish a GitHub release with the packaged add-in attached:

git tag v1.0.0
git push origin v1.0.0

License

MIT. See LICENSE.

Change Journal

FusionMCP writes local JSONL tool-call audit entries to:

C:\Users\<you>\.fusion_mcp\journal.jsonl

Read it through MCP:

fusion://runtime/change-journal

Or call:

get_change_journal
clear_change_journal

The journal redacts tokens, authorization headers, raw scripts, and long string arguments.

Local Docs

FusionMCP exposes a local Fusion API and best-practices index:

fusion://docs/fusion-api

Search it with:

search_local_fusion_docs

This is an offline companion to official Autodesk docs and is meant for quick planning before writing raw Fusion API scripts.

Safety Notes

  • Fusion API calls must execute on Fusion's main thread through TaskManager.
  • run_fusion_script is intentionally a last-resort tool and requires intent/gap fields.
  • Query-token auth remains for legacy clients, but bearer auth is preferred.
  • If behavior does not change after editing files, reload the add-in or restart Fusion; Fusion may still hold the old Python modules in memory.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选