Logo Claireon

Claireon

Tổ chức
believer-oss

MCP server for Unreal Editor

Nhà phát hànhbeliever-oss
Kho mãClaireon
Ngôn ngữC++
Bản fork
18
Sao
138
Công cụ có sẵn
0
Phương thức truyền tảistreamable-http
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Claireon cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    138 sao và 18 bản fork từ kho mã được liên kết.


Claireon is an Unreal Engine editor plugin that runs a Model Context Protocol (MCP) server inside the editor, exposing hundreds of editor automation tools for AI-assisted development workflows behind a deliberately small MCP surface (tool_search + python_execute). It enables AI assistants like Claude Code to read, search, inspect, and edit Unreal assets directly.

Features

  • Hybrid Tool Discovery — tool_search ranks the full tool catalog with SQLite FTS5 + a vendored embedding model, so agents find the right tool without a giant tool list
  • Blueprint Editing — Read and modify Blueprint graphs, properties, components, and connections
  • Animation Authoring — Anim sequences, montages, notifies, blend spaces/aim offsets, and AnimBP graphs
  • State Tree Editing — Inspect and edit State Tree assets, nodes, and runtime state
  • Behavior Tree & EQS — Inspect and edit Behavior Trees, Blackboards, and Environment Query Systems
  • Widget Blueprint Editing — Read and modify UMG widget hierarchies and animations
  • Niagara & PCG — Inspect and edit Niagara particle systems and PCG graphs
  • Data Tables — Full CRUD operations on Data Table assets with CSV/JSON import/export
  • Audio & MetaSounds — Sound placement, attenuation, audio components, and MetaSound inspection
  • Sequences, Cameras & More — Level Sequences (incl. actor rebinding), camera assets, chooser/proxy tables, gameplay tags, Enhanced Input, landscape/terrain
  • Asset Management — Search, list, validate, resave, cook, and fix up redirectors
  • PIE Integration — Start/stop Play-In-Editor, query actors, spawn enemies, test abilities, take screenshots
  • Trace Analysis — Open and analyze Unreal Insights trace files for performance profiling
  • Blueprint Diffing — Compare Blueprint and State Tree assets between revisions
  • Python Execution — Run arbitrary Python scripts in the editor with audit logging
  • Built-in REPL — In-editor AI chat assistant with Claude integration (optional)
  • Session Management — Exclusive-per-asset locking with automatic timeout cleanup

Requirements

  • Unreal Engine 5.x (tested with 5.5+)
  • Windows (Win64) — other platforms may work but are untested
  • Python 3 plugin enabled in the editor
  • Claude Code or any MCP-compatible client

Installation

As a Plugin (recommended)

  1. Clone this repository directly into your project's Plugins/ folder (the plugin lives at the repository root): git clone <repo-url> Plugins/Claireon
  2. Regenerate project files and build
YourProject/
  Plugins/
    Claireon/
      Claireon.uplugin
      Source/
      Content/
      ...
  1. Enable the plugin in the editor under Edit > Plugins > Claireon

Starting the Server

The MCP server can be started in two ways:

  • Command line: Launch the editor with -StartMCPServer to auto-start on load
  • Toolbar button: Click the Claireon button in the editor toolbar to open the Claireon panel, which also starts the server

The server binds a deterministic per-worktree port: SHA-256 of the canonicalized project root, folded into the ephemeral range 49152-65535. Every checkout gets a stable, collision-free port with no configuration, and multiple worktrees on one machine never fight over a shared default. The live port and PID are written to Saved/Claireon/MCPServer.json on startup. -MCPServerPort=<port> remains as a developer escape hatch to force a specific port.

Optional MCP proxy

