Skip to content

docs(spec): Unreal Code Mode proposal (replacement for per-tool Unreal MCP) - #3

Draft
ABostrom wants to merge 1 commit into
mainfrom
ccr-f5935a2b-x0pq34
Draft

ABostrom wants to merge 1 commit into
mainfrom
ccr-f5935a2b-x0pq34

Conversation

@ABostrom

Copy link
Copy Markdown
Owner

Summary

Adds docs/superpowers/specs/2026-10-22-unreal-code-mode-proposal.md. It proposes replacing per-tool Unreal MCP servers with a Code Mode design, modelled on Cloudflare's Code Mode and Anthropic's "code execution with MCP": Claude writes one Python script against the editor's unreal module, and a thin bridge runs it and returns a capped JSON result.

The proposal covers:

  • Problem (§2): seven ways per-tool MCP breaks down, made worse by Unreal: tool explosion, a round trip per step, expensive game-thread calls, partial failure, context-flooding results, version drift, and no way to do anything the server author didn't foresee.
  • Architecture (§5–6): a stdlib-only ucode CLI with live (Python remote execution) and headless (-run=pythonscript, routed through ushell .run commandlet) transports, a ucode_rt prelude, and a capped JSON envelope that spills large results to disk.
  • Discovery (§7): an API index generated from the engine's own developer-mode stub plus live reflection, so project-specific classes can be found and nothing drifts from the user's engine version.
  • Guardrails (§8), since there is no sandbox: AST lint, query→apply two-phase runs on the same file, transactions, source-control checkout before save, --scratch headless runs, and an audit trail.
  • A new unreal-code skill (§9) alongside ushell, with a clear split: ushell handles everything outside the editor, unreal-code everything inside it.
  • TDD plan (§11): seven RED/GREEN scenarios, plus a comparison against a per-tool MCP server to back the proposal with numbers.
  • Engine facts to verify (§14): anything that still needs a citation from the E:\UE_5.7 tree before implementation.

This PR is the spec only. There is no implementation yet.


Generated by Claude Code

…real MCP

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012WboUfAmCmr77L976yonrE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants