@foldkit/devtools-mcp 0.13.1 → 0.13.3
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/README.md +1 -1
- package/dist/server.js +877 -696
- package/dist/tools.js +1 -1
- package/dist/webSocketClient.js +1 -1
- package/package.json +4 -4
package/dist/tools.js
CHANGED
|
@@ -267,7 +267,7 @@ export const buildTools = (wsClient) => [
|
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
269
|
name: 'foldkit_dispatch_message',
|
|
270
|
-
description: "Dispatch a Message into a Foldkit runtime
|
|
270
|
+
description: "Dispatch 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.",
|
|
271
271
|
inputSchema: toInputSchema(DispatchMessageInput),
|
|
272
272
|
handle: runRuntimeTool(DispatchMessageInput, ({ message }) => RequestDispatchMessage({ message }), wsClient),
|
|
273
273
|
},
|
package/dist/webSocketClient.js
CHANGED
|
@@ -6,7 +6,7 @@ const INITIAL_RECONNECT_DELAY = Duration.millis(500);
|
|
|
6
6
|
const MAX_RECONNECT_DELAY = Duration.seconds(30);
|
|
7
7
|
const encodeRequestFrameToJson = S.encodeUnknownSync(S.fromJsonString(RequestFrame));
|
|
8
8
|
const generateRequestId = () => `req-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
9
|
-
const reconnectSchedule = Schedule.exponential(INITIAL_RECONNECT_DELAY).pipe(Schedule.modifyDelay((
|
|
9
|
+
const reconnectSchedule = Schedule.exponential(INITIAL_RECONNECT_DELAY).pipe(Schedule.modifyDelay(({ duration }) => Effect.succeed(Duration.min(duration, MAX_RECONNECT_DELAY))));
|
|
10
10
|
const attemptOpen = (url) => Effect.callback(resume => {
|
|
11
11
|
const socket = new WebSocket(url);
|
|
12
12
|
let settled = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/devtools-mcp",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"effect": "4.0.0-beta.
|
|
19
|
+
"effect": "4.0.0-beta.97",
|
|
20
20
|
"foldkit": "^0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^25.9.3",
|
|
28
28
|
"@types/ws": "^8.18.1",
|
|
29
|
-
"effect": "4.0.0-beta.
|
|
29
|
+
"effect": "4.0.0-beta.97",
|
|
30
30
|
"esbuild": "^0.28.1",
|
|
31
31
|
"rimraf": "^6.1.3",
|
|
32
32
|
"typescript": "^6.0.3",
|
|
33
|
-
"foldkit": "0.
|
|
33
|
+
"foldkit": "0.130.0"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist"
|