### get_asset_references output format example Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Example output from the get_asset_references tool showing dependencies and referencers sections. ```text Asset: /Game/Maps/TestMap/TestMap_Main ========== == Dependencies (what this asset uses) == /Game/Characters/Player/BP_PlayerCharacter [Blueprint] (1.2 MB) /Game/Environment/Meshes/SM_Wall [StaticMesh] (8.4 MB) ... Total dependencies: 47 == Referencers (what uses this asset) == /Game/Maps/TestMap/TestMap_Persistent [World] (2.1 MB) Total referencers: 1 ``` -------------------------------- ### Register External Tools with IClaireonToolProvider Source: https://github.com/believer-oss/claireon/blob/main/README.md C++ example showing how to implement the IClaireonToolProvider interface to contribute tools from another module. Providers are discovered at server start and dynamically at runtime; tools registered before server start are queued and flushed on startup. ```cpp #include "IClaireonToolProvider.h" #include "Tools/IClaireonTool.h" class FMyToolProvider : public IClaireonToolProvider { public: TArray> GetTools() const override; FName GetProviderName() const override { return TEXT("MyPlugin"); } }; // In your module's StartupModule(): IModularFeatures::Get().RegisterModularFeature(IClaireonToolProvider::FeatureName, &MyProvider); ``` -------------------------------- ### search_assets output format example Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Example output from the search_assets tool showing a numbered list of matching assets with package path, class, and disk size. ```text Found 3 assets matching "TestMap": 1. /Game/Maps/TestMap/TestMap_Main [World] (45.2 MB) 2. /Game/Maps/TestMap/TestMap_Lighting [World] (12.1 MB) 3. /Game/Data/TestMap_Config [DataAsset] (2.3 KB) ``` -------------------------------- ### Clone and install psd-rs Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Use these commands to clone the psd-rs repository from GitHub and install it. This is the fallback when the repo does not exist locally. ```bash git clone https://github.com/believer-oss/psd-rs.git cd psd-rs cargo install --path . ``` -------------------------------- ### Install psd-rs from local repo Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Use this command if the psd-rs repository already exists locally at ~/code/believer-oss/psd-rs. It installs the tool via cargo. ```bash cargo install --path ~/code/believer-oss/psd-rs ``` -------------------------------- ### Example output from execute_python_script Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Shows the plain text output format returned by the tool, listing asset paths. ```text /Game/Characters/Player/BP_PlayerCharacter /Game/Characters/Player/ABP_PlayerCharacter /Game/Characters/Enemies/BP_EnemyBase ... ``` -------------------------------- ### Display summary Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/begin-work.md Displays a summary of the new task setup. ```text ✓ New task started Task: Branch: llm/// Base: origin/main () Workspace: Saved/Claireon/Workflow// Changes: Ready for development ``` -------------------------------- ### get_asset_references example: immediate references Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Example JSON payload for the get_asset_references tool to get immediate references for a level. ```json { "asset_path": "/Game/Maps/TestMap/TestMap_Main" } ``` -------------------------------- ### Project directory structure for plugin installation Source: https://github.com/believer-oss/claireon/blob/main/README.md Shows the expected layout after cloning the repository into the Plugins folder. The plugin lives at the repository root. ```text YourProject/ Plugins/ Claireon/ Claireon.uplugin Source/ Content/ ... ``` -------------------------------- ### search_assets example: find assets under a folder Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Example JSON payload for the search_assets tool to find assets under /Game/Characters. ```json { "query": "Player", "path_filter": "/Game/Characters" } ``` -------------------------------- ### Example asset path conversion Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ResaveAssetsWithLoadErrors.md Example of converting a game path to a content path; the /Game prefix is kept as-is for the resave script. ```text /Game/Blueprints/BP_Example ``` -------------------------------- ### List of asset paths Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ResaveAssetsWithLoadErrors.md Example output listing the asset paths to be resaved. ```text - /Game/Blueprints/BP_Example - /Game/Audio/SoundCues/SC_Example ``` -------------------------------- ### Example JSON manifest output from psd-rs inspect Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Shows the structure of the JSON manifest output, including file metadata and layer details. The example includes a single background layer with bounds, size, and hierarchy fields. ```json { "file": { "width": 1920, "height": 1080, "depth": 8, "color_mode": "RGB" }, "layers": [ { "id": 0, "name": "Background", "kind": "pixel", "visible": true, "opacity": 255, "blend_mode": "Normal", "clipping": false, "bounds": { "top": 0, "left": 0, "bottom": 1080, "right": 1920 }, "size": { "width": 1920, "height": 1080 }, "parent_id": null, "children": [], "depth": 0, "z_index": 0 } ] } ``` -------------------------------- ### Example commit messages Source: https://github.com/believer-oss/claireon/blob/main/CONTRIBUTING.md Example commit messages following the conventional commit format. Each line shows a type, scope, and description. ```text feat(tools): add DataAsset inspection tool fix(server): handle malformed JSON-RPC requests gracefully refactor(session): simplify lock expiry cleanup ``` -------------------------------- ### get_asset_references example: recursive dependency tree Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Example JSON payload for the get_asset_references tool to get the full recursive dependency tree with depth_limit 3. ```json { "asset_path": "/Game/Maps/TestMap/TestMap_Main", "recursive": true, "depth_limit": 3 } ``` -------------------------------- ### Example log file content with LoadErrors lines Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ResaveAssetsWithLoadErrors.md Example log file content showing LoadErrors lines that the script processes. Each line contains a package path and a dependent package path. ```text LoadErrors: Warning: While trying to load package /Game/Blueprints/BP_Example, a dependent package /Game/Audio/Sounds/SC_OldSound was not available. LoadErrors: Warning: While trying to load package /Game/Blueprints/BP_Example, a dependent package /Game/Audio/Sounds/SC_OldSound was not available. LoadErrors: Warning: While trying to load package /Game/UI/Widgets/WBP_MainMenu, a dependent package /Game/UI/Textures/T_OldIcon was not available. ``` -------------------------------- ### Create 000-prompt-to-implement-thing.md implementation guide template Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/BreakDownWorkProposal.md Markdown template for the master prompt that tells an implementer how to execute the proposal stages. Placeholders like , $INPUT_PROPOSAL_FILE, and must be replaced. The stage summary table and scripts reference table are placeholders to be completed. ```markdown # Implementation Guide: ## Overview Brief description of what is being implemented and why. ## Source Proposal `$INPUT_PROPOSAL_FILE` — Read this first for full context. ## Branch The branch name will be recorded here after setup. - **Branch**: `` ## How to Follow the Stages 1. Read this document and the source proposal first 2. Execute stages in numerical order (001, 002, 003, ...) 3. Each stage is a self-contained document: `NNN-stage-name.md` 4. Follow every step in the stage document 5. Run the validation specified at the end of each stage 6. Commit when the stage document says to commit 7. Do not skip ahead — later stages depend on earlier ones ## Stage Summary | Stage | Name | Type | Description | |-------|------|------|-------------| | 001 | ... | Skeleton | ... | | 002 | ... | Test | ... | | ... | ... | ... | ... | ## Scripts Reference These scripts are available and should be invoked as specified in each stage: | Script | Purpose | Example | |--------|---------|---------| | `script-name` | ... | ... | ``` -------------------------------- ### Proposed Widget Structure Summary Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Example of the proposed widget structure summary to present to the user for approval before building. Shows the hierarchy of panels and widgets with layer names and bindings. ```plaintext Proposed Widget Structure for: WBP_PlayerHUD Source PSD: player_hud.psd (1920x1080) Root: CanvasPanel +-- IMG_Background (Image) — "background" layer, full-screen +-- VB_StatsPanel (VerticalBox) — "stats_panel" group | +-- TB_PlayerName (TextBlock) — "player_name" [BOUND: VM.PlayerName] | +-- TB_Score (TextBlock) — "score" [BOUND: VM.Score] +-- OVL_Portrait (Overlay) — "portrait_frame" group +-- IMG_PortraitFrame (Image) — "frame" layer [STATIC] +-- IMG_Portrait (Image) — "portrait" layer [BOUND: VM.Portrait] Textures to import: 3 (background, frame, portrait_placeholder) ViewModel: VM_PlayerHUD (new) - PlayerName: FText - Score: FText - Portrait: FSlateBrush ``` -------------------------------- ### Fetch and rebase onto latest main Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/workflow.md Fetches the latest main and starts an interactive rebase to squash all commits into one. Mark all commits except the first as 'squash'. ```bash git -C fetch origin main git -C rebase -i origin/main ``` -------------------------------- ### Tool naming convention examples Source: https://github.com/believer-oss/claireon/blob/main/CONTRIBUTING.md Examples of tool wire names following the _ convention. These names are composed from GetCategory() and GetOperation(). ```text bp_get_graph statetree_inspect datatable_add_row asset_search ``` -------------------------------- ### Discovering tools with tool_search Source: https://github.com/believer-oss/claireon/blob/main/README.md Example invocations of the tool_search tool to discover available tools. The MCP surface exposes two tools: tool_search and python_execute. ```text > tool_search blueprint > tool_search state tree > tool_search(tool_name="bp_apply_delta") # full detail for one tool ``` -------------------------------- ### Example execution output Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CleanupBranchesAfterMerge.md Shows the expected output of the cleanup script when run against a repository with four branches in different states: one rebased and pushed, one up-to-date, one fully merged and deleted, and one with conflicts requiring manual rebase. ```plaintext ✓ Fetched latest main (a1b2c3d) Found 4 branches to clean ✓ llm/arcmage404/worktree-1/auth-fixes: rebased onto main (removed 2 commits) ↑ Pushed to remote → llm/arcmage404/worktree-2/api-updates: already up-to-date → llm/arcmage404/worktree-3/ui-refactor: fully merged to main ✓ Deleted local branch ✗ llm/arcmage404/main-worktree/bug-fix: conflicts detected Conflicting files: src/auth.ts Manual rebase required: git checkout llm/arcmage404/main-worktree/bug-fix && git rebase origin/main ✓ Cleanup complete Cleaned and pushed: 1 - llm/arcmage404/worktree-1/auth-fixes (removed 2 commits) Deleted (fully merged): 1 - llm/arcmage404/worktree-3/ui-refactor Conflicts (manual rebase required): 1 - llm/arcmage404/main-worktree/bug-fix Already up-to-date: 1 Total branches processed: 4 ``` -------------------------------- ### Check psd-rs availability Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Run this command to verify whether psd-rs is installed. If the command is not found, the output will be empty and you should proceed to install it. ```bash which psd-rs || psd-rs --help ``` -------------------------------- ### Find an Asset and Get Its References Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Shows the three-step workflow for finding an asset by name and getting its reference graph. Use search_assets with a query and class filter, then get_asset_references with the returned path. The optional recursive call with depth_limit returns the full dependency tree. ```text Step 1: search_assets(query="TestMap", class_filter="World") -> /Game/Maps/TestMap/TestMap_Main Step 2: get_asset_references(asset_path="/Game/Maps/TestMap/TestMap_Main") -> Lists all dependencies and referencers Step 3 (optional): get_asset_references(asset_path="/Game/Maps/TestMap/TestMap_Main", recursive=true, depth_limit=2) -> Full recursive dependency tree ``` -------------------------------- ### Example squashed commit message Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/workflow.md Example squashed commit message following the required format: type(scope): description, optional body, and Co-Authored-By trailer. ```text feat(spawning): spawn system with wave management and point-based placement Co-Authored-By: {{MODEL_NAME}} ``` -------------------------------- ### search_assets example: find level by name Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Example JSON payload for the search_assets tool to find a level/map by name, using class_filter World. ```json { "query": "TestMap", "class_filter": "World" } ``` -------------------------------- ### search_assets example: find blueprints related to targeting Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Example JSON payload for the search_assets tool to find blueprints related to targeting, with max_results 20. ```json { "query": "Targeting", "class_filter": "Blueprint", "max_results": 20 } ``` -------------------------------- ### Example Execution of CheckDocumentationStaleness Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CheckDocumentationStaleness.md Shows the full interactive session of running the tool, including scanning, parsing metadata, checking file changes, generating a report, and prompting for updates. The output includes a table of documents with statuses and a prompt to select which stale document to update. ```text > Run CheckDocumentationStaleness Scanning Docs/ for HTML files... Found 2 documents (excluding index.html) Parsing DOC-TRACKING metadata... mvvm-resolver-breakdown.html — MVVM Resolver Pattern (2026-02-18) networking-overview.html — NO METADATA Checking referenced files for changes... MVVM Resolver Pattern: Source/MyModule/Private/UI/Crafting/CraftingDisplayWidget.cpp — 2 commits since 5940e48 Source/MyModule/Private/UI/Inventory/InventoryPanelWidget.cpp — no changes Documentation Staleness Report ============================== | Document | Status | Changed Files | Last Updated | |-----------------------|-------------|---------------|--------------| | MVVM Resolver Pattern | STALE | 1 | 2026-02-18 | | networking-overview | NO METADATA | — | — | 1 document is stale. Which would you like to update? [1] MVVM Resolver Pattern (1 changed file) [A] All stale documents [N] None (exit) > 1 Reading changed files... CraftingDisplayWidget.cpp: NativeConstruct was refactored to use Resolver pattern Proposed updates for "MVVM Resolver Pattern": - Section 6 "What the Project Does Today": Update crafting example to reflect new Resolver usage - Section 14 "Before & After": Mark crafting widget as migrated Apply these updates? (y/n) ``` -------------------------------- ### Implementing IClaireonTool in C++ Source: https://github.com/believer-oss/claireon/blob/main/README.md Example of a custom tool class implementing IClaireonTool. Must implement GetCategory(), GetOperation(), GetDescription(), GetInputSchema(), and Execute(). The tool name is automatically '_'. Register with the built-in provider in ClaireonModule.cpp or via a custom IClaireonToolProvider. ```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 GetInputSchema() const override { auto Schema = MakeShared(); Schema->SetStringField(TEXT("type"), TEXT("object")); // ... define properties return Schema; } FToolResult Execute(const TSharedPtr& Arguments) override { // Your implementation here auto Data = MakeShared(); Data->SetStringField(TEXT("result"), TEXT("success")); return MakeSuccessResult(Data, TEXT("Tool completed successfully")); } }; ``` -------------------------------- ### Documentation Staleness Report table Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CheckDocumentationStaleness.md Example output table showing document status, changed files count, and last updated date. Statuses: CURRENT, STALE, NO METADATA. ```text Documentation Staleness Report ============================== | Document | Status | Changed Files | Last Updated | |---------------------------|-------------|---------------|--------------| | MVVM Resolver Pattern | CURRENT | 0 | 2026-02-18 | | Some Other Doc | STALE | 3 | 2025-10-15 | | Untitled Doc | NO METADATA | — | — | ``` -------------------------------- ### Git cleanup pre-flight and branch identification commands Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CleanupBranchesAfterMerge.md Pre-flight checks and setup commands: verify repository status, capture user identifier, fetch latest main and remote branches, and list local branches for the current user. ```bash git status --porcelain ``` ```bash git config user.email | cut -d@ -f1 ``` ```bash git fetch origin main git fetch origin ``` ```bash git fetch --tags --prune ``` ```bash git branch --list "llm//*" ``` -------------------------------- ### Stage breakdown file naming pattern Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/sequencing.md Shows the recommended file naming pattern for stage breakdowns, with odd stages implementing and even stages testing, ending with final validation and a master guide. ```text 001-skeleton.md — Type framework: headers, stubs, module registration 002-test-skeleton.md — Verify skeleton compiles into a working editor 003-implement-.md — Fill out first functional area of the skeleton 004-test-.md — Test the first functional area 005-implement-.md — Fill out next functional area 006-test-.md — Test the next functional area ... NNN-final-validation.md — End-to-end validation of the complete implementation 000-prompt-to-implement-thing.md — Master guide for the implementer ``` -------------------------------- ### Run Complex Queries with Python (execute_python_script) Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Use execute_python_script to run arbitrary queries against the editor's API when search_assets or get_asset_references are not flexible enough. This example finds all blueprints that inherit from a specific class by filtering the asset registry with an ARFilter. ```python import unreal # Find all blueprints that inherit from a specific class registry = unreal.AssetRegistryHelpers.get_asset_registry() filter = unreal.ARFilter() filter.class_paths = [unreal.TopLevelAssetPath('/Script/Engine', 'Blueprint')] filter.recursive_paths = True filter.package_paths = ['/Game/Characters'] assets = registry.get_assets(filter) for asset in assets: print(f"{asset.asset_name} -> {asset.package_name}") ``` -------------------------------- ### Replace deprecated get_editor_world() with UnrealEditorSubsystem.get_game_world() Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/UnrealPythonPatterns.md Use this snippet to avoid the DeprecationWarning in UE 5.5+ when accessing the editor world. The correct approach uses get_editor_subsystem() to get the UnrealEditorSubsystem and then get_game_world(), which returns the PIE world during in-editor play and the editor world otherwise. ```python # WRONG (deprecated): world = unreal.EditorLevelLibrary.get_editor_world() # DeprecationWarning # CORRECT: subsystem = unreal.get_editor_subsystem(unreal.UnrealEditorSubsystem) world = subsystem.get_game_world() ``` -------------------------------- ### Load Blueprint-generated class with load_asset and generated_class() Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/UnrealPythonPatterns.md Use this snippet to load a Blueprint-generated class when unreal.load_class() returns None for paths with the _C suffix. Load the Blueprint asset without _C, call generated_class() to get the class, and then get_default_object(cls) to access the CDO for reading or setting default property values. ```python # WRONG — returns None for Blueprint-generated classes: cls = unreal.load_class(None, '/Game/Path/BP_Foo.BP_Foo_C') # returns None # CORRECT: bp = unreal.load_asset('/Game/Path/BP_Foo') cls = bp.generated_class() cdo = unreal.get_default_object(cls) ``` -------------------------------- ### get_asset_references example: hard references only Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Example JSON payload for the get_asset_references tool to get only hard references by disabling soft references. ```json { "asset_path": "/Game/Maps/TestMap/TestMap_Main", "include_soft_references": false } ``` -------------------------------- ### Author Master Prompt Template (000-prompt-to-implement-thing.md) Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/sequencing.md Template for the master prompt file `000-prompt-to-implement-thing.md`. It instructs an implementer (typically a Claude Code LLM) on how to execute the stages: read the source proposal, follow stages in order, run validations, commit at checkpoints, and use the project's commit format. Includes a stage summary table and a scripts reference for plugin-shipped utilities. ```markdown # Implementation Guide: ## Overview Brief description of what is being implemented and why. ## Source Proposal `$INPUT_PROPOSAL_FILE` — Read this first for full context. ## Branch and Workspace Created via [begin-work](claireon://instructions/begin-work). - **Branch**: `` - **Workspace**: `Saved/Claireon/Workflow//` ## How to Follow the Stages 1. Read this document and the source proposal first 2. Execute stages in numerical order (001, 002, 003, ...) 3. Each stage is a self-contained document: `NNN-stage-name.md` 4. Follow every step in the stage document 5. Run the validation specified at the end of each stage 6. Commit when the stage document says to commit 7. Do not skip ahead — later stages depend on earlier ones ## Stage Summary | Stage | Name | Type | Description | |-------|------|------|-------------| | 001 | ... | Skeleton | ... | | 002 | ... | Test | ... | | ... | ... | ... | ... | ## Scripts Reference These plugin-shipped scripts are available and should be invoked as specified in each stage: | Script | Purpose | Example | |--------|---------|---------| | `Plugins\Claireon\Scripts\Utilities\Invoke-EditorBuild.ps1` | Build the editor (waits for UBT by default) | `-SkipWaitForUBT` | | `Plugins\Claireon\Scripts\Utilities\Invoke-ValidateAssets.ps1` | Validate asset integrity | | | `Plugins\Claireon\Scripts\Utilities\Invoke-CleanProject.ps1` | Clean build artifacts | `-IncludePlugins` | | `Plugins\Claireon\Scripts\Utilities\Invoke-FixupRedirectors.ps1` | Fix asset redirectors | | Test runners, smoke tests, Blueprint-compile passes, and format checkers are project-specific — substitute your project's equivalents (e.g. `UnrealEditor-Cmd -run=CompileAllBlueprints`, clang-format in check mode). ## Tracking Work - Update `task-info.md` as work progresses (Changes, Open Questions, Notes sections) - Each test stage commit marks a checkpoint - If a stage fails validation, fix the issue before moving on — do not accumulate debt ## Commit Convention Follow the {{PROJECT_NAME}} commit message format: ``` (): ``` - **type**: `feat` (new functionality), `fix` (bug fix), `chore` (maintenance) - **scope**: Primary module affected - **CI trigger tags**: Do NOT include CI tags on stage commits. If your project uses one, it is added at staging time (Stage 8) on the squash-rebased commit - **description**: Terse, passive voice, no trailing period ``` -------------------------------- ### Build Commands for Claireon Plugin Source: https://github.com/believer-oss/claireon/blob/main/README.md Standard Unreal Engine build commands for generating project files and building the editor plugin. Use these in a terminal with your .uproject file. ```bash # Generate project files (if using a .uproject) UnrealBuildTool -projectfiles -project="YourProject.uproject" -game -engine # Build UnrealBuildTool YourProjectEditor Win64 Development -project="YourProject.uproject" ``` -------------------------------- ### Configure mcpServers.claireon in .mcp.json Source: https://github.com/believer-oss/claireon/blob/main/Content/Instructions/ConnectClaireon.md Add or replace the mcpServers.claireon entry in the project-root .mcp.json. Use publicPort from Saved/Claireon/MCPServer.json (fall back to port if publicPort is absent). Preserve all existing content and write valid JSON. ```json { "mcpServers": { "claireon": { "type": "http", "url": "http://127.0.0.1:/mcp" } } } ``` -------------------------------- ### Launch Unreal Editor with MCP server enabled Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Imports common utilities, finds the engine, and launches the editor with the MCP server enabled on port 8017. The script outputs the process ID and waits for the MCP server. ```powershell # Import common utilities Import-Module (Join-Path $ProjectDir "Plugins\Claireon\Scripts\Utilities\ClaireonCommon.psm1") -Force # Find the engine $Engine = Find-UnrealEngine -ProjectPath $ProjectPath # Launch with MCP server enabled $LaunchArgs = @( "`"$ProjectPath`"", "-StartMCPServer", "-MCPServerPort=8017", "-log" ) $EditorProcess = Start-Process -FilePath $Engine.EditorExe -ArgumentList $LaunchArgs -PassThru Write-Output "Editor launched (PID: $($EditorProcess.Id)). Waiting for MCP server..." ``` -------------------------------- ### Create parking branch and reset to origin/main Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/begin-work.md Creates a parking branch to free the worktree and resets it to origin/main. ```bash git -C checkout -b llm//-parking- git -C reset --hard origin/main ``` -------------------------------- ### Get git user email Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/begin-work.md Retrieves the git user email to derive the git user identifier. ```bash git -C config user.email ``` -------------------------------- ### Create task-info.md template Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/begin-work.md Template for the task-info.md file that records task metadata, goal, details, and notes. ```markdown # Task: Started: Branch: (set in Step 7) Workspace: Saved/Claireon/Workflow// ## Goal ## Details ## Changes ## Open Questions ## Notes ``` -------------------------------- ### Staging complete output Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/workflow.md Output shown after successful PR creation, summarizing branch, PR URL, workspace, and commit. ```text ✓ Staging Complete Branch: PR: Workspace: Saved/Claireon/Workflow// Commit: (): The squashed merge-ready commit has been pushed and the PR is open for human review. ``` -------------------------------- ### Get properties from a loaded asset Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Executes a Python script that loads an asset and prints its type and name using unreal.load_asset and get_name(). ```json { "script": "import unreal\nasset = unreal.load_asset('/Game/Data/DT_WeaponStats')\nprint(type(asset))\nprint(asset.get_name())" } ``` -------------------------------- ### Texture Naming Convention Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Naming convention for exported texture files: T_{WidgetBlueprintName}_{LayerName}.png. Examples show the pattern for different layers. ```plaintext T_{WidgetBlueprintName}_{LayerName}.png ``` ```plaintext T_PlayerHUD_Background.png T_PlayerHUD_PortraitFrame.png T_PlayerHUD_IconHealth.png ``` -------------------------------- ### launch_editor.json configuration for proxy launch_editor command Source: https://github.com/believer-oss/claireon/blob/main/README.md JSON configuration file that defines the command to launch the editor from the proxy. Placeholders are substituted per argument: {worktree_root}, {project_path}, {powershell}. skip_build_args is appended when skip_build is true. ```json { "command": ["{powershell}", "-NoProfile", "-File", "{worktree_root}/Scripts/LaunchEditor.ps1", "-ProjectPath", "{project_path}"], "skip_build_args": ["-SkipBuild"] } ``` -------------------------------- ### Fetch latest main Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/begin-work.md Fetches the latest main branch from origin. ```bash git -C fetch origin main ``` -------------------------------- ### Query actors in the current level Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Executes a Python script that gets all level actors using unreal.EditorLevelLibrary.get_all_level_actors() and prints the first 10 actors with their class names. ```json { "script": "import unreal\nactors = unreal.EditorLevelLibrary.get_all_level_actors()\nfor a in actors[:10]:\n print(f'{a.get_name()} ({a.get_class().get_name()})')" } ``` -------------------------------- ### Build a Reference Graph with Python Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Builds a custom reference graph by recursively traversing dependencies from a root asset. Uses the asset registry's get_dependencies method and filters to /Game/ paths. Prints node and edge counts and the first 50 edges. ```python import unreal def get_deps(package_name): registry = unreal.AssetRegistryHelpers.get_asset_registry() deps = registry.get_dependencies(package_name) return [str(d) for d in deps] root = '/Game/Maps/TestMap/TestMap_Main' visited = set() queue = [root] edges = [] while queue: current = queue.pop(0) if current in visited: continue visited.add(current) deps = get_deps(current) for dep in deps: if dep.startswith('/Game/'): edges.append((current, dep)) if dep not in visited: queue.append(dep) print(f"Nodes: {len(visited)}") print(f"Edges: {len(edges)}") for src, dst in edges[:50]: print(f" {src} -> {dst}") ``` -------------------------------- ### Blueprint Compilation Status Check Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/UnrealPythonPatterns.md Shows that compile_blueprint() returns None and that the status property is protected. Recommends using the MCP editor.blueprint.compile tool to get PASSED/FAILED with error details. ```python # compile_blueprint() returns None — no status check possible from Python: unreal.BlueprintEditorLibrary.compile_blueprint(bp) # returns None # bp.get_editor_property('status') # ERROR: protected # PREFERRED — use MCP tool which reads Blueprint->Status directly: # editor.blueprint.compile { contentPath: "/Game/Path" } # Returns PASSED/FAILED with error details per blueprint. ``` -------------------------------- ### Output summary Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CleanupBranchesAfterMerge.md Display the cleanup summary with counts of cleaned, deleted, conflicted, failed pushes, and up-to-date branches. ```text ✓ Cleanup complete Cleaned and pushed: - (removed N commits) - (removed N commits) - ... Deleted (fully merged): - - - ... Conflicts (manual rebase required): - - ... Push failed (remote updated): - - ... Already up-to-date: Total branches processed: ``` -------------------------------- ### Get Git Username Utility Script Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/push-branch.md Utility script that returns the username portion of git user.email (e.g., '' from 'you@example.com'). Used to generate the branch name. ```powershell Plugins\Claireon\Scripts\Utilities\Get-GitUsername.ps1 ``` -------------------------------- ### Use --flat flag for flat layer list Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Use the --flat flag to get a flat layer list without tree hierarchy information. This is useful when you only need a simple list of layers. ```bash psd-rs inspect /path/to/design.psd --flat ``` -------------------------------- ### MeshSelectorParameters.MeshEntries struct literal with weights Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/pcg-authoring.md Use this struct literal to define weighted mesh entries for a mesh selector. The example shows a single entry with a StaticMesh reference and a weight of 3, with ellipsis indicating additional entries. ```plaintext MeshSelectorParameters.MeshEntries = ((Descriptor=(StaticMesh="/Game/.../SM_X.SM_X"),Weight=3),(...)) ``` -------------------------------- ### List assets in a directory Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Executes a Python script that lists assets in the '/Game/Characters' directory using unreal.EditorAssetLibrary.list_assets. The script prints the first 20 asset paths. ```json { "script": "import unreal\nassets = unreal.EditorAssetLibrary.list_assets('/Game/Characters', recursive=True)\nfor a in assets[:20]:\n print(a)" } ``` -------------------------------- ### Suggest follow-up actions for conflicts Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CleanupBranchesAfterMerge.md Commands to manually resolve conflicts after a failed rebase. ```bash git checkout git rebase origin/main # Resolve conflicts git rebase --continue git push --force-with-lease origin ``` -------------------------------- ### Export Individual Layers as PNGs Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Command to export specific layers as separate PNG files using psd-rs export. Use --each-layer to get one file per layer and --layer-relative to crop to layer bounds. ```bash psd-rs export /path/to/design.psd --layers "background,frame,portrait" --each-layer --layer-relative -o /path/to/export/ ``` -------------------------------- ### Stage all changes Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/begin-work.md Stages all uncommitted changes in the repository. ```bash git -C add -A ``` -------------------------------- ### Suggest follow-up actions for failed pushes Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CleanupBranchesAfterMerge.md Commands to retry failed pushes after fetching. ```bash git fetch origin git push --force-with-lease origin ``` -------------------------------- ### Output summary information Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ResetWorktreeToMain.md Displays the parking branch name, current commit, and readiness for new work. ```text Worktree reset to main Parking branch: (local only, do not push) Now at: Ready for new work ``` -------------------------------- ### Stage transition prompt Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/workflow.md Prompt shown before every stage transition unless auto_advance is true. Presents the current stage and next action, asking the user to proceed. ```text 📍 Current stage: ⏭️ Next action: Proceed? ``` -------------------------------- ### Repository Architecture Directory Tree Source: https://github.com/believer-oss/claireon/blob/main/README.md Shows the top-level directory layout of the Claireon repository, including Source, Content, and Resources directories. Useful for understanding where modules, tools, tests, Python proxy, and models reside. ```text / 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) ``` -------------------------------- ### PCGAttributeRemapSettings: remap SpatialNoise output to real amplitude Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/pcg-authoring.md Use this remap to convert the normalised 0..1 output of SpatialNoise into a meaningful amplitude range, since Brightness and Contrast are no-ops. The example maps 0..1 to -4500..4500. ```plaintext PCGAttributeRemapSettings: InRange 0..1 -> OutRange -4500..4500 ``` -------------------------------- ### Open an existing Widget Blueprint Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Opens an existing Widget Blueprint at the specified asset path. Returns a session_id for subsequent operations. ```json { "operation": "open", "asset_path": "/Game/UI/Widgets/WBP_PlayerHUD" } ``` -------------------------------- ### Chained member access on UE Python struct getter returns zero Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/pcg-authoring.md Accessing a struct member directly from a getter call returns 0.0 because the temporary struct is collected before the member read. Assign the struct to a variable first to get the correct value. The tell is repeated struct addresses across loop iterations. ```python comp.get_instance_transform(i, True).translation.z # 0.0, always t = comp.get_instance_transform(i, True) tr = t.translation float(tr.z) # correct ``` -------------------------------- ### Import PNG with claireon.asset.import_file Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md JSON configuration for importing a texture file. Requires `source_path` and `destination_path`; `asset_name` defaults to filename without extension, `overwrite` defaults to false. The tool configures Texture2D with no mipmaps, TEXTUREGROUP_UI, and sRGB enabled. ```json { "source_path": "/absolute/path/to/T_PlayerHUD_Background.png", "destination_path": "/Game/UI/Textures/PlayerHUD/", "asset_name": "T_PlayerHUD_Background", "overwrite": true } ``` -------------------------------- ### Verify widget tree with claireon.widgetbp_get_tree Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Inspects the final widget tree with optional property and binding inclusion flags. ```json { "asset_path": "/Game/UI/Widgets/WBP_PlayerHUD", "include_properties": true, "include_bindings": true, "include_mvvm_bindings": true } ``` -------------------------------- ### Compile and save the Widget Blueprint Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Compiles the blueprint and then saves it. Both operations require the session_id. ```json { "operation": "compile", "session_id": "" } ``` ```json { "operation": "save", "session_id": "" } ``` -------------------------------- ### Run a bulk operation Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/ConnectToUnrealEditorMCP.md Executes a Python script that uses the asset registry to find all World assets and prints their package names. ```json { "script": "import unreal\nasset_reg = unreal.AssetRegistryHelpers.get_asset_registry()\nfilter = unreal.ARFilter()\nfilter.class_paths = [unreal.TopLevelAssetPath('/Script/Engine', 'World')]\nassets = asset_reg.get_assets(filter)\nfor a in assets:\n print(a.package_name)" } ``` -------------------------------- ### Return to original branch Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CleanupBranchesAfterMerge.md Checkout the original branch. If it fails, output a warning and the current branch. ```bash git checkout ``` -------------------------------- ### Stage Document Template (Markdown) Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/sequencing.md Template for authoring stage documents in the Claireon project. Use this structure for each stage, including the final validation stage which must add a code-reading checklist, verify no test artifacts remain, and include a Blueprint compilation check. Commit messages must follow the conventional format and must not include CI trigger tags. ```markdown # Stage NNN: ## Goal One-sentence description of what this stage accomplishes. ## Prerequisites - List stages that must be completed first (e.g., "Stage 001 completed and committed") - Any tools or editor state required ## Inputs - Files, assets, or data this stage reads or depends on ## Steps ### Step 1: Detailed instructions the implementer follows. Include exact file paths, class names, and code patterns where possible. ### Step 2: ... ## Outputs - Files created or modified - Expected state after completion ## Validation How to verify this stage succeeded before moving on. Reference the appropriate script(s): - **Build check**: `Plugins\Claireon\Scripts\Utilities\Invoke-EditorBuild.ps1` - **Unit tests**: Your project's automation test runner with a relevant filter - **Blueprint compile**: e.g. `UnrealEditor-Cmd -run=CompileAllBlueprints` - **Asset validation**: `Plugins\Claireon\Scripts\Utilities\Invoke-ValidateAssets.ps1` - **Smoke test**: Your project's build + PIE smoke test - **Format check**: clang-format in check mode on changed files - **Diff regex**: Quick grep/regex on staged diffs for non-compile stages For the **final validation stage** (the last test stage in the breakdown), also include: - A code-reading checklist of architectural properties that runtime tests cannot catch: memory safety patterns, lock discipline (acquire/release/touch), transaction scoping, null-safety on weak pointers, TODO comment cleanup, API contract compliance - Verification that no test artifacts remain in the working tree - A Blueprint compilation check to catch dependency-related breakage ## Commit Commit message for this stage (only for test stages or stages that produce committed work): ``` (): ``` Note: Do NOT include CI trigger tags (e.g. `[ci]`) on stage commits. If your project uses one, it is added at staging time (Stage 8) on the squash-rebased commit. ## Notes Any caveats, known issues, or things the implementer should watch for. ``` -------------------------------- ### Add a root widget (CanvasPanel) Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Adds a root widget to the blueprint. Requires session_id and returns the created widget's name. ```json { "operation": "add_widget", "session_id": "", "widget_class": "CanvasPanel", "widget_name": "RootCanvas" } ``` -------------------------------- ### Create task workspace directory Source: https://github.com/believer-oss/claireon/blob/main/Content/MCP/Instructions/begin-work.md Creates the local workspace directory for the task. A PowerShell alternative is provided for Windows. ```bash mkdir -p Saved/Claireon/Workflow/ ``` ```powershell New-Item -ItemType Directory -Force "Saved/Claireon/Workflow/" ``` -------------------------------- ### Create a new Widget Blueprint Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Creates a new Widget Blueprint at the specified asset path. Returns a session_id for subsequent operations. ```json { "operation": "create", "asset_path": "/Game/UI/Widgets/WBP_PlayerHUD" } ``` -------------------------------- ### Run psd-rs inspect to generate JSON manifest Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/PSD-to-UMG-Workflow.md Use this command to inspect a PSD file and output a JSON manifest to stdout. The output includes file dimensions, layer properties, and hierarchy. This is the first step in the analysis phase. ```bash psd-rs inspect /path/to/design.psd ``` -------------------------------- ### Full CSS for property table and detail panel Source: https://github.com/believer-oss/claireon/blob/main/Scripts/Instructions/CreateInteractiveArchitecture.md Copy verbatim. Defines .prop-table styling for a property table with monospace name/type columns and status badges (.field-notify, .derived), plus .detail-panel with a fadeIn animation and an .active state that toggles display from none to block. ```css .prop-table { width: 100%; border-collapse: collapse; font-size: 12px; } .prop-table th { text-align: left; padding: 4px 8px; color: var(--text-dim); border-bottom: 1px solid var(--border); font-weight: 500; } .prop-table td { padding: 4px 8px; border-bottom: 1px solid rgba(48,54,61,0.5); vertical-align: top; } .prop-table .prop-name { color: var(--cyan); font-family: 'Cascadia Code', 'Consolas', monospace; } .prop-table .prop-type { color: var(--purple); font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 11px; } .prop-table .prop-note { color: var(--text-dim); font-size: 11px; } .prop-table .field-notify { color: var(--green); font-size: 10px; font-weight: 600; } .prop-table .derived { color: var(--orange); font-size: 10px; font-weight: 600; } .detail-panel { display: none; animation: fadeIn 0.2s ease; } .detail-panel.active { display: block; } .detail-title { font-size: 16px; margin-bottom: 8px; color: var(--text-primary); font-weight: 600; } .detail-body { font-size: 13px; line-height: 1.6; color: var(--text-primary); } ```