For workflows where the editor restarts often (rebuilds, crashes, live-coding reloads), an optional always-on proxy (Content/Python/claireon_proxy.py, run with UE's vendored Python) can front the editor: Claude Code stays connected to the worktree's deterministic port while editors come and go behind it. Opt in with -EnableMCPProxy on the command line, or via Editor Preferences > Plugins > Claireon > MCP Proxy > Enable MCP Proxy (off by default). When enabled, the proxy holds the worktree port, and the editor binds an ephemeral port and registers with the proxy; editor ingress is then gated by a per-session bearer token so the proxy is the sole entry point. A single proxy instance serves all worktrees on the machine (registration port 43017). Even with the setting off, an editor that finds its port already held by a Claireon proxy auto-promotes into proxy-attached mode.

Editor death is attributable only in proxy mode. When the editor dies, the proxy is the only party that outlives it, so only proxy mode can say why. On a call whose forwards are refused or reset, the proxy classifies the session and answers with a named editorState plus an editorTermination record of the signals that decided it: editor_closed (the editor deregistered cleanly), editor_crashed (the process is gone and a crash report under Saved/Crashes names its process id), editor_listener_stopped (the process is alive and identity-matched -- do not relaunch it), or editor_terminated_unknown when none of those decide. The last is a real answer, not a fallback: a killed process leaves no crash report, and reporting one as a crash would send you hunting a callstack nobody wrote. In direct-connect mode none of this is available -- the client talks to the editor's own port, nothing survives the editor to attribute anything, and a killed editor is observable only as an unattributed transport disconnect. The tool call's own log line names the asset and the phase (resolve, scrub, compile, save) it was in, which is what a post-mortem over a multi-asset session has to work from there.

The proxy can also run without any editor: Scripts/Utilities/Start-MCPProxy.ps1 spawns (or attaches to) the singleton and binds the current worktree's port, no Unreal launch required. Editor-less, the proxy serves the proxy meta-tool and the file-backed prompts (e.g. workflow) directly from disk; tool_search and python_execute answer once an editor registers (start one from the client with proxy(command='launch_editor')).

proxy(command='launch_editor') is project-agnostic: the plugin ships no editor build/launch script. The hosting project declares its own in <worktree>/.claireon/launch_editor.json (location overridable via the CLAIREON_LAUNCH_EDITOR_CONFIG environment variable):

json
{
  "command": ["{powershell}", "-NoProfile", "-File",
              "{worktree_root}/Scripts/LaunchEditor.ps1",
              "-ProjectPath", "{project_path}"],
  "skip_build_args": ["-SkipBuild"]
}

Placeholders substituted per argument: {worktree_root} (absolute worktree root), {project_path} (the worktree's .uproject), {powershell} (resolved pwsh.exe/powershell.exe). skip_build_args is appended when the caller passes skip_build: true.

Connecting Claude Code

Once the server is running, configure Claude Code to connect. Take the port from Saved/Claireon/MCPServer.json -- it is stable for a given checkout path, so the config can be committed to your project's .mcp.json once and forgotten:

json
{
  "mcpServers": {
    "claireon": {
      "type": "http",
      "url": "http://127.0.0.1:<port>/mcp"
    }
  }
}

The MCP surface is intentionally two tools: tool_search to discover what is available, and python_execute to run editor Python (where every catalog tool is callable as claireon.<tool_name>(...)). Discover tools with:

> tool_search blueprint
> tool_search state tree
> tool_search(tool_name="bp_apply_delta")   # full detail for one tool

One-click launch from the editor

Once the plugin is loaded, open the Claireon panel (toolbar button, or Window > General > Miscellaneous > Claireon); its status strip exposes a Claude Code launch button (toggleable via the Show Claude Code Button setting). Clicking it:

  1. Resolves the live MCP server port (from the in-process server, falling back to Saved/Claireon/MCPServer.json).
  2. Writes a per-launch MCP config to Saved/Claireon/claude-code-mcp.json so the committed .mcp.json stays untouched.
  3. Spawns a PowerShell window at the project root and runs claude --mcp-config <path> against that config. On Windows 11 with Windows Terminal as the default console host, the new window automatically opens in Terminal.

Two optional settings under Editor Preferences > Plugins > Claireon > Claude Code Launch let teams customize the flow:

  • Initial Prompt — string sent to Claude Code on launch (typically a slash command like /mcp-connect-claireon to auto-fire a project-specific init skill). Empty by default.
  • Skip Permission Prompts on Launch — when true, passes --dangerously-skip-permissions so the initial-prompt skill can run unattended. Off by default.

Project-wide defaults can be committed via Config/DefaultEditorPerProjectUserSettings.ini:

ini
[/Script/Claireon.ClaireonSettings]
LaunchInitialPrompt=/mcp-connect-claireon
bLaunchSkipPermissions=True

First-run requirements (per machine):

Optional Dependencies

Claireon works standalone, but can integrate with these plugins when present:

PluginPurposeDetection
UntestedUnit test framework for Claireon's test suiteOptional plugin dependency
BlueprintAssistEnhanced Blueprint editor integrationOptional plugin dependency
LyraGameLyra framework init state checking in PIE toolsAuto-detected via filesystem

Architecture

<repository root>/
  Source/Claireon/
    Public/
      ClaireonModule.h          # Module entry point, server lifecycle
      ClaireonServer.h          # HTTP server, JSON-RPC dispatch
      ClaireonSessionManager.h  # Per-asset exclusive locking
      IClaireonToolProvider.h   # Modular-feature interface for external tool providers
      Tools/
        IClaireonTool.h         # Tool interface — implement this to add tools
    Private/
      Tools/                    # Tool implementations (hundreds of operations)
      Tests/                    # Unit tests (requires Untested)
  Content/
    Python/                     # Multi-worktree MCP proxy (claireon_proxy.py)
    MCP/Instructions/           # Instruction documents served as MCP resources
  Resources/
    Models/                     # Vendored bge-small-en-v1.5-int8 embedding model (MIT)

Registering External Tools

Other modules contribute tools without including server internals by implementing the modular-feature provider interface:

cpp
#include "IClaireonToolProvider.h"
#include "Tools/IClaireonTool.h"

class FMyToolProvider : public IClaireonToolProvider
{
public:
    TArray<TSharedPtr<IClaireonTool>> GetTools() const override;
    FName GetProviderName() const override { return TEXT("MyPlugin"); }
};

// In your module's StartupModule():
IModularFeatures::Get().RegisterModularFeature(IClaireonToolProvider::FeatureName, &MyProvider);

Providers are discovered at server start and dynamically as they register/unregister at runtime. A provider can also extend bare-name resolution with project-specific module names and class-prefix conventions via the optional GetKnownModules() / GetClassPrefixMap() overrides. For one-off registrations, FClaireonModule::Get().RegisterExternalTool() also works; tools registered before the server starts are queued and flushed on startup.

Development

Building

Claireon builds as a standard Unreal Engine editor plugin. No special build steps are required beyond the usual:

bash
# Generate project files (if using a .uproject)
UnrealBuildTool -projectfiles -project="YourProject.uproject" -game -engine

# Build
UnrealBuildTool YourProjectEditor Win64 Development -project="YourProject.uproject"

Adding a New Tool

  1. Create a class implementing IClaireonTool (see Tools/IClaireonTool.h)
  2. Implement GetCategory(), GetOperation(), GetDescription(), GetInputSchema(), and Execute() — the tool name is always <category>_<operation> (GetName() is sealed)
  3. Register it with the built-in provider in ClaireonModule.cpp (or via your own IClaireonToolProvider if it lives in another module)
cpp
class MyTool : public IClaireonTool
{
public:
    FString GetCategory() const override { return TEXT("custom"); }
    FString GetOperation() const override { return TEXT("my_tool"); }   // name: "custom_my_tool"
    FString GetDescription() const override { return TEXT("Does something useful"); }

    TSharedPtr<FJsonObject> GetInputSchema() const override
    {
        auto Schema = MakeShared<FJsonObject>();
        Schema->SetStringField(TEXT("type"), TEXT("object"));
        // ... define properties
        return Schema;
    }

    FToolResult Execute(const TSharedPtr<FJsonObject>& Arguments) override
    {
        // Your implementation here
        auto Data = MakeShared<FJsonObject>();
        Data->SetStringField(TEXT("result"), TEXT("success"));
        return MakeSuccessResult(Data, TEXT("Tool completed successfully"));
    }
};

Scripts

The Scripts/ directory contains PowerShell utilities and Claude Code instruction documents for working with Unreal Engine projects.

Utility Scripts (Scripts/Utilities/)

PowerShell scripts for common Unreal Engine development tasks. All scripts auto-detect the project and engine location — run them from anywhere inside your project directory.

ScriptPurpose
Invoke-EditorBuild.ps1Build the editor (auto-detects target from .uproject)
Invoke-GenerateProjectFiles.ps1Generate VS project files and clang compilation database
Invoke-ValidateAssets.ps1Validate asset integrity via ResavePackages
Invoke-ResaveAssets.ps1Resave specific assets via editor Python automation
Invoke-FixupRedirectors.ps1Fix up asset redirectors after moves/renames
Invoke-CleanProject.ps1Clean build artifacts (Binaries, Intermediate, etc.)
Start-MCPProxy.ps1Start (or attach to) the MCP proxy singleton without launching an editor
Get-GitUsername.ps1Extract git username from email for branch naming
Wait-UBT.ps1Wait for UnrealBuildTool to finish before proceeding

The shared module ClaireonCommon.psm1 provides core functions used by all scripts: Find-UnrealProject, Find-UnrealEngine (SHA-aware custom engine detection), Get-EditorBuildTarget, Invoke-UnrealCommandlet, and more.

Instruction Documents (Scripts/Instructions/)

Markdown documents that serve as structured prompts for AI assistants (e.g., Claude Code). Each document describes a multi-step workflow that an AI agent can follow autonomously. Invoke them by asking your AI assistant to follow the instructions in a specific file.

Git Workflows:

  • AutoPushChangesAsNewBranch.md — Move local changes to a new branch with standardized naming
  • CleanupBranchesAfterMerge.md — Rebase all local branches onto main after merges
  • ResetWorktreeToMain.md — Park current branch and reset to latest main

Unreal Engine Workflows:

  • ConnectToUnrealEditorMCP.md — Connect Claude Code to the MCP server in the editor
  • FixDeprecatedBlueprintAPIs.md — Parse editor logs for deprecated API warnings
  • FixNaniteMaterialCompatibility.md — Identify Nanite/material incompatibility issues
  • FixDuplicateGameplayCueTags.md — Find duplicate GameplayCue tag registrations
  • ResaveAssetsWithLoadErrors.md — Resave assets with broken references
  • UnrealPythonPatterns.md — Quick reference for correct Unreal Python API patterns
  • PSD-to-UMG-Workflow.md — Convert Photoshop PSD designs into UMG widget blueprints

Development Workflows:

  • BreakDownWorkProposal.md — Break a proposal into skeleton-test-implement stages
  • CheckDocumentationStaleness.md — Scan HTML docs for staleness vs. source files
  • VerifyTestBehavior.md — Walk through test cases and verify intended behavior

Documentation Generation:

  • CreateInteractiveArchitecture.md — Generate interactive SVG architecture diagrams
  • CreateInteractivePipelineDiagram.md — Generate interactive pipeline stage diagrams

Security Considerations

Claireon runs an unauthenticated HTTP server intended for localhost-only use. This is by design for seamless local AI assistant integration, but you should be aware of the implications:

  • "Localhost-only" is enforced in software, not by the socket bind. The editor's HTTP listener (Unreal's FHttpServerModule) binds all interfaces; loopback-only access is enforced by Origin/Host header validation, which is best-effort. A host firewall blocking inbound connections to the MCP ports is the real network boundary.
  • Never expose the MCP port externally. Do not use port forwarding, reverse proxies, or tunnels to make the server (or the Claireon proxy, ports 43017 and 49152-65535) accessible from other machines.
  • Python execution is unrestricted. The python_execute tool has full access to the filesystem, network, and editor APIs — equivalent to the editor's built-in Python console.
  • Execution timeout is best-effort. A watchdog injects a TimeoutError between Python bytecodes after Python Execution Timeout (default 60 s, settable in Editor Preferences); a blocking native call is not interrupted mid-call, and the error surfaces only when it returns to Python.
  • No authentication. Any process on localhost can call the MCP server. (In proxy mode the editor itself only accepts proxy traffic carrying a per-session bearer token, but the proxy's own MCP endpoint is equally unauthenticated on localhost.)

For full details, see SECURITY.md.

License

This project is licensed under the MIT License — see the LICENSE file for details.

Third-party dependencies retain their own licenses. The vendored embedding model ships with its license at Resources/Models/bge-small-en-v1.5-int8/LICENSE.txt.

Dùng MCP Claireon với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Claireon, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này kết nối qua URL máy chủ MCP được lưu trữ từ xa trong TypingMind.

Thêm URL máy chủ MCP

Dùng cách này khi Claireon đã được lưu trữ từ xa hoặc nhóm của bạn muốn có một trình kết nối dùng chung cho nhiều người dùng.

1

Mở mục Trình kết nối MCP

Trong TypingMind, vào Plugin, mở mục Trình kết nối MCP, rồi chọn Thêm URL.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Vào mục Plugin.
  3. Mở mục Trình kết nối MCP.
  4. Nhấp vào Thêm URL.
Biểu mẫu Thêm URL máy chủ MCP tùy chỉnh của TypingMind
2

Dán URL máy chủ

Nhập URL máy chủ MCP do nhà cung cấp cung cấp vào trường URL máy chủ. Thêm tên kết nối, mô tả, biểu tượng, header HTTP tùy chỉnh hoặc cài đặt ứng dụng khách OAuth nếu máy chủ yêu cầu.

  1. Dán URL máy chủ MCP do nhà cung cấp cung cấp vào trường URL máy chủ.
  2. Nhập tên kết nối cho Claireon.
  3. Thêm mô tả và biểu tượng nếu bạn muốn dễ nhận biết kết nối hơn.
  4. Thêm header HTTP tùy chỉnh hoặc thông tin ứng dụng khách OAuth nếu máy chủ yêu cầu xác thực.
3

Tạo kết nối

Nhấp vào Tạo kết nối, sau đó quay lại danh sách Plugin và xác nhận kết nối MCP mới đang hoạt động.

  1. Nhấp vào Tạo kết nối.
  2. Quay lại danh sách trình kết nối MCP.
  3. Xác nhận kết nối Claireon hiển thị trạng thái đang hoạt động.
  4. Làm mới danh sách plugin nếu kết nối chưa xuất hiện ngay.
4

Đổi mô hình mà không cần kết nối lại

Bắt đầu cuộc trò chuyện với mô hình bạn thích, bật các công cụ của Claireon trong mục Plugin và chuyển sang mô hình khác khi cần. Kết nối MCP vẫn sẵn dùng trong không gian làm việc TypingMind.

  1. Bắt đầu cuộc trò chuyện mới trong TypingMind.
  2. Chọn mô hình AI bạn muốn dùng.
  3. Bật các công cụ của Claireon trong mục Plugin.
  4. Yêu cầu mô hình dùng công cụ khi cần.
  5. Chuyển sang mô hình AI khác và dùng lại cùng kết nối MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Claireon giúp tôi làm việc này không?
Claireon
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Claireon.

Câu hỏi thường gặp

Máy chủ MCP Claireon dùng để làm gì?

Claireon là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Claireon với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Claireon với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Claireon với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Claireon, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Claireon với TypingMind?

Bạn có thể kết nối Claireon trong TypingMind bằng cách thêm URL máy chủ MCP được lưu trữ từ xa của dịch vụ này. Cách này hữu ích khi bạn muốn dùng kết nối MCP từ xa ngay trong không gian làm việc TypingMind.

MCP Claireon cung cấp những công cụ nào trong TypingMind?

Claireon cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Claireon không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Claireon yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