@effect/ui-devtools, the inspector for Effect UI component messages and models. It is not a general-purpose Effect fiber debugger or a SwiftUI view inspector. Start in read-only mode; you don’t need an MCP client to see the timeline.0.2.1), run bun run devtools in one terminal and EFFECT_APPKIT_DEVTOOLS=inspect bun run demo:workspace in another. The server defaults to 127.0.0.1:4774. No dispatch permission is needed./TravelNotebook/TaskQueue[]/TaskRow[hut]. Pick the same checkbox in the itinerary and its parent is DocumentReader[] instead.taskID: "hut". Picked native control describes the control at pick time; pick again to refresh it.EffectAppKit, bundle your component with the matching effect-appkit adapter, and mount it using EffectAppKitView or EffectAppKitSurface. Start the matching DevTools server (this repo’s bun run devtools starts the pinned version). In Xcode, set EFFECT_APPKIT_DEVTOOLS=inspect in the Debug Run scheme. The library adds the launcher and resolves the picked control to its mounted Effect instance; the app does not register a second inspector or draw its own panel.package.json includes the devtools script. The server requires Node (the project’s CI uses Node 24). From the repository root, not docs/, start the server:12bun install --frozen-lockfile --ignore-scripts bun run devtools
12bun run bundle:counter EFFECT_APPKIT_DEVTOOLS=inspect swift run EffectCounter dist/counter.js
Count message and the model’s count changing from 0 to 1. Only the embedded panel can point at controls in the Mac window. Read-only MCP clients can also use list_sessions, list_instances, and get_state at http://127.0.0.1:4774/mcp.12# Terminal 1 bun run devtools --dispatch
12# Terminal 2, using the counter bundle built above EFFECT_APPKIT_DEVTOOLS=dispatch swift run EffectCounter dist/counter.js
http://127.0.0.1:4774/mcp (the URL without /mcp is the human-readable timeline).list_sessions and choose the connected, controllable Counter session. Pass its session to list_instances; use the numeric instance at path /Counter. Don’t reuse IDs from an earlier launch.get_message_schema with that session and instance. This is the root component’s message schema, not a list of native controls.dispatch with the same identifiers and this messages array:12345[ { "_tag": "ChangeStep", "position": 1 }, { "_tag": "ChangeDirection", "down": true }, { "_tag": "Count" } ]
get_state on the same instance. Its model should be { "count": -10, "step": 10, "down": true }, and the native button should read Count: -10. A slider position of 1 selects the maximum step of 10. No simulated clicks or Accessibility permission are involved.EFFECT_APPKIT_DEVTOOLS under Edit Scheme → Run → Arguments → Environment Variables for the Debug app. A sandboxed app needs Outgoing Connections (Client) even for loopback. No component changes are required; rebuild the app’s JavaScript bundle with the DevTools-capable renderer.--port 4880, set EFFECT_APPKIT_DEVTOOLS_PORT=4880 alongside the app’s mode, and update the timeline and MCP URLs to match. The native client connects only to 127.0.0.1.--dispatch on the server and EFFECT_APPKIT_DEVTOOLS=dispatch on the app. Release builds install no inspector. Rebuild Swift and the JS bundle together.get_message_schema and dispatch resolve the live instance number, including a keyed child. A removed child is rejected, never redirected to a sibling or root. Every message in a batch is decoded before the first is sent. Dispatch can run real commands; it does not type or click.find_instances accepts a native element tag (button), *, #identifier, label=Step size or text=Count: 0. Matches are exact, within this surface, in render order. text= checks displayed button titles and noneditable labels only. Replies include at most 20 matches and their instance metadata, never the displayed text. CSS selectors and SwiftUI's internal view tree are not supported. To pick locally, Option–Shift–click a rendered control. get_picked identifies its owning instance without activating it. A native subview inside a custom leaf identifies the leaf's Effect owner, not a SwiftUI component.show_entry displays an inert native drawing for a retained completed render. Look for History #… above it. The live model and commands continue behind it; resume or Resume live view reveals their latest result. This does not rewind effects or restore focus, unsaved text, scroll offsets or Swift-local state from history. The drawing preserves text, titles, checkbox/slider values and structural containers (stack, row, grid, split, scroll and material). A desktop draws its content without installing window chrome. Fields, collections and custom widgets are labeled and reported in skipped, not recreated from private state. At most 64 semantic drawings (1 MiB total) are retained locally; oversized trees and intermediate entries in one flush have no drawing. No screen frames are recorded or sent.set_recording filters future entries by message tag on server 82a1750; the dec1ca9 request additionally accepts a component and/or an instance subtree. Criteria in a rule are ANDed. This is a timeline filter, not a privacy control: subsequent models include their current data. Use Schema.Redacted, and don't put secrets in paths, subscription keys or exception strings. Recording choices apply to this connection only.secureField masks what AppKit draws; it does not automatically redact an application's message or model schema. Wrap the edit in Redacted.make(value) at the handler, use Schema.Redacted(Schema.String) in both schemas, and unwrap only when supplying the native field's value. find_instances can locate the field by identifier or accessible label, never by its contents.terminal); controllable describes the socket, not browser/pixel/AX automation. Child control uses the same live find and dispatch hooks as the pinned BrowserHost; generic Renderer.Root doesn't publicly type those hooks. Missing hooks disable controls, not logging. The browser-only DOM paint and picker aren't used..product(name: "EffectAppKitTesting", package: "effect-appkit") to the Swift test target, mount a real bundle in an EffectAppKitView attached to an NSWindow, and run on the main actor:123456let driver = NativeTestDriver(root: surface) try driver.press(.init(role: .button, label: "Count: 0")) let next = NativeLocator(role: .button, label: "Count: 1") try await driver.waitFor(next) let buttonFrame = try driver.frameInWindow(of: next) // points in the NSWindow let controlPNG = try driver.screenshotPNG(of: next) // native view, not the desktop
focus, isFocused and insertText(_:into:) to work with the real first responder and field editor. id accepts an accessibility identifier or NSView.identifier. Locators require a unique visible match. For a TypeScript-authored test plan, import nativeFixture from effect-appkit/testing, emit its JSON at build time, then try await driver.runFixture(data) in the host test. See Tests/counter.native.ts and NativeDriverTests. This is native target/action and text-system input, not hardware injection, screen recording, model dispatch, or a remote execution API; no DevTools connection is needed.