@powerhousedao/reactor-mcp 6.0.0-dev.13 → 6.0.0-dev.131
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/src/cli.js +1 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/logger.d.ts +1 -1
- package/dist/src/logger.d.ts.map +1 -1
- package/dist/src/logger.js +1 -1
- package/dist/src/logger.js.map +1 -1
- package/dist/src/mcp-routes.d.ts +19 -0
- package/dist/src/mcp-routes.d.ts.map +1 -0
- package/dist/src/mcp-routes.js +50 -0
- package/dist/src/mcp-routes.js.map +1 -0
- package/dist/src/server.d.ts +7 -3
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +8 -5
- package/dist/src/server.js.map +1 -1
- package/dist/src/stdio/index.d.ts.map +1 -1
- package/dist/src/stdio/index.js +22 -51
- package/dist/src/stdio/index.js.map +1 -1
- package/dist/src/stdio/loader.d.ts +1 -1
- package/dist/src/stdio/loader.d.ts.map +1 -1
- package/dist/src/stdio/loader.js +1 -1
- package/dist/src/stdio/loader.js.map +1 -1
- package/dist/src/tools/reactor.d.ts +83 -363
- package/dist/src/tools/reactor.d.ts.map +1 -1
- package/dist/src/tools/reactor.js +98 -101
- package/dist/src/tools/reactor.js.map +1 -1
- package/dist/src/tools/types.d.ts +1 -1
- package/dist/src/tools/types.d.ts.map +1 -1
- package/dist/src/tools/utils.d.ts +1 -1
- package/dist/src/tools/utils.d.ts.map +1 -1
- package/dist/src/tools/utils.js.map +1 -1
- package/dist/test/reactor.test.js +205 -248
- package/dist/test/reactor.test.js.map +1 -1
- package/dist/test/setup-mcp-server.test.d.ts +10 -0
- package/dist/test/setup-mcp-server.test.d.ts.map +1 -0
- package/dist/test/setup-mcp-server.test.js +172 -0
- package/dist/test/setup-mcp-server.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -20
- package/dist/src/express.d.ts +0 -5
- package/dist/src/express.d.ts.map +0 -1
- package/dist/src/express.js +0 -59
- package/dist/src/express.js.map +0 -1
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
import { z } from "zod/v3";
|
|
1
|
+
import type { IReactorClient, ISyncManager } from "@powerhousedao/reactor";
|
|
2
|
+
import { z } from "zod";
|
|
4
3
|
import type { ToolSchema, ToolWithCallback } from "./types.js";
|
|
4
|
+
export type ReactorMcpProviderOptions = {
|
|
5
|
+
client: IReactorClient;
|
|
6
|
+
syncManager?: ISyncManager;
|
|
7
|
+
};
|
|
5
8
|
export declare const createDocumentTool: {
|
|
6
9
|
readonly name: "createDocument";
|
|
7
|
-
readonly description: "Create a new document.\n Unless the user specifies otherwise, and a drive named \"vetra\" is available, add the document
|
|
10
|
+
readonly description: "Create a new document.\n Unless the user specifies otherwise, and a drive named \"vetra\" is available, add the document to that drive by providing the drive's ID in the \"driveId\" parameter.\n When \"driveId\" is provided, the document is created and added to the drive atomically — no separate \"addActions\" call with \"ADD_FILE\" is needed.";
|
|
8
11
|
readonly inputSchema: {
|
|
9
12
|
readonly documentType: z.ZodString;
|
|
10
|
-
readonly
|
|
13
|
+
readonly name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
readonly driveId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
readonly parentFolder: z.ZodOptional<z.ZodString>;
|
|
11
16
|
};
|
|
12
17
|
readonly outputSchema: {
|
|
13
18
|
readonly documentId: z.ZodString;
|
|
@@ -20,7 +25,7 @@ export declare const getDocumentTool: {
|
|
|
20
25
|
readonly id: z.ZodString;
|
|
21
26
|
};
|
|
22
27
|
readonly outputSchema: {
|
|
23
|
-
readonly document: z.
|
|
28
|
+
readonly document: z.ZodUnknown;
|
|
24
29
|
};
|
|
25
30
|
};
|
|
26
31
|
export declare const getDocumentsTool: {
|
|
@@ -30,7 +35,7 @@ export declare const getDocumentsTool: {
|
|
|
30
35
|
readonly parentId: z.ZodString;
|
|
31
36
|
};
|
|
32
37
|
readonly outputSchema: {
|
|
33
|
-
readonly documentIds: z.ZodArray<z.ZodString
|
|
38
|
+
readonly documentIds: z.ZodArray<z.ZodString>;
|
|
34
39
|
};
|
|
35
40
|
};
|
|
36
41
|
export declare const deleteDocumentTool: {
|
|
@@ -52,18 +57,8 @@ export declare const addActionsTool: {
|
|
|
52
57
|
type: z.ZodString;
|
|
53
58
|
input: z.ZodUnknown;
|
|
54
59
|
scope: z.ZodString;
|
|
55
|
-
context: z.ZodOptional<z.
|
|
56
|
-
},
|
|
57
|
-
type: string;
|
|
58
|
-
scope: string;
|
|
59
|
-
input?: unknown;
|
|
60
|
-
context?: {} | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
type: string;
|
|
63
|
-
scope: string;
|
|
64
|
-
input?: unknown;
|
|
65
|
-
context?: {} | undefined;
|
|
66
|
-
}>, "many">;
|
|
60
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
|
+
}, z.core.$strict>>;
|
|
67
62
|
};
|
|
68
63
|
readonly outputSchema: {
|
|
69
64
|
readonly success: z.ZodBoolean;
|
|
@@ -74,7 +69,7 @@ export declare const getDrivesTool: {
|
|
|
74
69
|
readonly description: "List all drives";
|
|
75
70
|
readonly inputSchema: {};
|
|
76
71
|
readonly outputSchema: {
|
|
77
|
-
readonly driveIds: z.ZodArray<z.ZodString
|
|
72
|
+
readonly driveIds: z.ZodArray<z.ZodString>;
|
|
78
73
|
};
|
|
79
74
|
};
|
|
80
75
|
export declare const addDriveTool: {
|
|
@@ -85,51 +80,15 @@ export declare const addDriveTool: {
|
|
|
85
80
|
global: z.ZodObject<{
|
|
86
81
|
name: z.ZodString;
|
|
87
82
|
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
-
},
|
|
89
|
-
name: string;
|
|
90
|
-
icon?: string | null | undefined;
|
|
91
|
-
}, {
|
|
92
|
-
name: string;
|
|
93
|
-
icon?: string | null | undefined;
|
|
94
|
-
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
95
84
|
id: z.ZodOptional<z.ZodString>;
|
|
96
85
|
slug: z.ZodOptional<z.ZodString>;
|
|
97
86
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
98
87
|
local: z.ZodOptional<z.ZodObject<{
|
|
99
88
|
availableOffline: z.ZodOptional<z.ZodBoolean>;
|
|
100
89
|
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
sharingType?: string | null | undefined;
|
|
104
|
-
}, {
|
|
105
|
-
availableOffline?: boolean | undefined;
|
|
106
|
-
sharingType?: string | null | undefined;
|
|
107
|
-
}>>;
|
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
global: {
|
|
110
|
-
name: string;
|
|
111
|
-
icon?: string | null | undefined;
|
|
112
|
-
};
|
|
113
|
-
id?: string | undefined;
|
|
114
|
-
slug?: string | undefined;
|
|
115
|
-
preferredEditor?: string | undefined;
|
|
116
|
-
local?: {
|
|
117
|
-
availableOffline?: boolean | undefined;
|
|
118
|
-
sharingType?: string | null | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
global: {
|
|
122
|
-
name: string;
|
|
123
|
-
icon?: string | null | undefined;
|
|
124
|
-
};
|
|
125
|
-
id?: string | undefined;
|
|
126
|
-
slug?: string | undefined;
|
|
127
|
-
preferredEditor?: string | undefined;
|
|
128
|
-
local?: {
|
|
129
|
-
availableOffline?: boolean | undefined;
|
|
130
|
-
sharingType?: string | null | undefined;
|
|
131
|
-
} | undefined;
|
|
132
|
-
}>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
133
92
|
};
|
|
134
93
|
readonly outputSchema: {
|
|
135
94
|
readonly driveId: z.ZodString;
|
|
@@ -143,16 +102,10 @@ export declare const getDriveTool: {
|
|
|
143
102
|
readonly options: z.ZodOptional<z.ZodObject<{
|
|
144
103
|
revisions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
145
104
|
checkHashes: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
},
|
|
147
|
-
revisions?: Record<string, number> | undefined;
|
|
148
|
-
checkHashes?: boolean | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
revisions?: Record<string, number> | undefined;
|
|
151
|
-
checkHashes?: boolean | undefined;
|
|
152
|
-
}>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
153
106
|
};
|
|
154
107
|
readonly outputSchema: {
|
|
155
|
-
readonly drive: z.
|
|
108
|
+
readonly drive: z.ZodUnknown;
|
|
156
109
|
};
|
|
157
110
|
};
|
|
158
111
|
export declare const deleteDriveTool: {
|
|
@@ -174,51 +127,18 @@ export declare const addRemoteDriveTool: {
|
|
|
174
127
|
availableOffline: z.ZodBoolean;
|
|
175
128
|
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
129
|
pullFilter: z.ZodOptional<z.ZodObject<{
|
|
177
|
-
branch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
178
|
-
documentId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
179
|
-
documentType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
180
|
-
scope: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
181
|
-
},
|
|
182
|
-
scope?: string[] | null | undefined;
|
|
183
|
-
documentType?: string[] | null | undefined;
|
|
184
|
-
documentId?: string[] | null | undefined;
|
|
185
|
-
branch?: string[] | null | undefined;
|
|
186
|
-
}, {
|
|
187
|
-
scope?: string[] | null | undefined;
|
|
188
|
-
documentType?: string[] | null | undefined;
|
|
189
|
-
documentId?: string[] | null | undefined;
|
|
190
|
-
branch?: string[] | null | undefined;
|
|
191
|
-
}>>;
|
|
130
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
131
|
+
documentId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
132
|
+
documentType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
133
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
192
135
|
pullInterval: z.ZodOptional<z.ZodNumber>;
|
|
193
|
-
},
|
|
194
|
-
availableOffline: boolean;
|
|
195
|
-
sharingType?: string | null | undefined;
|
|
196
|
-
pullFilter?: {
|
|
197
|
-
scope?: string[] | null | undefined;
|
|
198
|
-
documentType?: string[] | null | undefined;
|
|
199
|
-
documentId?: string[] | null | undefined;
|
|
200
|
-
branch?: string[] | null | undefined;
|
|
201
|
-
} | undefined;
|
|
202
|
-
pullInterval?: number | undefined;
|
|
203
|
-
}, {
|
|
204
|
-
availableOffline: boolean;
|
|
205
|
-
sharingType?: string | null | undefined;
|
|
206
|
-
pullFilter?: {
|
|
207
|
-
scope?: string[] | null | undefined;
|
|
208
|
-
documentType?: string[] | null | undefined;
|
|
209
|
-
documentId?: string[] | null | undefined;
|
|
210
|
-
branch?: string[] | null | undefined;
|
|
211
|
-
} | undefined;
|
|
212
|
-
pullInterval?: number | undefined;
|
|
213
|
-
}>;
|
|
136
|
+
}, z.core.$strip>;
|
|
214
137
|
};
|
|
215
138
|
readonly outputSchema: {
|
|
216
139
|
readonly driveId: z.ZodString;
|
|
217
140
|
};
|
|
218
141
|
};
|
|
219
|
-
type Properties<T> = Required<{
|
|
220
|
-
[K in keyof T]: z.ZodType<T[K], any, T[K]>;
|
|
221
|
-
}>;
|
|
222
142
|
export declare const getDocumentModelSchemaTool: {
|
|
223
143
|
readonly name: "getDocumentModelSchema";
|
|
224
144
|
readonly description: "Get the schema of a document model";
|
|
@@ -226,7 +146,7 @@ export declare const getDocumentModelSchemaTool: {
|
|
|
226
146
|
readonly type: z.ZodString;
|
|
227
147
|
};
|
|
228
148
|
readonly outputSchema: {
|
|
229
|
-
readonly schema: z.
|
|
149
|
+
readonly schema: z.ZodUnknown;
|
|
230
150
|
};
|
|
231
151
|
};
|
|
232
152
|
export declare const getDocumentModelsTool: {
|
|
@@ -241,21 +161,7 @@ export declare const getDocumentModelsTool: {
|
|
|
241
161
|
extension: z.ZodString;
|
|
242
162
|
authorName: z.ZodString;
|
|
243
163
|
authorWebsite: z.ZodString;
|
|
244
|
-
},
|
|
245
|
-
name: string;
|
|
246
|
-
type: string;
|
|
247
|
-
description: string;
|
|
248
|
-
extension: string;
|
|
249
|
-
authorName: string;
|
|
250
|
-
authorWebsite: string;
|
|
251
|
-
}, {
|
|
252
|
-
name: string;
|
|
253
|
-
type: string;
|
|
254
|
-
description: string;
|
|
255
|
-
extension: string;
|
|
256
|
-
authorName: string;
|
|
257
|
-
authorWebsite: string;
|
|
258
|
-
}>, "many">;
|
|
164
|
+
}, z.core.$strip>>;
|
|
259
165
|
};
|
|
260
166
|
};
|
|
261
167
|
type ToolRecord<T extends readonly ToolSchema[]> = {
|
|
@@ -270,14 +176,16 @@ declare const allTools: readonly [{
|
|
|
270
176
|
readonly id: z.ZodString;
|
|
271
177
|
};
|
|
272
178
|
readonly outputSchema: {
|
|
273
|
-
readonly document: z.
|
|
179
|
+
readonly document: z.ZodUnknown;
|
|
274
180
|
};
|
|
275
181
|
}, {
|
|
276
182
|
readonly name: "createDocument";
|
|
277
|
-
readonly description: "Create a new document.\n Unless the user specifies otherwise, and a drive named \"vetra\" is available, add the document
|
|
183
|
+
readonly description: "Create a new document.\n Unless the user specifies otherwise, and a drive named \"vetra\" is available, add the document to that drive by providing the drive's ID in the \"driveId\" parameter.\n When \"driveId\" is provided, the document is created and added to the drive atomically — no separate \"addActions\" call with \"ADD_FILE\" is needed.";
|
|
278
184
|
readonly inputSchema: {
|
|
279
185
|
readonly documentType: z.ZodString;
|
|
280
|
-
readonly
|
|
186
|
+
readonly name: z.ZodOptional<z.ZodString>;
|
|
187
|
+
readonly driveId: z.ZodOptional<z.ZodString>;
|
|
188
|
+
readonly parentFolder: z.ZodOptional<z.ZodString>;
|
|
281
189
|
};
|
|
282
190
|
readonly outputSchema: {
|
|
283
191
|
readonly documentId: z.ZodString;
|
|
@@ -289,7 +197,7 @@ declare const allTools: readonly [{
|
|
|
289
197
|
readonly parentId: z.ZodString;
|
|
290
198
|
};
|
|
291
199
|
readonly outputSchema: {
|
|
292
|
-
readonly documentIds: z.ZodArray<z.ZodString
|
|
200
|
+
readonly documentIds: z.ZodArray<z.ZodString>;
|
|
293
201
|
};
|
|
294
202
|
}, {
|
|
295
203
|
readonly name: "deleteDocument";
|
|
@@ -309,18 +217,8 @@ declare const allTools: readonly [{
|
|
|
309
217
|
type: z.ZodString;
|
|
310
218
|
input: z.ZodUnknown;
|
|
311
219
|
scope: z.ZodString;
|
|
312
|
-
context: z.ZodOptional<z.
|
|
313
|
-
},
|
|
314
|
-
type: string;
|
|
315
|
-
scope: string;
|
|
316
|
-
input?: unknown;
|
|
317
|
-
context?: {} | undefined;
|
|
318
|
-
}, {
|
|
319
|
-
type: string;
|
|
320
|
-
scope: string;
|
|
321
|
-
input?: unknown;
|
|
322
|
-
context?: {} | undefined;
|
|
323
|
-
}>, "many">;
|
|
220
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
221
|
+
}, z.core.$strict>>;
|
|
324
222
|
};
|
|
325
223
|
readonly outputSchema: {
|
|
326
224
|
readonly success: z.ZodBoolean;
|
|
@@ -330,7 +228,7 @@ declare const allTools: readonly [{
|
|
|
330
228
|
readonly description: "List all drives";
|
|
331
229
|
readonly inputSchema: {};
|
|
332
230
|
readonly outputSchema: {
|
|
333
|
-
readonly driveIds: z.ZodArray<z.ZodString
|
|
231
|
+
readonly driveIds: z.ZodArray<z.ZodString>;
|
|
334
232
|
};
|
|
335
233
|
}, {
|
|
336
234
|
readonly name: "addDrive";
|
|
@@ -340,51 +238,15 @@ declare const allTools: readonly [{
|
|
|
340
238
|
global: z.ZodObject<{
|
|
341
239
|
name: z.ZodString;
|
|
342
240
|
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
-
},
|
|
344
|
-
name: string;
|
|
345
|
-
icon?: string | null | undefined;
|
|
346
|
-
}, {
|
|
347
|
-
name: string;
|
|
348
|
-
icon?: string | null | undefined;
|
|
349
|
-
}>;
|
|
241
|
+
}, z.core.$strip>;
|
|
350
242
|
id: z.ZodOptional<z.ZodString>;
|
|
351
243
|
slug: z.ZodOptional<z.ZodString>;
|
|
352
244
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
353
245
|
local: z.ZodOptional<z.ZodObject<{
|
|
354
246
|
availableOffline: z.ZodOptional<z.ZodBoolean>;
|
|
355
247
|
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
sharingType?: string | null | undefined;
|
|
359
|
-
}, {
|
|
360
|
-
availableOffline?: boolean | undefined;
|
|
361
|
-
sharingType?: string | null | undefined;
|
|
362
|
-
}>>;
|
|
363
|
-
}, "strip", z.ZodTypeAny, {
|
|
364
|
-
global: {
|
|
365
|
-
name: string;
|
|
366
|
-
icon?: string | null | undefined;
|
|
367
|
-
};
|
|
368
|
-
id?: string | undefined;
|
|
369
|
-
slug?: string | undefined;
|
|
370
|
-
preferredEditor?: string | undefined;
|
|
371
|
-
local?: {
|
|
372
|
-
availableOffline?: boolean | undefined;
|
|
373
|
-
sharingType?: string | null | undefined;
|
|
374
|
-
} | undefined;
|
|
375
|
-
}, {
|
|
376
|
-
global: {
|
|
377
|
-
name: string;
|
|
378
|
-
icon?: string | null | undefined;
|
|
379
|
-
};
|
|
380
|
-
id?: string | undefined;
|
|
381
|
-
slug?: string | undefined;
|
|
382
|
-
preferredEditor?: string | undefined;
|
|
383
|
-
local?: {
|
|
384
|
-
availableOffline?: boolean | undefined;
|
|
385
|
-
sharingType?: string | null | undefined;
|
|
386
|
-
} | undefined;
|
|
387
|
-
}>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
388
250
|
};
|
|
389
251
|
readonly outputSchema: {
|
|
390
252
|
readonly driveId: z.ZodString;
|
|
@@ -397,16 +259,10 @@ declare const allTools: readonly [{
|
|
|
397
259
|
readonly options: z.ZodOptional<z.ZodObject<{
|
|
398
260
|
revisions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
399
261
|
checkHashes: z.ZodOptional<z.ZodBoolean>;
|
|
400
|
-
},
|
|
401
|
-
revisions?: Record<string, number> | undefined;
|
|
402
|
-
checkHashes?: boolean | undefined;
|
|
403
|
-
}, {
|
|
404
|
-
revisions?: Record<string, number> | undefined;
|
|
405
|
-
checkHashes?: boolean | undefined;
|
|
406
|
-
}>>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
407
263
|
};
|
|
408
264
|
readonly outputSchema: {
|
|
409
|
-
readonly drive: z.
|
|
265
|
+
readonly drive: z.ZodUnknown;
|
|
410
266
|
};
|
|
411
267
|
}, {
|
|
412
268
|
readonly name: "deleteDrive";
|
|
@@ -426,43 +282,13 @@ declare const allTools: readonly [{
|
|
|
426
282
|
availableOffline: z.ZodBoolean;
|
|
427
283
|
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
428
284
|
pullFilter: z.ZodOptional<z.ZodObject<{
|
|
429
|
-
branch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
430
|
-
documentId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
431
|
-
documentType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
432
|
-
scope: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
433
|
-
},
|
|
434
|
-
scope?: string[] | null | undefined;
|
|
435
|
-
documentType?: string[] | null | undefined;
|
|
436
|
-
documentId?: string[] | null | undefined;
|
|
437
|
-
branch?: string[] | null | undefined;
|
|
438
|
-
}, {
|
|
439
|
-
scope?: string[] | null | undefined;
|
|
440
|
-
documentType?: string[] | null | undefined;
|
|
441
|
-
documentId?: string[] | null | undefined;
|
|
442
|
-
branch?: string[] | null | undefined;
|
|
443
|
-
}>>;
|
|
285
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
286
|
+
documentId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
287
|
+
documentType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
288
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
289
|
+
}, z.core.$strip>>;
|
|
444
290
|
pullInterval: z.ZodOptional<z.ZodNumber>;
|
|
445
|
-
},
|
|
446
|
-
availableOffline: boolean;
|
|
447
|
-
sharingType?: string | null | undefined;
|
|
448
|
-
pullFilter?: {
|
|
449
|
-
scope?: string[] | null | undefined;
|
|
450
|
-
documentType?: string[] | null | undefined;
|
|
451
|
-
documentId?: string[] | null | undefined;
|
|
452
|
-
branch?: string[] | null | undefined;
|
|
453
|
-
} | undefined;
|
|
454
|
-
pullInterval?: number | undefined;
|
|
455
|
-
}, {
|
|
456
|
-
availableOffline: boolean;
|
|
457
|
-
sharingType?: string | null | undefined;
|
|
458
|
-
pullFilter?: {
|
|
459
|
-
scope?: string[] | null | undefined;
|
|
460
|
-
documentType?: string[] | null | undefined;
|
|
461
|
-
documentId?: string[] | null | undefined;
|
|
462
|
-
branch?: string[] | null | undefined;
|
|
463
|
-
} | undefined;
|
|
464
|
-
pullInterval?: number | undefined;
|
|
465
|
-
}>;
|
|
291
|
+
}, z.core.$strip>;
|
|
466
292
|
};
|
|
467
293
|
readonly outputSchema: {
|
|
468
294
|
readonly driveId: z.ZodString;
|
|
@@ -474,7 +300,7 @@ declare const allTools: readonly [{
|
|
|
474
300
|
readonly type: z.ZodString;
|
|
475
301
|
};
|
|
476
302
|
readonly outputSchema: {
|
|
477
|
-
readonly schema: z.
|
|
303
|
+
readonly schema: z.ZodUnknown;
|
|
478
304
|
};
|
|
479
305
|
}, {
|
|
480
306
|
readonly name: "getDocumentModels";
|
|
@@ -488,25 +314,11 @@ declare const allTools: readonly [{
|
|
|
488
314
|
extension: z.ZodString;
|
|
489
315
|
authorName: z.ZodString;
|
|
490
316
|
authorWebsite: z.ZodString;
|
|
491
|
-
},
|
|
492
|
-
name: string;
|
|
493
|
-
type: string;
|
|
494
|
-
description: string;
|
|
495
|
-
extension: string;
|
|
496
|
-
authorName: string;
|
|
497
|
-
authorWebsite: string;
|
|
498
|
-
}, {
|
|
499
|
-
name: string;
|
|
500
|
-
type: string;
|
|
501
|
-
description: string;
|
|
502
|
-
extension: string;
|
|
503
|
-
authorName: string;
|
|
504
|
-
authorWebsite: string;
|
|
505
|
-
}>, "many">;
|
|
317
|
+
}, z.core.$strip>>;
|
|
506
318
|
};
|
|
507
319
|
}];
|
|
508
320
|
export type ReactorMcpTools = ToolRecord<typeof allTools>;
|
|
509
|
-
export declare function createReactorMcpProvider(
|
|
321
|
+
export declare function createReactorMcpProvider(options: ReactorMcpProviderOptions): Promise<{
|
|
510
322
|
readonly tools: {
|
|
511
323
|
readonly getDocument: {
|
|
512
324
|
readonly name: "getDocument";
|
|
@@ -515,7 +327,7 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
515
327
|
readonly id: z.ZodString;
|
|
516
328
|
};
|
|
517
329
|
readonly outputSchema: {
|
|
518
|
-
readonly document: z.
|
|
330
|
+
readonly document: z.ZodUnknown;
|
|
519
331
|
};
|
|
520
332
|
} & {
|
|
521
333
|
callback: (args: {
|
|
@@ -524,10 +336,12 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
524
336
|
};
|
|
525
337
|
readonly createDocument: {
|
|
526
338
|
readonly name: "createDocument";
|
|
527
|
-
readonly description: "Create a new document.\n Unless the user specifies otherwise, and a drive named \"vetra\" is available, add the document
|
|
339
|
+
readonly description: "Create a new document.\n Unless the user specifies otherwise, and a drive named \"vetra\" is available, add the document to that drive by providing the drive's ID in the \"driveId\" parameter.\n When \"driveId\" is provided, the document is created and added to the drive atomically — no separate \"addActions\" call with \"ADD_FILE\" is needed.";
|
|
528
340
|
readonly inputSchema: {
|
|
529
341
|
readonly documentType: z.ZodString;
|
|
530
|
-
readonly
|
|
342
|
+
readonly name: z.ZodOptional<z.ZodString>;
|
|
343
|
+
readonly driveId: z.ZodOptional<z.ZodString>;
|
|
344
|
+
readonly parentFolder: z.ZodOptional<z.ZodString>;
|
|
531
345
|
};
|
|
532
346
|
readonly outputSchema: {
|
|
533
347
|
readonly documentId: z.ZodString;
|
|
@@ -535,7 +349,9 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
535
349
|
} & {
|
|
536
350
|
callback: (args: {
|
|
537
351
|
documentType: string;
|
|
538
|
-
|
|
352
|
+
name?: string | undefined;
|
|
353
|
+
driveId?: string | undefined;
|
|
354
|
+
parentFolder?: string | undefined;
|
|
539
355
|
}) => Promise<import("@modelcontextprotocol/sdk/types.js").CallToolResult>;
|
|
540
356
|
};
|
|
541
357
|
readonly getDocuments: {
|
|
@@ -545,7 +361,7 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
545
361
|
readonly parentId: z.ZodString;
|
|
546
362
|
};
|
|
547
363
|
readonly outputSchema: {
|
|
548
|
-
readonly documentIds: z.ZodArray<z.ZodString
|
|
364
|
+
readonly documentIds: z.ZodArray<z.ZodString>;
|
|
549
365
|
};
|
|
550
366
|
} & {
|
|
551
367
|
callback: (args: {
|
|
@@ -575,18 +391,8 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
575
391
|
type: z.ZodString;
|
|
576
392
|
input: z.ZodUnknown;
|
|
577
393
|
scope: z.ZodString;
|
|
578
|
-
context: z.ZodOptional<z.
|
|
579
|
-
},
|
|
580
|
-
type: string;
|
|
581
|
-
scope: string;
|
|
582
|
-
input?: unknown;
|
|
583
|
-
context?: {} | undefined;
|
|
584
|
-
}, {
|
|
585
|
-
type: string;
|
|
586
|
-
scope: string;
|
|
587
|
-
input?: unknown;
|
|
588
|
-
context?: {} | undefined;
|
|
589
|
-
}>, "many">;
|
|
394
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
395
|
+
}, z.core.$strict>>;
|
|
590
396
|
};
|
|
591
397
|
readonly outputSchema: {
|
|
592
398
|
readonly success: z.ZodBoolean;
|
|
@@ -596,9 +402,9 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
596
402
|
documentId: string;
|
|
597
403
|
actions: {
|
|
598
404
|
type: string;
|
|
405
|
+
input: unknown;
|
|
599
406
|
scope: string;
|
|
600
|
-
|
|
601
|
-
context?: {} | undefined;
|
|
407
|
+
context?: Record<string, unknown> | undefined;
|
|
602
408
|
}[];
|
|
603
409
|
}) => Promise<import("@modelcontextprotocol/sdk/types.js").CallToolResult>;
|
|
604
410
|
};
|
|
@@ -607,10 +413,10 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
607
413
|
readonly description: "List all drives";
|
|
608
414
|
readonly inputSchema: {};
|
|
609
415
|
readonly outputSchema: {
|
|
610
|
-
readonly driveIds: z.ZodArray<z.ZodString
|
|
416
|
+
readonly driveIds: z.ZodArray<z.ZodString>;
|
|
611
417
|
};
|
|
612
418
|
} & {
|
|
613
|
-
callback: (args:
|
|
419
|
+
callback: (args: Record<string, never>) => Promise<import("@modelcontextprotocol/sdk/types.js").CallToolResult>;
|
|
614
420
|
};
|
|
615
421
|
readonly addDrive: {
|
|
616
422
|
readonly name: "addDrive";
|
|
@@ -620,51 +426,15 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
620
426
|
global: z.ZodObject<{
|
|
621
427
|
name: z.ZodString;
|
|
622
428
|
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
623
|
-
},
|
|
624
|
-
name: string;
|
|
625
|
-
icon?: string | null | undefined;
|
|
626
|
-
}, {
|
|
627
|
-
name: string;
|
|
628
|
-
icon?: string | null | undefined;
|
|
629
|
-
}>;
|
|
429
|
+
}, z.core.$strip>;
|
|
630
430
|
id: z.ZodOptional<z.ZodString>;
|
|
631
431
|
slug: z.ZodOptional<z.ZodString>;
|
|
632
432
|
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
633
433
|
local: z.ZodOptional<z.ZodObject<{
|
|
634
434
|
availableOffline: z.ZodOptional<z.ZodBoolean>;
|
|
635
435
|
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
636
|
-
},
|
|
637
|
-
|
|
638
|
-
sharingType?: string | null | undefined;
|
|
639
|
-
}, {
|
|
640
|
-
availableOffline?: boolean | undefined;
|
|
641
|
-
sharingType?: string | null | undefined;
|
|
642
|
-
}>>;
|
|
643
|
-
}, "strip", z.ZodTypeAny, {
|
|
644
|
-
global: {
|
|
645
|
-
name: string;
|
|
646
|
-
icon?: string | null | undefined;
|
|
647
|
-
};
|
|
648
|
-
id?: string | undefined;
|
|
649
|
-
slug?: string | undefined;
|
|
650
|
-
preferredEditor?: string | undefined;
|
|
651
|
-
local?: {
|
|
652
|
-
availableOffline?: boolean | undefined;
|
|
653
|
-
sharingType?: string | null | undefined;
|
|
654
|
-
} | undefined;
|
|
655
|
-
}, {
|
|
656
|
-
global: {
|
|
657
|
-
name: string;
|
|
658
|
-
icon?: string | null | undefined;
|
|
659
|
-
};
|
|
660
|
-
id?: string | undefined;
|
|
661
|
-
slug?: string | undefined;
|
|
662
|
-
preferredEditor?: string | undefined;
|
|
663
|
-
local?: {
|
|
664
|
-
availableOffline?: boolean | undefined;
|
|
665
|
-
sharingType?: string | null | undefined;
|
|
666
|
-
} | undefined;
|
|
667
|
-
}>;
|
|
436
|
+
}, z.core.$strip>>;
|
|
437
|
+
}, z.core.$strip>;
|
|
668
438
|
};
|
|
669
439
|
readonly outputSchema: {
|
|
670
440
|
readonly driveId: z.ZodString;
|
|
@@ -694,16 +464,10 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
694
464
|
readonly options: z.ZodOptional<z.ZodObject<{
|
|
695
465
|
revisions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
696
466
|
checkHashes: z.ZodOptional<z.ZodBoolean>;
|
|
697
|
-
},
|
|
698
|
-
revisions?: Record<string, number> | undefined;
|
|
699
|
-
checkHashes?: boolean | undefined;
|
|
700
|
-
}, {
|
|
701
|
-
revisions?: Record<string, number> | undefined;
|
|
702
|
-
checkHashes?: boolean | undefined;
|
|
703
|
-
}>>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
704
468
|
};
|
|
705
469
|
readonly outputSchema: {
|
|
706
|
-
readonly drive: z.
|
|
470
|
+
readonly drive: z.ZodUnknown;
|
|
707
471
|
};
|
|
708
472
|
} & {
|
|
709
473
|
callback: (args: {
|
|
@@ -737,43 +501,13 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
737
501
|
availableOffline: z.ZodBoolean;
|
|
738
502
|
sharingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
739
503
|
pullFilter: z.ZodOptional<z.ZodObject<{
|
|
740
|
-
branch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
741
|
-
documentId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
742
|
-
documentType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
743
|
-
scope: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
744
|
-
},
|
|
745
|
-
scope?: string[] | null | undefined;
|
|
746
|
-
documentType?: string[] | null | undefined;
|
|
747
|
-
documentId?: string[] | null | undefined;
|
|
748
|
-
branch?: string[] | null | undefined;
|
|
749
|
-
}, {
|
|
750
|
-
scope?: string[] | null | undefined;
|
|
751
|
-
documentType?: string[] | null | undefined;
|
|
752
|
-
documentId?: string[] | null | undefined;
|
|
753
|
-
branch?: string[] | null | undefined;
|
|
754
|
-
}>>;
|
|
504
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
505
|
+
documentId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
506
|
+
documentType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
507
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
508
|
+
}, z.core.$strip>>;
|
|
755
509
|
pullInterval: z.ZodOptional<z.ZodNumber>;
|
|
756
|
-
},
|
|
757
|
-
availableOffline: boolean;
|
|
758
|
-
sharingType?: string | null | undefined;
|
|
759
|
-
pullFilter?: {
|
|
760
|
-
scope?: string[] | null | undefined;
|
|
761
|
-
documentType?: string[] | null | undefined;
|
|
762
|
-
documentId?: string[] | null | undefined;
|
|
763
|
-
branch?: string[] | null | undefined;
|
|
764
|
-
} | undefined;
|
|
765
|
-
pullInterval?: number | undefined;
|
|
766
|
-
}, {
|
|
767
|
-
availableOffline: boolean;
|
|
768
|
-
sharingType?: string | null | undefined;
|
|
769
|
-
pullFilter?: {
|
|
770
|
-
scope?: string[] | null | undefined;
|
|
771
|
-
documentType?: string[] | null | undefined;
|
|
772
|
-
documentId?: string[] | null | undefined;
|
|
773
|
-
branch?: string[] | null | undefined;
|
|
774
|
-
} | undefined;
|
|
775
|
-
pullInterval?: number | undefined;
|
|
776
|
-
}>;
|
|
510
|
+
}, z.core.$strip>;
|
|
777
511
|
};
|
|
778
512
|
readonly outputSchema: {
|
|
779
513
|
readonly driveId: z.ZodString;
|
|
@@ -785,10 +519,10 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
785
519
|
availableOffline: boolean;
|
|
786
520
|
sharingType?: string | null | undefined;
|
|
787
521
|
pullFilter?: {
|
|
788
|
-
scope?: string[] | null | undefined;
|
|
789
|
-
documentType?: string[] | null | undefined;
|
|
790
|
-
documentId?: string[] | null | undefined;
|
|
791
522
|
branch?: string[] | null | undefined;
|
|
523
|
+
documentId?: string[] | null | undefined;
|
|
524
|
+
documentType?: string[] | null | undefined;
|
|
525
|
+
scope?: string[] | null | undefined;
|
|
792
526
|
} | undefined;
|
|
793
527
|
pullInterval?: number | undefined;
|
|
794
528
|
};
|
|
@@ -806,24 +540,10 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
806
540
|
extension: z.ZodString;
|
|
807
541
|
authorName: z.ZodString;
|
|
808
542
|
authorWebsite: z.ZodString;
|
|
809
|
-
},
|
|
810
|
-
name: string;
|
|
811
|
-
type: string;
|
|
812
|
-
description: string;
|
|
813
|
-
extension: string;
|
|
814
|
-
authorName: string;
|
|
815
|
-
authorWebsite: string;
|
|
816
|
-
}, {
|
|
817
|
-
name: string;
|
|
818
|
-
type: string;
|
|
819
|
-
description: string;
|
|
820
|
-
extension: string;
|
|
821
|
-
authorName: string;
|
|
822
|
-
authorWebsite: string;
|
|
823
|
-
}>, "many">;
|
|
543
|
+
}, z.core.$strip>>;
|
|
824
544
|
};
|
|
825
545
|
} & {
|
|
826
|
-
callback: (args:
|
|
546
|
+
callback: (args: Record<string, never>) => Promise<import("@modelcontextprotocol/sdk/types.js").CallToolResult>;
|
|
827
547
|
};
|
|
828
548
|
readonly getDocumentModelSchema: {
|
|
829
549
|
readonly name: "getDocumentModelSchema";
|
|
@@ -832,7 +552,7 @@ export declare function createReactorMcpProvider(reactor: IDocumentDriveServer):
|
|
|
832
552
|
readonly type: z.ZodString;
|
|
833
553
|
};
|
|
834
554
|
readonly outputSchema: {
|
|
835
|
-
readonly schema: z.
|
|
555
|
+
readonly schema: z.ZodUnknown;
|
|
836
556
|
};
|
|
837
557
|
} & {
|
|
838
558
|
callback: (args: {
|