1. Conduid
  2. Commerce
  3. Devtools
MCP server · Commerce

Devtools

MCP server exposing Foldkit DevTools to AI agents (Claude Code, Cursor, etc.)

91Strong

Scored 21 hours ago · breakdown

About Devtools

Devtools is an MCP server published by foldkit in the Commerce category: mCP server exposing Foldkit DevTools to AI agents (Claude Code, Cursor, etc.). Conduid read 15 tools from its source: foldkit_count_messages_by_tag, foldkit_diff_models, foldkit_dispatch_message, foldkit_dispatch_messages, foldkit_get_init, foldkit_get_message and 9 more. It is published to npm as @foldkit/devtools-mcp and starts with npx.

The foldkit/foldkit monorepo this package is published from has 1.3K stars and 80 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is @foldkit/vite-plugin@0.29.1 (17 Nov 2026): Patch Changes 1899 2d944db Thanks @wmaurer. It follows @foldkit/ui@0.171.0 (17 Nov 2026), and the 5 most recent releases go back to @foldkit/devtools@0.171.0 (17 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include foldkit and devtools.

Install

Claude Code
claude mcp add devtools-16af -- npx -y @foldkit/devtools-mcp
npx
npx -y @foldkit/devtools-mcp
From source
git clone https://github.com/foldkit/foldkit

Tools (15)

foldkit_count_messages_by_tagCount retained Message history entries by tag, without payloads. Returns `{ counts: [{ tag, count }], totalCount, scannedFromIndex, scannedToIndex }` sorted by count descending. A cheap reconnaissance call before paging through history: it surfaces the high-frequency Messages worth filtering out, and with `changed_paths_match` it answers which Message tags touch a Model subtree. Accepts the same `since_index`/`changed_paths_match` filters as foldkit_list_messages.
foldkit_diff_modelsDiff the Models at two history indices server-side. Returns path-level changes `{ path, before, after }` sorted by path (numeric segments in numeric order), with values summarized. Each side is `{ _tag: 'Present', value }`, or `{ _tag: 'Absent' }` when the path does not exist on that side (a key or element that was added or removed). `from_index`/`to_index` follow foldkit_get_model_at semantics: the Model right after that entry was applied, with -1 for the initial Model. Pass `changed_paths_match` to narrow the diff to a Model subtree. Far cheaper than fetching two snapshots and diffing client-side; follow up with foldkit_get_model_at plus `path`/`expand: true` to read a changed subtree at full fidelity.
foldkit_dispatch_messageDispatch a Message into a Foldkit runtime, as if the application itself produced it. Requires the runtime to have configured DevToolsConfig.Message; without it, dispatch is rejected. Call `foldkit_get_message_schema` with no arguments to enumerate the variants, then with `variant_tag` to learn one variant's exact payload shape, before constructing the Message object. The runtime decodes the payload and returns a clean error if it doesn't match. To dispatch several Messages in order with one call, use foldkit_dispatch_messages.
foldkit_dispatch_messagesDispatch an ordered batch of Messages into a Foldkit runtime in one call, first to last, as if the application produced them in quick succession. Prefer this over repeated foldkit_dispatch_message calls when staging state that takes several Messages: reproducing a bug, filling a form, or building a history fixture. Takes 1 to ${MAX_DISPATCH_BATCH_SIZE} Messages. Validation is all-or-nothing: the runtime decodes every payload against the Message Schema before dispatching any of them, and one invalid entry rejects the whole batch with an error naming its zero-based position, so there is never a partially applied prefix to clean up. On success the response carries acceptedAtIndices, the predicted history index for each Message in request order; the runtime may still record its own Messages between entries (for example a Command completing mid-burst), exactly as with rapid user input, and Messages excluded from history via excludeFromHistory are dispatched but never recorded, so entries after one land below their predicted index. Requires DevToolsConfig.Message, like foldkit_dispatch_message.
foldkit_get_initRead the runtime's initial Model, the Commands returned from the application's `init` function, and the Mounts that fired during the first render. The init entry is the synthetic row at index -1 in the DevTools panel; this tool exposes the same data without time-travelling the runtime. `maybeModel` is `None` until the runtime has finished its first render and recorded init, then stays `Some` for the rest of the runtime's life. `commands` lists init-time Commands in the order they were produced, each with its name, `args` (`Some(record)` when the Command declared an args schema, `None` otherwise), and `maybeSubmodelPath` (`None` before the result resolves, `Some([])` for a resolved top-level Command, or `Some(tags)` for a resolved Submodel Command); `mountStarts` lists Mounts whose elements appeared in the initial render, each with its name and `args` (`Some(record)` when the Mount declared an args schema, `None` otherwise).
foldkit_get_messageRead a single Message history entry by absolute index. The response carries the SerializedEntry (tag, message body, commands, mountStarts, mountEnds, timestamp, `isModelChanged`, `changedPaths` for leaf-level mutations, `affectedPaths` adding their ancestor paths). Each entry in `commands` carries the Command name, `args` (`Some(record)` when the Command declared an args schema, `None` otherwise), and `maybeSubmodelPath` (`None` before the result resolves, `Some([])` for a resolved top-level Command, or `Some(tags)` for a resolved Submodel Command). `mountStarts` lists Mounts that fired during the render after this Message; `mountEnds` lists Mounts whose elements were unmounted during that render. Each Mount carries its `name` and `args` (`Some(record)` when the Mount declared an args schema, `None` otherwise). For Submodel-routed entries (tag matches `Got*Message`), the entry also carries `submodelPath` listing wrapper tags from outer to inner and `maybeLeafTag` naming the innermost child Message. Model snapshots are not included; call foldkit_get_model_at with `index - 1` (before) and `index` (after) to inspect Model state around the entry.
foldkit_get_message_schemaDescribe the Message Schema for a Foldkit runtime so agents can construct valid payloads for `foldkit_dispatch_message`. Call with no arguments to receive a small variant index (every top-level variant's `_tag`, its payload field names, and which payload fields are themselves tagged-union shapes). Then call with `variant_tag: "ChosenVariant"` to drill in. The argument is a dot-separated path of variant `_tag` values: each segment names a variant, and the walker steps through the variant's single tagged-union payload field to reach the next. So `"GotMobileMenuDialogMessage"` narrows one level; `"GotMobileMenuDialogMessage.GotAnimationMessage"` narrows two levels of a Submodel chain. Discriminated unions deeper than the supplied path collapse to `{ "_summary": "union", "variants": [...] }` placeholders so the response stays compact even for deeply-nested apps; extend the path to drill further. `Schema.Option` fields render as `anyOf: [{_tag: "Some", value}, {_tag: "None"}]`. The full document follows the JSON Schema draft-2020-12 shape from `Schema.toJsonSchemaDocument`: `{ dialect, schema, definitions }`. Returns `maybeResult: None` when the runtime hasn't configured `DevToolsConfig.Message` (dispatch is also unavailable). Fields with no JSON representation, notably `Schema.instanceOf(File)` for user-uploaded files, render as `{type: "null"}`; those variants can't be dispatched via MCP because their values live in browser memory.
foldkit_get_modelSnapshot the current Model from a connected Foldkit runtime. By default the response is summarized (large arrays/records/strings collapse to `_summary` placeholders) to keep payloads small for AI agents. Pass `path` (e.g. 'root.session.user') to narrow to a subtree, and `expand: true` to receive the literal value at that path. Returns `{ value, atPath, summarized }`.
foldkit_get_model_atSnapshot a historical Model after a given history entry was applied. Pass `index: N - 1` to read the Model just before message N. Same `path`/`expand` semantics as foldkit_get_model. Indices outside the retained history range (older entries are evicted past the rolling buffer) are rejected with the readable range. For the initial Model (and the names of Commands returned from the application's `init`), use foldkit_get_init.
foldkit_get_runtime_stateSnapshot the runtime's DevTools state: history bounds, current paused/live status, and whether init is recorded. Returns `currentIndex` (the absolute index of the most recent Message, or -1 when none), `startIndex` (the earliest absolute index still retained in the rolling buffer), `totalEntries` (count of retained entries), `isPaused`, `maybePausedAtIndex` (`Some(index)` when paused, `None` otherwise), and `hasInitModel`. Use it to reason about what `foldkit_list_messages` and `foldkit_get_message` will see, and to detect whether the runtime is currently paused at a replayed snapshot.
foldkit_list_keyframesList the available keyframes (replayable Model snapshots) from a Foldkit runtime.
foldkit_list_messagesList Message history entries from a Foldkit runtime. Filter server-side with `changed_paths_match` to ask in Model terms (which Messages touched this subtree), read the most recent entries with `from_end: true`, and paginate forward via `since_index` using the returned `maybeNextIndex` (the absolute index of the next matching entry). On busy histories (drag, scroll, keystroke flows), call foldkit_count_messages_by_tag first to learn what is worth filtering.
foldkit_list_runtimesList Foldkit runtimes (browser tabs) connected to every Foldkit dev server under the project root, or else to every dev server at the nearest root that encloses the project root, oldest dev server first. Each runtime carries `projectRoot`, the root of the dev server it belongs to, unless the MCP server uses a fixed relay address.
foldkit_replay_to_keyframeTime-travel a Foldkit runtime back to a previous Model snapshot. Pass `keyframe_index: -1` for the initial Model, or a non-negative index for the state right after that history entry. The runtime is paused at the snapshot until foldkit_resume is called.
foldkit_resumeResume normal execution of a Foldkit runtime that was paused by foldkit_replay_to_keyframe.

Security checks

From the foldkit/foldkit monorepo, not this package alone.

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 647 words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml and 2 more.
  • !No dynamic code executionScanned 2.3K source files and found 3 calls to eval or shell execution, in packages/website/src/search/pagefind.ts, repos/effect/packages/effect/src/http-api/internal/httpApiScalar.ts and repos/effect/packages/effect/src/process/ChildProcess.ts. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

Releases

From the foldkit/foldkit monorepo.

@foldkit/vite-plugin@0.29.1@foldkit/vite-plugin@0.29.1 · 17 Nov 2026Patch Changes 1899 `2d944db` Thanks @wmaurer! - Prevent DevTools stack overflows when inspecting Models or Messages containing Effect `Chunk` or `BigDecimal` values. Chunks display as arrays of their converted elements, and BigDecimals…
@foldkit/ui@0.171.0@foldkit/ui@0.171.0 · 17 Nov 2026Patch Changes Rebuild with the release's shared tooling configuration so the published packages and website use the same build inputs.
@foldkit/markdown@0.15.1@foldkit/markdown@0.15.1 · 17 Nov 2026Patch Changes Rebuild with the release's shared tooling configuration so the published packages and website use the same build inputs.
foldkit@0.171.0foldkit@0.171.0 · 17 Nov 2026Minor Changes 1864 `f0784d8` Thanks @austeane! - Add `disposeAsync` to the `EmbedHandle` returned by `Runtime.embed`. It starts shutdown and returns a Promise that resolves after the runtime scope has closed and the original container has…
@foldkit/devtools@0.171.0@foldkit/devtools@0.171.0 · 17 Nov 2026Patch Changes Rebuild with the release's shared tooling configuration so the published packages and website use the same build inputs.

README

The repository's README runs to about 647 words, fetched 4 days ago. The original in the repository is authoritative.

Read full README
Questions

About Devtools

How do I install Devtools?

In Claude Code, run claude mcp add devtools-16af -- npx -y @foldkit/devtools-mcp. Other MCP clients take the command after "--" in their server configuration.

Is Devtools safe to use with an AI agent?

Its trust score is 91 out of 100 (strong). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Devtools still maintained?

Yes — the latest release in the foldkit/foldkit monorepo is @foldkit/vite-plugin@0.29.1 (17 Nov 2026), and the last commit was 2 days ago. The foldkit/foldkit monorepo has 1.3K stars and 427 open issues.

What tools does Devtools provide?

Conduid read 15 tools from the source: foldkit_count_messages_by_tag, foldkit_diff_models, foldkit_dispatch_message, foldkit_dispatch_messages, foldkit_get_init, foldkit_get_message, foldkit_get_message_schema, foldkit_get_model and 7 more.

What license is Devtools released under?

The repository declares the MIT license. That applies to the latest release, @foldkit/vite-plugin@0.29.1, as well.