Ferrite SDK
FerriteMcp plugin

AI Tools built into the editor

Turn on the local Model Context Protocol (MCP) server for any project so compatible AI assistants can inspect your level, edit Schematics and widgets, capture screenshots, run Play sessions and package builds — using the same undo history you use.

Local-first architecture

Real editor tools, never desktop automation

When enabled, the FerriteMcp editor plugin exposes structured tools and read-only resources directly from the running Ferrite Editor. The assistant never touches your mouse or keyboard and cannot see anything outside the server's responses.

  • Off by default. Starter templates (EmptySchematic and EmptyCSharp) start with the MCP server disabled. You opt in per project.
  • Localhost & Bearer token. Listens only on 127.0.0.1 (default port 47800) and requires a secret Authorization: Bearer token on every request.
  • Editor undo integration. Edits run against the open editor documents and record undo steps, so Ctrl+Z reverts changes — including whole batch placements in a single step.
  • Visual feedback built in. Assistants can request viewport, widget, Schematic and UI screenshots to verify layout and rendering changes as they work.
Access control

Three explicit permission tiers

Every tool belongs to one tier. The server refuses any call above your chosen level and tells the assistant which tier is required — an assistant can never raise its own permission.

ReadOnly

Inspect & observe

Read editor state (editor_state), console logs, project settings, open level GameObjects, assets and viewport/widget screenshots. Always allowed while the server runs.

Edit · default

Author & modify

Create, edit, save and delete levels, GameObjects, components, Schematic graphs, widgets, materials and project data. Unsaved changes stay in the open editor until saved.

Execute

Play, build & package

Start and stop Play-In-Editor sessions, run console commands, trigger C# builds, run Package Project, invoke editor commands and run scripted UI checks.

Compatibility

One-click setup for popular AI clients

Open Window > AI Tools in Ferrite Editor to enable the server, choose a permission tier and configure your client without hand-editing JSON.

Claude Code OpenAI Codex Muse Code OpenCode Cursor Antigravity VS Code (Copilot Chat) Claude Desktop Any MCP-compatible client

The AI Tools panel also lets you copy connection settings for Claude Desktop and other MCP-compatible clients, and ships helper scripts under tools/mcp/ for custom automation.

Enabling the server

Three ways to turn it on

Enable FerriteMcp visually in the editor, commit a project setting in .femproj, or enable it for a single CLI session.

In the editor (recommended)

Step 1
Open Window > AI Tools
Also reachable from Plugins > AI Tools... or the toolbar button.
Step 2
Enable for this project
Tick Enable MCP server for this project, keep port 47800 and pick ReadOnly, Edit or Execute.
Step 3
Apply & connect
Press Apply to start the server immediately, then pick your AI client in the panel.

In .femproj or for one CLI session

// In MyGame.femproj under Plugins:
{
  "Name": "FerriteMcp",
  "Enabled": true,
  "Settings": {
    "Server": {
      "Enabled": true,
      "Port": 47800,
      "Permission": "Edit"
    }
  }
}
# Or enable for one session without editing .femproj:
ferrite open MyGame.femproj --mcp --mcp-port=47800 --mcp-permission=Edit

Privacy & third-party AI providers

The connection between your client and the Ferrite Editor stays on your local machine (127.0.0.1). However, the AI client or model provider you connect may receive project data and handle it under its own terms and privacy policy.

Keep permission at Edit until you trust a workflow, and review the Ferrite privacy notice and your client's terms before connecting.

Documentation written for AI assistants

Every Ferrite SDK install ships a dedicated SDKDocs/LLM/ folder of concise Markdown references tailored for coding assistants — covering C# APIs, Schematic contracts, project layout and MCP tools — alongside the human-readable SDK guide.

Need custom MCP tools for your studio? Use the MCP tool pack plugin template from Create Plugin.