@mastra/mcp 0.10.5-alpha.0 → 0.10.5-alpha.1
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +15 -0
- package/dist/_tsup-dts-rollup.d.cts +88 -80
- package/dist/_tsup-dts-rollup.d.ts +88 -80
- package/dist/index.cjs +258 -30
- package/dist/index.js +253 -25
- package/integration-tests/node_modules/.bin/vitest +2 -2
- package/integration-tests/package.json +2 -2
- package/package.json +7 -7
- package/src/__fixtures__/tools.ts +0 -9
- package/src/client/client.ts +45 -1
- package/src/server/server.test.ts +84 -0
- package/src/server/server.ts +51 -16
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/mcp@0.10.5-alpha.
|
|
2
|
+
> @mastra/mcp@0.10.5-alpha.1 build /home/runner/work/mastra/mastra/packages/mcp
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.5.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 21967ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 31326ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
21
|
-
[32mESM[39m ⚡️ Build success in
|
|
22
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
23
|
-
[32mCJS[39m ⚡️ Build success in
|
|
20
|
+
[32mESM[39m [1mdist/index.js [22m[32m87.77 KB[39m
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 1807ms
|
|
22
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m88.45 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 2402ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @mastra/mcp
|
|
2
2
|
|
|
3
|
+
## 0.10.5-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ee93d96: dependencies updates:
|
|
8
|
+
- Updated dependency [`@modelcontextprotocol/sdk@^1.12.3` ↗︎](https://www.npmjs.com/package/@modelcontextprotocol/sdk/v/1.12.3) (from `^1.12.1`, in `dependencies`)
|
|
9
|
+
- c00039d: dependencies updates:
|
|
10
|
+
- Updated dependency [`@modelcontextprotocol/sdk@^1.13.0` ↗︎](https://www.npmjs.com/package/@modelcontextprotocol/sdk/v/1.13.0) (from `^1.12.3`, in `dependencies`)
|
|
11
|
+
- 07d6d88: Bump MCP SDK version and add tool output schema support to MCPServer and MCPClient
|
|
12
|
+
- Updated dependencies [15e9d26]
|
|
13
|
+
- Updated dependencies [07d6d88]
|
|
14
|
+
- Updated dependencies [5d74aab]
|
|
15
|
+
- Updated dependencies [144eb0b]
|
|
16
|
+
- @mastra/core@0.10.7-alpha.2
|
|
17
|
+
|
|
3
18
|
## 0.10.5-alpha.0
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -98,22 +98,31 @@ export declare class InternalMastraMCPClient extends MastraBase {
|
|
|
98
98
|
} & {
|
|
99
99
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
100
100
|
} & {
|
|
101
|
-
resources: z.ZodArray<z.ZodObject<{
|
|
102
|
-
uri: z.ZodString;
|
|
101
|
+
resources: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
103
102
|
name: z.ZodString;
|
|
103
|
+
title: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, {
|
|
105
|
+
uri: z.ZodString;
|
|
104
106
|
description: z.ZodOptional<z.ZodString>;
|
|
105
107
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
109
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
108
110
|
name: z.ZodString;
|
|
111
|
+
title: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, {
|
|
113
|
+
uri: z.ZodString;
|
|
109
114
|
description: z.ZodOptional<z.ZodString>;
|
|
110
115
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
111
|
-
|
|
112
|
-
|
|
116
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
117
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
113
118
|
name: z.ZodString;
|
|
119
|
+
title: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, {
|
|
121
|
+
uri: z.ZodString;
|
|
114
122
|
description: z.ZodOptional<z.ZodString>;
|
|
115
123
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
116
|
-
|
|
124
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
125
|
+
}>, z.ZodTypeAny, "passthrough">>, "many">;
|
|
117
126
|
}, z.ZodTypeAny, "passthrough">>;
|
|
118
127
|
readResource(uri: string): Promise<z.objectOutputType<{
|
|
119
128
|
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -121,31 +130,37 @@ export declare class InternalMastraMCPClient extends MastraBase {
|
|
|
121
130
|
contents: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
122
131
|
uri: z.ZodString;
|
|
123
132
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
133
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
124
134
|
}, {
|
|
125
135
|
text: z.ZodString;
|
|
126
136
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
127
137
|
uri: z.ZodString;
|
|
128
138
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
139
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
129
140
|
}, {
|
|
130
141
|
text: z.ZodString;
|
|
131
142
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
132
143
|
uri: z.ZodString;
|
|
133
144
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
145
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
134
146
|
}, {
|
|
135
147
|
text: z.ZodString;
|
|
136
148
|
}>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
|
|
137
149
|
uri: z.ZodString;
|
|
138
150
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
151
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
139
152
|
}, {
|
|
140
153
|
blob: z.ZodString;
|
|
141
154
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
142
155
|
uri: z.ZodString;
|
|
143
156
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
157
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
144
158
|
}, {
|
|
145
159
|
blob: z.ZodString;
|
|
146
160
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
147
161
|
uri: z.ZodString;
|
|
148
162
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
163
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
149
164
|
}, {
|
|
150
165
|
blob: z.ZodString;
|
|
151
166
|
}>, z.ZodTypeAny, "passthrough">>]>, "many">;
|
|
@@ -157,22 +172,31 @@ export declare class InternalMastraMCPClient extends MastraBase {
|
|
|
157
172
|
} & {
|
|
158
173
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
159
174
|
} & {
|
|
160
|
-
resourceTemplates: z.ZodArray<z.ZodObject<{
|
|
161
|
-
uriTemplate: z.ZodString;
|
|
175
|
+
resourceTemplates: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
162
176
|
name: z.ZodString;
|
|
177
|
+
title: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, {
|
|
179
|
+
uriTemplate: z.ZodString;
|
|
163
180
|
description: z.ZodOptional<z.ZodString>;
|
|
164
181
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
165
|
-
|
|
166
|
-
|
|
182
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
183
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
167
184
|
name: z.ZodString;
|
|
185
|
+
title: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, {
|
|
187
|
+
uriTemplate: z.ZodString;
|
|
168
188
|
description: z.ZodOptional<z.ZodString>;
|
|
169
189
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
170
|
-
|
|
171
|
-
|
|
190
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
191
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
172
192
|
name: z.ZodString;
|
|
193
|
+
title: z.ZodOptional<z.ZodString>;
|
|
194
|
+
}, {
|
|
195
|
+
uriTemplate: z.ZodString;
|
|
173
196
|
description: z.ZodOptional<z.ZodString>;
|
|
174
197
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
175
|
-
|
|
198
|
+
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
199
|
+
}>, z.ZodTypeAny, "passthrough">>, "many">;
|
|
176
200
|
}, z.ZodTypeAny, "passthrough">>;
|
|
177
201
|
/**
|
|
178
202
|
* Fetch the list of available prompts from the MCP server.
|
|
@@ -197,6 +221,7 @@ export declare class InternalMastraMCPClient extends MastraBase {
|
|
|
197
221
|
setResourceUpdatedNotificationHandler(handler: (params: z.infer<typeof ResourceUpdatedNotificationSchema>['params']) => void): void;
|
|
198
222
|
setResourceListChangedNotificationHandler(handler: () => void): void;
|
|
199
223
|
private convertInputSchema;
|
|
224
|
+
private convertOutputSchema;
|
|
200
225
|
tools(): Promise<Record<string, any>>;
|
|
201
226
|
}
|
|
202
227
|
|
|
@@ -260,31 +285,37 @@ declare class MCPClient extends MastraBase {
|
|
|
260
285
|
contents: ZodArray<ZodUnion<[ZodObject<objectUtil.extendShape< {
|
|
261
286
|
uri: ZodString;
|
|
262
287
|
mimeType: ZodOptional<ZodString>;
|
|
288
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
263
289
|
}, {
|
|
264
290
|
text: ZodString;
|
|
265
291
|
}>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape< {
|
|
266
292
|
uri: ZodString;
|
|
267
293
|
mimeType: ZodOptional<ZodString>;
|
|
294
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
268
295
|
}, {
|
|
269
296
|
text: ZodString;
|
|
270
297
|
}>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape< {
|
|
271
298
|
uri: ZodString;
|
|
272
299
|
mimeType: ZodOptional<ZodString>;
|
|
300
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
273
301
|
}, {
|
|
274
302
|
text: ZodString;
|
|
275
303
|
}>, ZodTypeAny, "passthrough">>, ZodObject<objectUtil.extendShape< {
|
|
276
304
|
uri: ZodString;
|
|
277
305
|
mimeType: ZodOptional<ZodString>;
|
|
306
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
278
307
|
}, {
|
|
279
308
|
blob: ZodString;
|
|
280
309
|
}>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape< {
|
|
281
310
|
uri: ZodString;
|
|
282
311
|
mimeType: ZodOptional<ZodString>;
|
|
312
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
283
313
|
}, {
|
|
284
314
|
blob: ZodString;
|
|
285
315
|
}>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape< {
|
|
286
316
|
uri: ZodString;
|
|
287
317
|
mimeType: ZodOptional<ZodString>;
|
|
318
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
288
319
|
}, {
|
|
289
320
|
blob: ZodString;
|
|
290
321
|
}>, ZodTypeAny, "passthrough">>]>, "many">;
|
|
@@ -312,16 +343,36 @@ declare class MCPClient extends MastraBase {
|
|
|
312
343
|
[x: string]: unknown;
|
|
313
344
|
type: "text";
|
|
314
345
|
text: string;
|
|
346
|
+
_meta?: {
|
|
347
|
+
[x: string]: unknown;
|
|
348
|
+
} | undefined;
|
|
315
349
|
} | {
|
|
316
350
|
[x: string]: unknown;
|
|
317
351
|
type: "image";
|
|
318
352
|
data: string;
|
|
319
353
|
mimeType: string;
|
|
354
|
+
_meta?: {
|
|
355
|
+
[x: string]: unknown;
|
|
356
|
+
} | undefined;
|
|
320
357
|
} | {
|
|
321
358
|
[x: string]: unknown;
|
|
322
359
|
type: "audio";
|
|
323
360
|
data: string;
|
|
324
361
|
mimeType: string;
|
|
362
|
+
_meta?: {
|
|
363
|
+
[x: string]: unknown;
|
|
364
|
+
} | undefined;
|
|
365
|
+
} | {
|
|
366
|
+
[x: string]: unknown;
|
|
367
|
+
name: string;
|
|
368
|
+
type: "resource_link";
|
|
369
|
+
uri: string;
|
|
370
|
+
title?: string | undefined;
|
|
371
|
+
description?: string | undefined;
|
|
372
|
+
_meta?: {
|
|
373
|
+
[x: string]: unknown;
|
|
374
|
+
} | undefined;
|
|
375
|
+
mimeType?: string | undefined;
|
|
325
376
|
} | {
|
|
326
377
|
[x: string]: unknown;
|
|
327
378
|
type: "resource";
|
|
@@ -329,13 +380,22 @@ declare class MCPClient extends MastraBase {
|
|
|
329
380
|
[x: string]: unknown;
|
|
330
381
|
text: string;
|
|
331
382
|
uri: string;
|
|
383
|
+
_meta?: {
|
|
384
|
+
[x: string]: unknown;
|
|
385
|
+
} | undefined;
|
|
332
386
|
mimeType?: string | undefined;
|
|
333
387
|
} | {
|
|
334
388
|
[x: string]: unknown;
|
|
335
389
|
uri: string;
|
|
336
390
|
blob: string;
|
|
391
|
+
_meta?: {
|
|
392
|
+
[x: string]: unknown;
|
|
393
|
+
} | undefined;
|
|
337
394
|
mimeType?: string | undefined;
|
|
338
395
|
};
|
|
396
|
+
_meta?: {
|
|
397
|
+
[x: string]: unknown;
|
|
398
|
+
} | undefined;
|
|
339
399
|
};
|
|
340
400
|
}[];
|
|
341
401
|
description?: string | undefined;
|
|
@@ -357,7 +417,11 @@ declare class MCPClient extends MastraBase {
|
|
|
357
417
|
[x: string]: unknown;
|
|
358
418
|
name: string;
|
|
359
419
|
uri: string;
|
|
420
|
+
title?: string | undefined;
|
|
360
421
|
description?: string | undefined;
|
|
422
|
+
_meta?: {
|
|
423
|
+
[x: string]: unknown;
|
|
424
|
+
} | undefined;
|
|
361
425
|
mimeType?: string | undefined;
|
|
362
426
|
}[]>>;
|
|
363
427
|
/**
|
|
@@ -572,6 +636,7 @@ declare class MCPServer extends MCPServerBase {
|
|
|
572
636
|
name: string;
|
|
573
637
|
description?: string;
|
|
574
638
|
inputSchema: any;
|
|
639
|
+
outputSchema?: any;
|
|
575
640
|
toolType?: MCPToolType;
|
|
576
641
|
}>;
|
|
577
642
|
};
|
|
@@ -584,6 +649,7 @@ declare class MCPServer extends MCPServerBase {
|
|
|
584
649
|
name: string;
|
|
585
650
|
description?: string;
|
|
586
651
|
inputSchema: any;
|
|
652
|
+
outputSchema?: any;
|
|
587
653
|
toolType?: MCPToolType;
|
|
588
654
|
} | undefined;
|
|
589
655
|
/**
|
|
@@ -712,31 +778,37 @@ export declare class ResourceClientActions {
|
|
|
712
778
|
contents: ZodArray<ZodUnion<[ZodObject<objectUtil.extendShape< {
|
|
713
779
|
uri: ZodString;
|
|
714
780
|
mimeType: ZodOptional<ZodString>;
|
|
781
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
715
782
|
}, {
|
|
716
783
|
text: ZodString;
|
|
717
784
|
}>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape< {
|
|
718
785
|
uri: ZodString;
|
|
719
786
|
mimeType: ZodOptional<ZodString>;
|
|
787
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
720
788
|
}, {
|
|
721
789
|
text: ZodString;
|
|
722
790
|
}>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape< {
|
|
723
791
|
uri: ZodString;
|
|
724
792
|
mimeType: ZodOptional<ZodString>;
|
|
793
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
725
794
|
}, {
|
|
726
795
|
text: ZodString;
|
|
727
796
|
}>, ZodTypeAny, "passthrough">>, ZodObject<objectUtil.extendShape< {
|
|
728
797
|
uri: ZodString;
|
|
729
798
|
mimeType: ZodOptional<ZodString>;
|
|
799
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
730
800
|
}, {
|
|
731
801
|
blob: ZodString;
|
|
732
802
|
}>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape< {
|
|
733
803
|
uri: ZodString;
|
|
734
804
|
mimeType: ZodOptional<ZodString>;
|
|
805
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
735
806
|
}, {
|
|
736
807
|
blob: ZodString;
|
|
737
808
|
}>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape< {
|
|
738
809
|
uri: ZodString;
|
|
739
810
|
mimeType: ZodOptional<ZodString>;
|
|
811
|
+
_meta: ZodOptional<ZodObject< {}, "passthrough", ZodTypeAny, objectOutputType< {}, ZodTypeAny, "passthrough">, objectInputType< {}, ZodTypeAny, "passthrough">>>;
|
|
740
812
|
}, {
|
|
741
813
|
blob: ZodString;
|
|
742
814
|
}>, ZodTypeAny, "passthrough">>]>, "many">;
|
|
@@ -864,76 +936,12 @@ location: z.ZodString;
|
|
|
864
936
|
location: string;
|
|
865
937
|
}, {
|
|
866
938
|
location: string;
|
|
867
|
-
}>, z.ZodObject<{
|
|
868
|
-
temperature: z.ZodNumber;
|
|
869
|
-
feelsLike: z.ZodNumber;
|
|
870
|
-
humidity: z.ZodNumber;
|
|
871
|
-
windSpeed: z.ZodNumber;
|
|
872
|
-
windGust: z.ZodNumber;
|
|
873
|
-
conditions: z.ZodString;
|
|
939
|
+
}>, undefined, ToolExecutionContext<z.ZodObject<{
|
|
874
940
|
location: z.ZodString;
|
|
875
941
|
}, "strip", z.ZodTypeAny, {
|
|
876
|
-
temperature: number;
|
|
877
942
|
location: string;
|
|
878
|
-
feelsLike: number;
|
|
879
|
-
humidity: number;
|
|
880
|
-
windSpeed: number;
|
|
881
|
-
windGust: number;
|
|
882
|
-
conditions: string;
|
|
883
943
|
}, {
|
|
884
|
-
temperature: number;
|
|
885
|
-
location: string;
|
|
886
|
-
feelsLike: number;
|
|
887
|
-
humidity: number;
|
|
888
|
-
windSpeed: number;
|
|
889
|
-
windGust: number;
|
|
890
|
-
conditions: string;
|
|
891
|
-
}>, ToolExecutionContext<z.ZodObject<{
|
|
892
|
-
location: z.ZodString;
|
|
893
|
-
}, "strip", z.ZodTypeAny, {
|
|
894
944
|
location: string;
|
|
895
|
-
}
|
|
896
|
-
location: string;
|
|
897
|
-
}>>> & {
|
|
898
|
-
inputSchema: z.ZodObject<{
|
|
899
|
-
location: z.ZodString;
|
|
900
|
-
}, "strip", z.ZodTypeAny, {
|
|
901
|
-
location: string;
|
|
902
|
-
}, {
|
|
903
|
-
location: string;
|
|
904
|
-
}>;
|
|
905
|
-
outputSchema: z.ZodObject<{
|
|
906
|
-
temperature: z.ZodNumber;
|
|
907
|
-
feelsLike: z.ZodNumber;
|
|
908
|
-
humidity: z.ZodNumber;
|
|
909
|
-
windSpeed: z.ZodNumber;
|
|
910
|
-
windGust: z.ZodNumber;
|
|
911
|
-
conditions: z.ZodString;
|
|
912
|
-
location: z.ZodString;
|
|
913
|
-
}, "strip", z.ZodTypeAny, {
|
|
914
|
-
temperature: number;
|
|
915
|
-
location: string;
|
|
916
|
-
feelsLike: number;
|
|
917
|
-
humidity: number;
|
|
918
|
-
windSpeed: number;
|
|
919
|
-
windGust: number;
|
|
920
|
-
conditions: string;
|
|
921
|
-
}, {
|
|
922
|
-
temperature: number;
|
|
923
|
-
location: string;
|
|
924
|
-
feelsLike: number;
|
|
925
|
-
humidity: number;
|
|
926
|
-
windSpeed: number;
|
|
927
|
-
windGust: number;
|
|
928
|
-
conditions: string;
|
|
929
|
-
}>;
|
|
930
|
-
execute: (context: ToolExecutionContext<z.ZodObject<{
|
|
931
|
-
location: z.ZodString;
|
|
932
|
-
}, "strip", z.ZodTypeAny, {
|
|
933
|
-
location: string;
|
|
934
|
-
}, {
|
|
935
|
-
location: string;
|
|
936
|
-
}>>) => Promise<any>;
|
|
937
|
-
};
|
|
945
|
+
}>>>;
|
|
938
946
|
|
|
939
947
|
export { }
|