Log inGet started
What it does

mcp_log_window

Top-right floating "MCP" window (zui) that hosts the MCP tool-call log. Wraps mcp_log_ui with its own screen lifecycle — registers via ui.registerScreen, throttles repaints to every 100 ms, and exposes a movable / resizable window pinned to the top-right by default.

Unlike system_tools, this window is a dedicated stand-alone screen rather than a tab host, and uses a fixed screen_id (default "mcp-log-window") so external ui.hideScreen callers keep working.

Exports

  • M.createState(opts: MountOpts?) -> McpLogWindowState — build the initial state table from mount opts. Useful for rehydration without going through the full mount flow.
  • M.mount(opts: MountOpts?) -> McpLogWindowHandle — register the window, return a handle whose update / onCallback / destroy the caller drives per frame.

Types:

  • MountOpts = { title: string?, width: number?, height: number?, screen_id: string? }
  • McpLogWindowState = { title: string, width: number, height: number }
  • McpLogWindowHandle = { state: McpLogWindowState, update: (dt) -> (), onCallback: (id, data) -> boolean, destroy: () -> () }

Usage

local McpLogWindow = require("@builtin::modules.engine.editor.mcp_log_window")

local handle = McpLogWindow.mount({ title = "Agent" })

-- In your component:
function update(dt) handle.update(dt) end
function onCallback(id, data) return handle.onCallback(id, data) end
function onDestroy() handle.destroy() end

Notes

  • Repaints are throttled to MIN_UPDATE_INTERVAL (100 ms) but flush immediately on user interaction so toolbar clicks feel responsive.
  • The hosting component owns the screen lifecycle (destroy calls ui.unregisterScreen); leaving a session without calling destroy leaks a screen registration.
  • Window position defaults to the top-right via getViewportSize, falling back to 1600x900 if the FFI binding is absent.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

This asset doesn't declare a schema or structured payload.

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

0items
This part has no composite children. See the Files segment for its leaf payloads.
This part has no leaf payloads.

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.