@foldkit/devtools-mcp 0.20.0-canary.a5f7ce8dd039 → 0.20.0-canary.b58e60279bcc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.js +5 -4
- package/dist/tools.js +2 -2
- package/package.json +3 -3
package/dist/server.js
CHANGED
|
@@ -30735,10 +30735,11 @@ function defineTaggedUnion(casesByTag) {
|
|
|
30735
30735
|
}
|
|
30736
30736
|
//#endregion
|
|
30737
30737
|
//#region ../foldkit/src/devTools/protocol.ts
|
|
30738
|
-
/** A serialized Command produced during a Message dispatch (or `init`). `args` is `Some` when the Command
|
|
30738
|
+
/** A serialized Command produced during a Message dispatch (or `init`). `args` is `Some` when the Command declared an args record. `maybeSubmodelPath` is `None` until the result Message resolves, `Some([])` for a top-level result, and `Some(tags)` for a Submodel-routed result. */
|
|
30739
30739
|
const SerializedCommand = Struct({
|
|
30740
30740
|
name: String$1,
|
|
30741
|
-
args: OptionFromNullOr(Record(String$1, Unknown))
|
|
30741
|
+
args: OptionFromNullOr(Record(String$1, Unknown)),
|
|
30742
|
+
maybeSubmodelPath: OptionFromNullOr(ArraySchema(String$1))
|
|
30742
30743
|
});
|
|
30743
30744
|
/** A serialized Mount lifecycle event (start or end). `args` is `Some` when the Mount's definition declared an args record, and carries the runtime values used to construct the MountAction instance. */
|
|
30744
30745
|
const SerializedMount = Struct({
|
|
@@ -31095,13 +31096,13 @@ const buildTools = (wsClient) => [
|
|
|
31095
31096
|
},
|
|
31096
31097
|
{
|
|
31097
31098
|
name: "foldkit_get_message",
|
|
31098
|
-
description: "Read 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
|
|
31099
|
+
description: "Read 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.",
|
|
31099
31100
|
inputSchema: toInputSchema(GetMessageInput),
|
|
31100
31101
|
handle: runRuntimeTool(GetMessageInput, ({ index }) => Request.RequestGetMessage({ index }), wsClient)
|
|
31101
31102
|
},
|
|
31102
31103
|
{
|
|
31103
31104
|
name: "foldkit_get_init",
|
|
31104
|
-
description: "Read 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
|
|
31105
|
+
description: "Read 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).",
|
|
31105
31106
|
inputSchema: toInputSchema(GetInitInput),
|
|
31106
31107
|
handle: runRuntimeTool(GetInitInput, () => Request.RequestGetInit(), wsClient)
|
|
31107
31108
|
},
|
package/dist/tools.js
CHANGED
|
@@ -231,13 +231,13 @@ export const buildTools = (wsClient) => [
|
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
name: 'foldkit_get_message',
|
|
234
|
-
description: 'Read 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
|
|
234
|
+
description: 'Read 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.',
|
|
235
235
|
inputSchema: toInputSchema(GetMessageInput),
|
|
236
236
|
handle: runRuntimeTool(GetMessageInput, ({ index }) => Request.RequestGetMessage({ index }), wsClient),
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
name: 'foldkit_get_init',
|
|
240
|
-
description: "Read 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
|
|
240
|
+
description: "Read 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).",
|
|
241
241
|
inputSchema: toInputSchema(GetInitInput),
|
|
242
242
|
handle: runRuntimeTool(GetInitInput, () => Request.RequestGetInit(), wsClient),
|
|
243
243
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/devtools-mcp",
|
|
3
|
-
"version": "0.20.0-canary.
|
|
3
|
+
"version": "0.20.0-canary.b58e60279bcc",
|
|
4
4
|
"description": "MCP server exposing Foldkit DevTools to AI agents (Claude Code, Cursor, etc.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/server.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"effect": "4.0.0-rc.115",
|
|
20
|
-
"foldkit": "0.160.0-canary.
|
|
20
|
+
"foldkit": "0.160.0-canary.b58e60279bcc"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"rimraf": "^6.1.3",
|
|
31
31
|
"rolldown": "^1.2.6",
|
|
32
32
|
"typescript": "^7.0.2",
|
|
33
|
-
"foldkit": "0.160.0-canary.
|
|
33
|
+
"foldkit": "0.160.0-canary.b58e60279bcc"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist"
|