tmcp 1.20.0 → 1.20.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.
@@ -0,0 +1,2618 @@
1
+ /**
2
+ * A required header was missing, malformed, or mismatched the request body.
3
+ */
4
+ export const HEADER_MISMATCH: -32020;
5
+ /**
6
+ * The request requires a client capability that was not declared.
7
+ * `error.data` contains `{ requiredCapabilities }`.
8
+ */
9
+ export const MISSING_REQUIRED_CLIENT_CAPABILITY: -32021;
10
+ /**
11
+ * The requested per-request protocol version is not supported.
12
+ * `error.data` contains `{ supported, requested }`.
13
+ */
14
+ export const UNSUPPORTED_PROTOCOL_VERSION: -32022;
15
+ export const SUBSCRIPTION_ID_META_KEY: "io.modelcontextprotocol/subscriptionId";
16
+ export class McpError extends JSONRPCErrorException {
17
+ constructor(code: number, message: string, data?: unknown);
18
+ }
19
+ /**
20
+ * The severity of a log message.
21
+ */
22
+ export const LoggingLevelSchema: v.PicklistSchema<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"], undefined>;
23
+ /**
24
+ * A request that expects a response.
25
+ */
26
+ export const JSONRPCRequestSchema: v.ObjectSchema<{
27
+ readonly method: v.StringSchema<undefined>;
28
+ readonly params: v.OptionalSchema<v.LooseObjectSchema<{
29
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
30
+ /**
31
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
32
+ */
33
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
34
+ }, undefined>, undefined>;
35
+ }, undefined>, undefined>;
36
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
37
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
38
+ }, undefined>;
39
+ /**
40
+ * A notification which does not expect a response.
41
+ */
42
+ export const JSONRPCNotificationSchema: v.ObjectSchema<{
43
+ readonly method: v.StringSchema<undefined>;
44
+ readonly params: v.OptionalSchema<v.LooseObjectSchema<{
45
+ /**
46
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
47
+ * for notes on _meta usage.
48
+ */
49
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
50
+ }, undefined>, undefined>;
51
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
52
+ }, undefined>;
53
+ /**
54
+ * A successful (non-error) response to a request.
55
+ */
56
+ export const JSONRPCResponseSchema: v.StrictObjectSchema<{
57
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
58
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
59
+ readonly result: v.LooseObjectSchema<{
60
+ /**
61
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
62
+ * for notes on _meta usage.
63
+ */
64
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
65
+ }, undefined>;
66
+ }, undefined>;
67
+ export const JSONRPCMessageSchema: v.UnionSchema<[v.ObjectSchema<{
68
+ readonly method: v.StringSchema<undefined>;
69
+ readonly params: v.OptionalSchema<v.LooseObjectSchema<{
70
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
71
+ /**
72
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
73
+ */
74
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
75
+ }, undefined>, undefined>;
76
+ }, undefined>, undefined>;
77
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
78
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
79
+ }, undefined>, v.ObjectSchema<{
80
+ readonly method: v.StringSchema<undefined>;
81
+ readonly params: v.OptionalSchema<v.LooseObjectSchema<{
82
+ /**
83
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
84
+ * for notes on _meta usage.
85
+ */
86
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
87
+ }, undefined>, undefined>;
88
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
89
+ }, undefined>, v.StrictObjectSchema<{
90
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
91
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
92
+ readonly result: v.LooseObjectSchema<{
93
+ /**
94
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
95
+ * for notes on _meta usage.
96
+ */
97
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
98
+ }, undefined>;
99
+ }, undefined>, v.StrictObjectSchema<{
100
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
101
+ readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
102
+ readonly error: v.ObjectSchema<{
103
+ /**
104
+ * The error type that occurred.
105
+ */
106
+ readonly code: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
107
+ /**
108
+ * A short description of the error. The message SHOULD be limited to a concise single sentence.
109
+ */
110
+ readonly message: v.StringSchema<undefined>;
111
+ /**
112
+ * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
113
+ */
114
+ readonly data: v.OptionalSchema<v.UnknownSchema, undefined>;
115
+ }, undefined>;
116
+ }, undefined>], undefined>;
117
+ /**
118
+ * Describes the name and version of an MCP implementation.
119
+ */
120
+ export const ImplementationSchema: v.ObjectSchema<{
121
+ /**
122
+ * Optional set of sized icons that the client can display in a user interface.
123
+ *
124
+ * Clients that support rendering icons MUST support at least the following MIME types:
125
+ * - `image/png` - PNG images (safe, universal compatibility)
126
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
127
+ *
128
+ * Clients that support rendering icons SHOULD also support:
129
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
130
+ * - `image/webp` - WebP images (modern, efficient format)
131
+ */
132
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
133
+ /**
134
+ * URL or data URI for the icon.
135
+ */
136
+ readonly src: v.StringSchema<undefined>;
137
+ /**
138
+ * Optional MIME type for the icon.
139
+ */
140
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
141
+ /**
142
+ * Optional array of strings that specify sizes at which the icon can be used.
143
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
144
+ *
145
+ * If not provided, the client should assume that the icon can be used at any size.
146
+ */
147
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
148
+ }, undefined>, undefined>, undefined>;
149
+ readonly version: v.StringSchema<undefined>;
150
+ readonly websiteUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
151
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
152
+ readonly name: v.StringSchema<undefined>;
153
+ /**
154
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
155
+ * even by those unfamiliar with domain-specific terminology.
156
+ *
157
+ * If not provided, the name should be used for display (except for Tool,
158
+ * where `annotations.title` should be given precedence over using `name`,
159
+ * if present).
160
+ */
161
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
162
+ }, undefined>;
163
+ /**
164
+ * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
165
+ */
166
+ export const ClientCapabilitiesSchema: v.LooseObjectSchema<{
167
+ /**
168
+ * Experimental, non-standard capabilities that the client supports.
169
+ */
170
+ readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
171
+ /**
172
+ * Present if the client supports sampling from an LLM.
173
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
174
+ */
175
+ readonly sampling: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
176
+ /**
177
+ * Present if the client supports eliciting user input.
178
+ * Accepts both the legacy bare `{}` shape and the modern `{ form?, url? }` sub-shapes.
179
+ */
180
+ readonly elicitation: v.OptionalSchema<v.LooseObjectSchema<{
181
+ readonly form: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
182
+ readonly url: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
183
+ }, undefined>, undefined>;
184
+ /**
185
+ * Extensions supported by the client, keyed by prefixed extension identifier.
186
+ */
187
+ readonly extensions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.LooseObjectSchema<{}, undefined>, undefined>, undefined>;
188
+ /**
189
+ * Present if the client supports listing roots.
190
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
191
+ */
192
+ readonly roots: v.OptionalSchema<v.LooseObjectSchema<{
193
+ /**
194
+ * Whether the client supports issuing notifications for changes to the roots list.
195
+ */
196
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
197
+ }, undefined>, undefined>;
198
+ }, undefined>;
199
+ export const InitializeRequestParamsSchema: v.ObjectSchema<{
200
+ /**
201
+ * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
202
+ */
203
+ readonly protocolVersion: v.StringSchema<undefined>;
204
+ readonly capabilities: v.LooseObjectSchema<{
205
+ /**
206
+ * Experimental, non-standard capabilities that the client supports.
207
+ */
208
+ readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
209
+ /**
210
+ * Present if the client supports sampling from an LLM.
211
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
212
+ */
213
+ readonly sampling: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
214
+ /**
215
+ * Present if the client supports eliciting user input.
216
+ * Accepts both the legacy bare `{}` shape and the modern `{ form?, url? }` sub-shapes.
217
+ */
218
+ readonly elicitation: v.OptionalSchema<v.LooseObjectSchema<{
219
+ readonly form: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
220
+ readonly url: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
221
+ }, undefined>, undefined>;
222
+ /**
223
+ * Extensions supported by the client, keyed by prefixed extension identifier.
224
+ */
225
+ readonly extensions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.LooseObjectSchema<{}, undefined>, undefined>, undefined>;
226
+ /**
227
+ * Present if the client supports listing roots.
228
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
229
+ */
230
+ readonly roots: v.OptionalSchema<v.LooseObjectSchema<{
231
+ /**
232
+ * Whether the client supports issuing notifications for changes to the roots list.
233
+ */
234
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
235
+ }, undefined>, undefined>;
236
+ }, undefined>;
237
+ readonly clientInfo: v.ObjectSchema<{
238
+ /**
239
+ * Optional set of sized icons that the client can display in a user interface.
240
+ *
241
+ * Clients that support rendering icons MUST support at least the following MIME types:
242
+ * - `image/png` - PNG images (safe, universal compatibility)
243
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
244
+ *
245
+ * Clients that support rendering icons SHOULD also support:
246
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
247
+ * - `image/webp` - WebP images (modern, efficient format)
248
+ */
249
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
250
+ /**
251
+ * URL or data URI for the icon.
252
+ */
253
+ readonly src: v.StringSchema<undefined>;
254
+ /**
255
+ * Optional MIME type for the icon.
256
+ */
257
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
258
+ /**
259
+ * Optional array of strings that specify sizes at which the icon can be used.
260
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
261
+ *
262
+ * If not provided, the client should assume that the icon can be used at any size.
263
+ */
264
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
265
+ }, undefined>, undefined>, undefined>;
266
+ readonly version: v.StringSchema<undefined>;
267
+ readonly websiteUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
268
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
269
+ readonly name: v.StringSchema<undefined>;
270
+ /**
271
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
272
+ * even by those unfamiliar with domain-specific terminology.
273
+ *
274
+ * If not provided, the name should be used for display (except for Tool,
275
+ * where `annotations.title` should be given precedence over using `name`,
276
+ * if present).
277
+ */
278
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
279
+ }, undefined>;
280
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
281
+ /**
282
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
283
+ */
284
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
285
+ }, undefined>, undefined>;
286
+ }, undefined>;
287
+ /**
288
+ * The server's response to a resources/read request from the client.
289
+ */
290
+ export const ReadResourceResultSchema: v.LooseObjectSchema<{
291
+ readonly contents: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
292
+ /**
293
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
294
+ */
295
+ readonly text: v.StringSchema<undefined>;
296
+ /**
297
+ * The URI of this resource.
298
+ */
299
+ readonly uri: v.StringSchema<undefined>;
300
+ /**
301
+ * The MIME type of this resource, if known.
302
+ */
303
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
304
+ /**
305
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
306
+ * for notes on _meta usage.
307
+ */
308
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
309
+ }, undefined>, v.ObjectSchema<{
310
+ /**
311
+ * A base64-encoded string representing the binary data of the item.
312
+ */
313
+ readonly blob: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
314
+ /**
315
+ * The URI of this resource.
316
+ */
317
+ readonly uri: v.StringSchema<undefined>;
318
+ /**
319
+ * The MIME type of this resource, if known.
320
+ */
321
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
322
+ /**
323
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
324
+ * for notes on _meta usage.
325
+ */
326
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
327
+ }, undefined>], undefined>, undefined>;
328
+ /**
329
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
330
+ * for notes on _meta usage.
331
+ */
332
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
333
+ }, undefined>;
334
+ export const DiscoverRequestParamsSchema: v.LooseObjectSchema<{
335
+ readonly _meta: v.LooseObjectSchema<{
336
+ readonly 'io.modelcontextprotocol/protocolVersion': v.StringSchema<undefined>;
337
+ readonly 'io.modelcontextprotocol/clientCapabilities': v.LooseObjectSchema<{
338
+ /**
339
+ * Experimental, non-standard capabilities that the client supports.
340
+ */
341
+ readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
342
+ /**
343
+ * Present if the client supports sampling from an LLM.
344
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
345
+ */
346
+ readonly sampling: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
347
+ /**
348
+ * Present if the client supports eliciting user input.
349
+ * Accepts both the legacy bare `{}` shape and the modern `{ form?, url? }` sub-shapes.
350
+ */
351
+ readonly elicitation: v.OptionalSchema<v.LooseObjectSchema<{
352
+ readonly form: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
353
+ readonly url: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
354
+ }, undefined>, undefined>;
355
+ /**
356
+ * Extensions supported by the client, keyed by prefixed extension identifier.
357
+ */
358
+ readonly extensions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.LooseObjectSchema<{}, undefined>, undefined>, undefined>;
359
+ /**
360
+ * Present if the client supports listing roots.
361
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
362
+ */
363
+ readonly roots: v.OptionalSchema<v.LooseObjectSchema<{
364
+ /**
365
+ * Whether the client supports issuing notifications for changes to the roots list.
366
+ */
367
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
368
+ }, undefined>, undefined>;
369
+ }, undefined>;
370
+ readonly 'io.modelcontextprotocol/clientInfo': v.OptionalSchema<v.ObjectSchema<{
371
+ /**
372
+ * Optional set of sized icons that the client can display in a user interface.
373
+ *
374
+ * Clients that support rendering icons MUST support at least the following MIME types:
375
+ * - `image/png` - PNG images (safe, universal compatibility)
376
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
377
+ *
378
+ * Clients that support rendering icons SHOULD also support:
379
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
380
+ * - `image/webp` - WebP images (modern, efficient format)
381
+ */
382
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
383
+ /**
384
+ * URL or data URI for the icon.
385
+ */
386
+ readonly src: v.StringSchema<undefined>;
387
+ /**
388
+ * Optional MIME type for the icon.
389
+ */
390
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
391
+ /**
392
+ * Optional array of strings that specify sizes at which the icon can be used.
393
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
394
+ *
395
+ * If not provided, the client should assume that the icon can be used at any size.
396
+ */
397
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
398
+ }, undefined>, undefined>, undefined>;
399
+ readonly version: v.StringSchema<undefined>;
400
+ readonly websiteUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
401
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
402
+ readonly name: v.StringSchema<undefined>;
403
+ /**
404
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
405
+ * even by those unfamiliar with domain-specific terminology.
406
+ *
407
+ * If not provided, the name should be used for display (except for Tool,
408
+ * where `annotations.title` should be given precedence over using `name`,
409
+ * if present).
410
+ */
411
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
412
+ }, undefined>, undefined>;
413
+ readonly 'io.modelcontextprotocol/logLevel': v.OptionalSchema<v.PicklistSchema<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"], undefined>, undefined>;
414
+ /**
415
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
416
+ */
417
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
418
+ }, undefined>;
419
+ }, undefined>;
420
+ export const SubscriptionsListenRequestSchema: v.ObjectSchema<{
421
+ readonly method: v.LiteralSchema<"subscriptions/listen", undefined>;
422
+ readonly params: v.ObjectSchema<{
423
+ readonly _meta: v.LooseObjectSchema<{
424
+ readonly 'io.modelcontextprotocol/protocolVersion': v.StringSchema<undefined>;
425
+ readonly 'io.modelcontextprotocol/clientCapabilities': v.LooseObjectSchema<{
426
+ /**
427
+ * Experimental, non-standard capabilities that the client supports.
428
+ */
429
+ readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
430
+ /**
431
+ * Present if the client supports sampling from an LLM.
432
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
433
+ */
434
+ readonly sampling: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
435
+ /**
436
+ * Present if the client supports eliciting user input.
437
+ * Accepts both the legacy bare `{}` shape and the modern `{ form?, url? }` sub-shapes.
438
+ */
439
+ readonly elicitation: v.OptionalSchema<v.LooseObjectSchema<{
440
+ readonly form: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
441
+ readonly url: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
442
+ }, undefined>, undefined>;
443
+ /**
444
+ * Extensions supported by the client, keyed by prefixed extension identifier.
445
+ */
446
+ readonly extensions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.LooseObjectSchema<{}, undefined>, undefined>, undefined>;
447
+ /**
448
+ * Present if the client supports listing roots.
449
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
450
+ */
451
+ readonly roots: v.OptionalSchema<v.LooseObjectSchema<{
452
+ /**
453
+ * Whether the client supports issuing notifications for changes to the roots list.
454
+ */
455
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
456
+ }, undefined>, undefined>;
457
+ }, undefined>;
458
+ readonly 'io.modelcontextprotocol/clientInfo': v.OptionalSchema<v.ObjectSchema<{
459
+ /**
460
+ * Optional set of sized icons that the client can display in a user interface.
461
+ *
462
+ * Clients that support rendering icons MUST support at least the following MIME types:
463
+ * - `image/png` - PNG images (safe, universal compatibility)
464
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
465
+ *
466
+ * Clients that support rendering icons SHOULD also support:
467
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
468
+ * - `image/webp` - WebP images (modern, efficient format)
469
+ */
470
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
471
+ /**
472
+ * URL or data URI for the icon.
473
+ */
474
+ readonly src: v.StringSchema<undefined>;
475
+ /**
476
+ * Optional MIME type for the icon.
477
+ */
478
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
479
+ /**
480
+ * Optional array of strings that specify sizes at which the icon can be used.
481
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
482
+ *
483
+ * If not provided, the client should assume that the icon can be used at any size.
484
+ */
485
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
486
+ }, undefined>, undefined>, undefined>;
487
+ readonly version: v.StringSchema<undefined>;
488
+ readonly websiteUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
489
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
490
+ readonly name: v.StringSchema<undefined>;
491
+ /**
492
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
493
+ * even by those unfamiliar with domain-specific terminology.
494
+ *
495
+ * If not provided, the name should be used for display (except for Tool,
496
+ * where `annotations.title` should be given precedence over using `name`,
497
+ * if present).
498
+ */
499
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
500
+ }, undefined>, undefined>;
501
+ readonly 'io.modelcontextprotocol/logLevel': v.OptionalSchema<v.PicklistSchema<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"], undefined>, undefined>;
502
+ /**
503
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
504
+ */
505
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
506
+ }, undefined>;
507
+ readonly notifications: v.ObjectSchema<{
508
+ readonly toolsListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
509
+ readonly promptsListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
510
+ readonly resourcesListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
511
+ readonly resourceSubscriptions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
512
+ }, undefined>;
513
+ }, undefined>;
514
+ }, undefined>;
515
+ /**
516
+ * Returned when the server gracefully closes a subscription stream.
517
+ */
518
+ export const SubscriptionsListenResultSchema: v.LooseObjectSchema<{
519
+ readonly resultType: v.LiteralSchema<"complete", undefined>;
520
+ readonly _meta: v.LooseObjectSchema<{
521
+ readonly "io.modelcontextprotocol/subscriptionId": v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
522
+ }, undefined>;
523
+ }, undefined>;
524
+ /**
525
+ * The first notification emitted for a per-request subscription stream.
526
+ */
527
+ export const SubscriptionsAcknowledgedNotificationSchema: v.ObjectSchema<{
528
+ readonly method: v.LiteralSchema<"notifications/subscriptions/acknowledged", undefined>;
529
+ readonly params: v.ObjectSchema<{
530
+ readonly _meta: v.LooseObjectSchema<{
531
+ readonly "io.modelcontextprotocol/subscriptionId": v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
532
+ }, undefined>;
533
+ readonly notifications: v.ObjectSchema<{
534
+ readonly toolsListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
535
+ readonly promptsListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
536
+ readonly resourcesListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
537
+ readonly resourceSubscriptions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
538
+ }, undefined>;
539
+ }, undefined>;
540
+ }, undefined>;
541
+ /**
542
+ * The server's response to a prompts/get request from the client.
543
+ */
544
+ export const GetPromptResultSchema: v.LooseObjectSchema<{
545
+ /**
546
+ * An optional description for the prompt.
547
+ */
548
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
549
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
550
+ readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
551
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
552
+ readonly type: v.LiteralSchema<"text", undefined>;
553
+ /**
554
+ * The text content of the message.
555
+ */
556
+ readonly text: v.StringSchema<undefined>;
557
+ /**
558
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
559
+ * for notes on _meta usage.
560
+ */
561
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
562
+ }, undefined>, v.ObjectSchema<{
563
+ readonly type: v.LiteralSchema<"image", undefined>;
564
+ /**
565
+ * The base64-encoded image data.
566
+ */
567
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
568
+ /**
569
+ * The MIME type of the image. Different providers may support different image types.
570
+ */
571
+ readonly mimeType: v.StringSchema<undefined>;
572
+ /**
573
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
574
+ * for notes on _meta usage.
575
+ */
576
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
577
+ }, undefined>, v.ObjectSchema<{
578
+ readonly type: v.LiteralSchema<"audio", undefined>;
579
+ /**
580
+ * The base64-encoded audio data.
581
+ */
582
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
583
+ /**
584
+ * The MIME type of the audio. Different providers may support different audio types.
585
+ */
586
+ readonly mimeType: v.StringSchema<undefined>;
587
+ /**
588
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
589
+ * for notes on _meta usage.
590
+ */
591
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
592
+ }, undefined>, v.ObjectSchema<{
593
+ readonly type: v.LiteralSchema<"resource_link", undefined>;
594
+ /**
595
+ * Optional set of sized icons that the client can display in a user interface.
596
+ *
597
+ * Clients that support rendering icons MUST support at least the following MIME types:
598
+ * - `image/png` - PNG images (safe, universal compatibility)
599
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
600
+ *
601
+ * Clients that support rendering icons SHOULD also support:
602
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
603
+ * - `image/webp` - WebP images (modern, efficient format)
604
+ */
605
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
606
+ /**
607
+ * URL or data URI for the icon.
608
+ */
609
+ readonly src: v.StringSchema<undefined>;
610
+ /**
611
+ * Optional MIME type for the icon.
612
+ */
613
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
614
+ /**
615
+ * Optional array of strings that specify sizes at which the icon can be used.
616
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
617
+ *
618
+ * If not provided, the client should assume that the icon can be used at any size.
619
+ */
620
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
621
+ }, undefined>, undefined>, undefined>;
622
+ /**
623
+ * The URI of this resource.
624
+ */
625
+ readonly uri: v.StringSchema<undefined>;
626
+ /**
627
+ * A description of what this resource represents.
628
+ *
629
+ * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
630
+ */
631
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
632
+ /**
633
+ * The MIME type of this resource, if known.
634
+ */
635
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
636
+ /**
637
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
638
+ * for notes on _meta usage.
639
+ */
640
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
641
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
642
+ readonly name: v.StringSchema<undefined>;
643
+ /**
644
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
645
+ * even by those unfamiliar with domain-specific terminology.
646
+ *
647
+ * If not provided, the name should be used for display (except for Tool,
648
+ * where `annotations.title` should be given precedence over using `name`,
649
+ * if present).
650
+ */
651
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
652
+ }, undefined>, v.ObjectSchema<{
653
+ readonly type: v.LiteralSchema<"resource", undefined>;
654
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
655
+ /**
656
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
657
+ */
658
+ readonly text: v.StringSchema<undefined>;
659
+ /**
660
+ * The URI of this resource.
661
+ */
662
+ readonly uri: v.StringSchema<undefined>;
663
+ /**
664
+ * The MIME type of this resource, if known.
665
+ */
666
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
667
+ /**
668
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
669
+ * for notes on _meta usage.
670
+ */
671
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
672
+ }, undefined>, v.ObjectSchema<{
673
+ /**
674
+ * A base64-encoded string representing the binary data of the item.
675
+ */
676
+ readonly blob: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
677
+ /**
678
+ * The URI of this resource.
679
+ */
680
+ readonly uri: v.StringSchema<undefined>;
681
+ /**
682
+ * The MIME type of this resource, if known.
683
+ */
684
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
685
+ /**
686
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
687
+ * for notes on _meta usage.
688
+ */
689
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
690
+ }, undefined>], undefined>;
691
+ /**
692
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
693
+ * for notes on _meta usage.
694
+ */
695
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
696
+ }, undefined>], undefined>;
697
+ }, undefined>, undefined>;
698
+ /**
699
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
700
+ * for notes on _meta usage.
701
+ */
702
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
703
+ }, undefined>;
704
+ /**
705
+ * The server's response to a tool call.
706
+ */
707
+ export const CallToolResultSchema: v.LooseObjectSchema<{
708
+ /**
709
+ * A list of content objects that represent the result of the tool call.
710
+ *
711
+ * If the Tool does not define an outputSchema, this field MUST be present in the result.
712
+ * For backwards compatibility, this field is always present, but it may be empty.
713
+ */
714
+ readonly content: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
715
+ readonly type: v.LiteralSchema<"text", undefined>;
716
+ /**
717
+ * The text content of the message.
718
+ */
719
+ readonly text: v.StringSchema<undefined>;
720
+ /**
721
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
722
+ * for notes on _meta usage.
723
+ */
724
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
725
+ }, undefined>, v.ObjectSchema<{
726
+ readonly type: v.LiteralSchema<"image", undefined>;
727
+ /**
728
+ * The base64-encoded image data.
729
+ */
730
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
731
+ /**
732
+ * The MIME type of the image. Different providers may support different image types.
733
+ */
734
+ readonly mimeType: v.StringSchema<undefined>;
735
+ /**
736
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
737
+ * for notes on _meta usage.
738
+ */
739
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
740
+ }, undefined>, v.ObjectSchema<{
741
+ readonly type: v.LiteralSchema<"audio", undefined>;
742
+ /**
743
+ * The base64-encoded audio data.
744
+ */
745
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
746
+ /**
747
+ * The MIME type of the audio. Different providers may support different audio types.
748
+ */
749
+ readonly mimeType: v.StringSchema<undefined>;
750
+ /**
751
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
752
+ * for notes on _meta usage.
753
+ */
754
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
755
+ }, undefined>, v.ObjectSchema<{
756
+ readonly type: v.LiteralSchema<"resource_link", undefined>;
757
+ /**
758
+ * Optional set of sized icons that the client can display in a user interface.
759
+ *
760
+ * Clients that support rendering icons MUST support at least the following MIME types:
761
+ * - `image/png` - PNG images (safe, universal compatibility)
762
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
763
+ *
764
+ * Clients that support rendering icons SHOULD also support:
765
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
766
+ * - `image/webp` - WebP images (modern, efficient format)
767
+ */
768
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
769
+ /**
770
+ * URL or data URI for the icon.
771
+ */
772
+ readonly src: v.StringSchema<undefined>;
773
+ /**
774
+ * Optional MIME type for the icon.
775
+ */
776
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
777
+ /**
778
+ * Optional array of strings that specify sizes at which the icon can be used.
779
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
780
+ *
781
+ * If not provided, the client should assume that the icon can be used at any size.
782
+ */
783
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
784
+ }, undefined>, undefined>, undefined>;
785
+ /**
786
+ * The URI of this resource.
787
+ */
788
+ readonly uri: v.StringSchema<undefined>;
789
+ /**
790
+ * A description of what this resource represents.
791
+ *
792
+ * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
793
+ */
794
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
795
+ /**
796
+ * The MIME type of this resource, if known.
797
+ */
798
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
799
+ /**
800
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
801
+ * for notes on _meta usage.
802
+ */
803
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
804
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
805
+ readonly name: v.StringSchema<undefined>;
806
+ /**
807
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
808
+ * even by those unfamiliar with domain-specific terminology.
809
+ *
810
+ * If not provided, the name should be used for display (except for Tool,
811
+ * where `annotations.title` should be given precedence over using `name`,
812
+ * if present).
813
+ */
814
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
815
+ }, undefined>, v.ObjectSchema<{
816
+ readonly type: v.LiteralSchema<"resource", undefined>;
817
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
818
+ /**
819
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
820
+ */
821
+ readonly text: v.StringSchema<undefined>;
822
+ /**
823
+ * The URI of this resource.
824
+ */
825
+ readonly uri: v.StringSchema<undefined>;
826
+ /**
827
+ * The MIME type of this resource, if known.
828
+ */
829
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
830
+ /**
831
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
832
+ * for notes on _meta usage.
833
+ */
834
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
835
+ }, undefined>, v.ObjectSchema<{
836
+ /**
837
+ * A base64-encoded string representing the binary data of the item.
838
+ */
839
+ readonly blob: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
840
+ /**
841
+ * The URI of this resource.
842
+ */
843
+ readonly uri: v.StringSchema<undefined>;
844
+ /**
845
+ * The MIME type of this resource, if known.
846
+ */
847
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
848
+ /**
849
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
850
+ * for notes on _meta usage.
851
+ */
852
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
853
+ }, undefined>], undefined>;
854
+ /**
855
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
856
+ * for notes on _meta usage.
857
+ */
858
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
859
+ }, undefined>], undefined>, undefined>, readonly []>;
860
+ /**
861
+ * Structured tool output. May be ANY JSON value, not only objects.
862
+ *
863
+ * If the Tool defines an outputSchema, this field MUST be present in the result and match the schema.
864
+ */
865
+ readonly structuredContent: v.OptionalSchema<v.UnknownSchema, undefined>;
866
+ /**
867
+ * Whether the tool call ended in an error.
868
+ *
869
+ * If not set, this is assumed to be false (the call was successful).
870
+ *
871
+ * Any errors that originate from the tool SHOULD be reported inside the result
872
+ * object, with `isError` set to true, _not_ as an MCP protocol-level error
873
+ * response. Otherwise, the LLM would not be able to see that an error occurred
874
+ * and self-correct.
875
+ *
876
+ * However, any errors in _finding_ the tool, an error indicating that the
877
+ * server does not support tool calls, or any other exceptional conditions,
878
+ * should be reported as an MCP error response.
879
+ */
880
+ readonly isError: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
881
+ /**
882
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
883
+ * for notes on _meta usage.
884
+ */
885
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
886
+ }, undefined>;
887
+ export const CreateMessageRequestParamsSchema: v.ObjectSchema<{
888
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
889
+ readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
890
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
891
+ readonly type: v.LiteralSchema<"text", undefined>;
892
+ /**
893
+ * The text content of the message.
894
+ */
895
+ readonly text: v.StringSchema<undefined>;
896
+ /**
897
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
898
+ * for notes on _meta usage.
899
+ */
900
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
901
+ }, undefined>, v.ObjectSchema<{
902
+ readonly type: v.LiteralSchema<"image", undefined>;
903
+ /**
904
+ * The base64-encoded image data.
905
+ */
906
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
907
+ /**
908
+ * The MIME type of the image. Different providers may support different image types.
909
+ */
910
+ readonly mimeType: v.StringSchema<undefined>;
911
+ /**
912
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
913
+ * for notes on _meta usage.
914
+ */
915
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
916
+ }, undefined>, v.ObjectSchema<{
917
+ readonly type: v.LiteralSchema<"audio", undefined>;
918
+ /**
919
+ * The base64-encoded audio data.
920
+ */
921
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
922
+ /**
923
+ * The MIME type of the audio. Different providers may support different audio types.
924
+ */
925
+ readonly mimeType: v.StringSchema<undefined>;
926
+ /**
927
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
928
+ * for notes on _meta usage.
929
+ */
930
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
931
+ }, undefined>], undefined>;
932
+ }, undefined>, undefined>;
933
+ /**
934
+ * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
935
+ */
936
+ readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
937
+ /**
938
+ * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
939
+ */
940
+ readonly includeContext: v.OptionalSchema<v.PicklistSchema<["none", "thisServer", "allServers"], undefined>, undefined>;
941
+ readonly temperature: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
942
+ /**
943
+ * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested.
944
+ */
945
+ readonly maxTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
946
+ readonly stopSequences: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
947
+ /**
948
+ * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
949
+ */
950
+ readonly metadata: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
951
+ /**
952
+ * The server's preferences for which model to select.
953
+ */
954
+ readonly modelPreferences: v.OptionalSchema<v.ObjectSchema<{
955
+ /**
956
+ * Optional hints to use for model selection.
957
+ */
958
+ readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
959
+ /**
960
+ * A hint for a model name.
961
+ */
962
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
963
+ }, undefined>, undefined>, undefined>;
964
+ /**
965
+ * How much to prioritize cost when selecting a model.
966
+ */
967
+ readonly costPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
968
+ /**
969
+ * How much to prioritize sampling speed (latency) when selecting a model.
970
+ */
971
+ readonly speedPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
972
+ /**
973
+ * How much to prioritize intelligence and capabilities when selecting a model.
974
+ */
975
+ readonly intelligencePriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
976
+ }, undefined>, undefined>;
977
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
978
+ /**
979
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
980
+ */
981
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
982
+ }, undefined>, undefined>;
983
+ }, undefined>;
984
+ /**
985
+ * The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
986
+ */
987
+ export const CreateMessageResultSchema: v.ObjectSchema<{
988
+ /**
989
+ * The name of the model that generated the message.
990
+ */
991
+ readonly model: v.StringSchema<undefined>;
992
+ /**
993
+ * The reason why sampling stopped.
994
+ */
995
+ readonly stopReason: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["endTurn", "stopSequence", "maxTokens"], undefined>, v.StringSchema<undefined>], undefined>, undefined>;
996
+ readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
997
+ readonly content: v.VariantSchema<"type", [v.ObjectSchema<{
998
+ readonly type: v.LiteralSchema<"text", undefined>;
999
+ /**
1000
+ * The text content of the message.
1001
+ */
1002
+ readonly text: v.StringSchema<undefined>;
1003
+ /**
1004
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1005
+ * for notes on _meta usage.
1006
+ */
1007
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1008
+ }, undefined>, v.ObjectSchema<{
1009
+ readonly type: v.LiteralSchema<"image", undefined>;
1010
+ /**
1011
+ * The base64-encoded image data.
1012
+ */
1013
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
1014
+ /**
1015
+ * The MIME type of the image. Different providers may support different image types.
1016
+ */
1017
+ readonly mimeType: v.StringSchema<undefined>;
1018
+ /**
1019
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1020
+ * for notes on _meta usage.
1021
+ */
1022
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1023
+ }, undefined>, v.ObjectSchema<{
1024
+ readonly type: v.LiteralSchema<"audio", undefined>;
1025
+ /**
1026
+ * The base64-encoded audio data.
1027
+ */
1028
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
1029
+ /**
1030
+ * The MIME type of the audio. Different providers may support different audio types.
1031
+ */
1032
+ readonly mimeType: v.StringSchema<undefined>;
1033
+ /**
1034
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1035
+ * for notes on _meta usage.
1036
+ */
1037
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1038
+ }, undefined>], undefined>;
1039
+ /**
1040
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1041
+ * for notes on _meta usage.
1042
+ */
1043
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1044
+ }, undefined>;
1045
+ /**
1046
+ * The client's response to an elicitation/create request from the server.
1047
+ */
1048
+ export const ElicitResultSchema: v.ObjectSchema<{
1049
+ /**
1050
+ * The user's response action.
1051
+ */
1052
+ readonly action: v.PicklistSchema<["accept", "decline", "cancel"], undefined>;
1053
+ /**
1054
+ * The collected user input content (only present if action is "accept").
1055
+ */
1056
+ readonly content: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1057
+ /**
1058
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1059
+ * for notes on _meta usage.
1060
+ */
1061
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1062
+ }, undefined>;
1063
+ /**
1064
+ * The server's response to a completion/complete request
1065
+ */
1066
+ export const CompleteResultSchema: v.LooseObjectSchema<{
1067
+ readonly completion: v.ObjectSchema<{
1068
+ /**
1069
+ * An array of completion values. Must not exceed 100 items.
1070
+ */
1071
+ readonly values: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>;
1072
+ /**
1073
+ * The total number of completion options available. This can exceed the number of values actually sent in the response.
1074
+ */
1075
+ readonly total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
1076
+ /**
1077
+ * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
1078
+ */
1079
+ readonly hasMore: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1080
+ }, undefined>;
1081
+ /**
1082
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1083
+ * for notes on _meta usage.
1084
+ */
1085
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1086
+ }, undefined>;
1087
+ /**
1088
+ * Answers returned by the client. Each name matches one from `inputRequests`.
1089
+ * tmcp checks an answer when the handler reaches the matching input call, so
1090
+ * unrelated answers are left alone.
1091
+ */
1092
+ export const InputResponsesSchema: v.CustomSchema<any, "Expected an input response map">;
1093
+ /**
1094
+ * A result sent by the server to indicate that additional input is needed
1095
+ * before the request can be completed. At least one of `inputRequests` or
1096
+ * `requestState` MUST be present.
1097
+ */
1098
+ export const InputRequiredResultSchema: v.SchemaWithPipe<readonly [v.LooseObjectSchema<{
1099
+ readonly resultType: v.LiteralSchema<"input_required", undefined>;
1100
+ readonly inputRequests: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.ObjectSchema<{
1101
+ readonly method: v.LiteralSchema<"elicitation/create", undefined>;
1102
+ readonly params: v.UnionSchema<[v.ObjectSchema<{
1103
+ readonly mode: v.OptionalSchema<v.LiteralSchema<"form", undefined>, undefined>;
1104
+ /**
1105
+ * The message to present to the user.
1106
+ */
1107
+ readonly message: v.StringSchema<undefined>;
1108
+ /**
1109
+ * The schema for the requested user input.
1110
+ */
1111
+ readonly requestedSchema: v.ObjectSchema<{
1112
+ readonly $schema: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1113
+ readonly type: v.LiteralSchema<"object", undefined>;
1114
+ readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.ObjectSchema<{
1115
+ readonly type: v.LiteralSchema<"boolean", undefined>;
1116
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1117
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1118
+ readonly default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1119
+ }, undefined>, v.ObjectSchema<{
1120
+ readonly type: v.PicklistSchema<["number", "integer"], undefined>;
1121
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1122
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1123
+ readonly minimum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1124
+ readonly maximum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1125
+ readonly default: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1126
+ }, undefined>, v.UnionSchema<[v.ObjectSchema<{
1127
+ readonly type: v.LiteralSchema<"string", undefined>;
1128
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1129
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1130
+ readonly enum: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1131
+ readonly enumNames: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1132
+ readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1133
+ }, undefined>, v.ObjectSchema<{
1134
+ readonly type: v.LiteralSchema<"string", undefined>;
1135
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1136
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1137
+ readonly enum: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1138
+ readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1139
+ }, undefined>, v.ObjectSchema<{
1140
+ readonly type: v.LiteralSchema<"string", undefined>;
1141
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1142
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1143
+ readonly oneOf: v.ArraySchema<v.ObjectSchema<{
1144
+ readonly const: v.StringSchema<undefined>;
1145
+ readonly title: v.StringSchema<undefined>;
1146
+ }, undefined>, undefined>;
1147
+ readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1148
+ }, undefined>, v.ObjectSchema<{
1149
+ readonly type: v.LiteralSchema<"array", undefined>;
1150
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1151
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1152
+ readonly minItems: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1153
+ readonly maxItems: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1154
+ readonly items: v.ObjectSchema<{
1155
+ readonly type: v.LiteralSchema<"string", undefined>;
1156
+ readonly enum: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1157
+ }, undefined>;
1158
+ readonly default: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1159
+ }, undefined>, v.ObjectSchema<{
1160
+ readonly type: v.LiteralSchema<"array", undefined>;
1161
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1162
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1163
+ readonly minItems: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1164
+ readonly maxItems: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1165
+ readonly items: v.ObjectSchema<{
1166
+ readonly anyOf: v.ArraySchema<v.ObjectSchema<{
1167
+ readonly const: v.StringSchema<undefined>;
1168
+ readonly title: v.StringSchema<undefined>;
1169
+ }, undefined>, undefined>;
1170
+ }, undefined>;
1171
+ readonly default: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1172
+ }, undefined>], undefined>, v.ObjectSchema<{
1173
+ readonly type: v.LiteralSchema<"string", undefined>;
1174
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1175
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1176
+ readonly minLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1177
+ readonly maxLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1178
+ readonly format: v.OptionalSchema<v.PicklistSchema<["email", "uri", "date", "date-time"], undefined>, undefined>;
1179
+ readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1180
+ }, undefined>], undefined>, undefined>;
1181
+ readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1182
+ }, undefined>;
1183
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
1184
+ /**
1185
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
1186
+ */
1187
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
1188
+ }, undefined>, undefined>;
1189
+ }, undefined>, v.ObjectSchema<{
1190
+ readonly mode: v.LiteralSchema<"url", undefined>;
1191
+ readonly message: v.StringSchema<undefined>;
1192
+ readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
1193
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
1194
+ /**
1195
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
1196
+ */
1197
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
1198
+ }, undefined>, undefined>;
1199
+ }, undefined>], undefined>;
1200
+ }, undefined>, v.ObjectSchema<{
1201
+ readonly method: v.LiteralSchema<"sampling/createMessage", undefined>;
1202
+ readonly params: v.ObjectSchema<{
1203
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
1204
+ readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
1205
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
1206
+ readonly type: v.LiteralSchema<"text", undefined>;
1207
+ /**
1208
+ * The text content of the message.
1209
+ */
1210
+ readonly text: v.StringSchema<undefined>;
1211
+ /**
1212
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1213
+ * for notes on _meta usage.
1214
+ */
1215
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1216
+ }, undefined>, v.ObjectSchema<{
1217
+ readonly type: v.LiteralSchema<"image", undefined>;
1218
+ /**
1219
+ * The base64-encoded image data.
1220
+ */
1221
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
1222
+ /**
1223
+ * The MIME type of the image. Different providers may support different image types.
1224
+ */
1225
+ readonly mimeType: v.StringSchema<undefined>;
1226
+ /**
1227
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1228
+ * for notes on _meta usage.
1229
+ */
1230
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1231
+ }, undefined>, v.ObjectSchema<{
1232
+ readonly type: v.LiteralSchema<"audio", undefined>;
1233
+ /**
1234
+ * The base64-encoded audio data.
1235
+ */
1236
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
1237
+ /**
1238
+ * The MIME type of the audio. Different providers may support different audio types.
1239
+ */
1240
+ readonly mimeType: v.StringSchema<undefined>;
1241
+ /**
1242
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1243
+ * for notes on _meta usage.
1244
+ */
1245
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1246
+ }, undefined>], undefined>;
1247
+ }, undefined>, undefined>;
1248
+ /**
1249
+ * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
1250
+ */
1251
+ readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1252
+ /**
1253
+ * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
1254
+ */
1255
+ readonly includeContext: v.OptionalSchema<v.PicklistSchema<["none", "thisServer", "allServers"], undefined>, undefined>;
1256
+ readonly temperature: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1257
+ /**
1258
+ * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested.
1259
+ */
1260
+ readonly maxTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
1261
+ readonly stopSequences: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1262
+ /**
1263
+ * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
1264
+ */
1265
+ readonly metadata: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1266
+ /**
1267
+ * The server's preferences for which model to select.
1268
+ */
1269
+ readonly modelPreferences: v.OptionalSchema<v.ObjectSchema<{
1270
+ /**
1271
+ * Optional hints to use for model selection.
1272
+ */
1273
+ readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1274
+ /**
1275
+ * A hint for a model name.
1276
+ */
1277
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1278
+ }, undefined>, undefined>, undefined>;
1279
+ /**
1280
+ * How much to prioritize cost when selecting a model.
1281
+ */
1282
+ readonly costPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
1283
+ /**
1284
+ * How much to prioritize sampling speed (latency) when selecting a model.
1285
+ */
1286
+ readonly speedPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
1287
+ /**
1288
+ * How much to prioritize intelligence and capabilities when selecting a model.
1289
+ */
1290
+ readonly intelligencePriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
1291
+ }, undefined>, undefined>;
1292
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
1293
+ /**
1294
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
1295
+ */
1296
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
1297
+ }, undefined>, undefined>;
1298
+ }, undefined>;
1299
+ }, undefined>, v.ObjectSchema<{
1300
+ readonly method: v.LiteralSchema<"roots/list", undefined>;
1301
+ readonly params: v.OptionalSchema<v.LooseObjectSchema<{
1302
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
1303
+ /**
1304
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
1305
+ */
1306
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
1307
+ }, undefined>, undefined>;
1308
+ }, undefined>, undefined>;
1309
+ }, undefined>], undefined>, undefined>, undefined>;
1310
+ readonly requestState: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1311
+ /**
1312
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1313
+ * for notes on _meta usage.
1314
+ */
1315
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1316
+ }, undefined>, v.CheckAction<{
1317
+ resultType: "input_required";
1318
+ inputRequests?: {
1319
+ [x: string]: {
1320
+ method: "elicitation/create";
1321
+ params: {
1322
+ mode?: "form" | undefined;
1323
+ message: string;
1324
+ requestedSchema: {
1325
+ $schema?: string | undefined;
1326
+ type: "object";
1327
+ properties: {
1328
+ [x: string]: {
1329
+ type: "string";
1330
+ title?: string | undefined;
1331
+ description?: string | undefined;
1332
+ enum: string[];
1333
+ enumNames?: string[] | undefined;
1334
+ default?: string | undefined;
1335
+ } | {
1336
+ type: "string";
1337
+ title?: string | undefined;
1338
+ description?: string | undefined;
1339
+ enum: string[];
1340
+ default?: string | undefined;
1341
+ } | {
1342
+ type: "string";
1343
+ title?: string | undefined;
1344
+ description?: string | undefined;
1345
+ oneOf: {
1346
+ const: string;
1347
+ title: string;
1348
+ }[];
1349
+ default?: string | undefined;
1350
+ } | {
1351
+ type: "array";
1352
+ title?: string | undefined;
1353
+ description?: string | undefined;
1354
+ minItems?: number | undefined;
1355
+ maxItems?: number | undefined;
1356
+ items: {
1357
+ type: "string";
1358
+ enum: string[];
1359
+ };
1360
+ default?: string[] | undefined;
1361
+ } | {
1362
+ type: "array";
1363
+ title?: string | undefined;
1364
+ description?: string | undefined;
1365
+ minItems?: number | undefined;
1366
+ maxItems?: number | undefined;
1367
+ items: {
1368
+ anyOf: {
1369
+ const: string;
1370
+ title: string;
1371
+ }[];
1372
+ };
1373
+ default?: string[] | undefined;
1374
+ } | {
1375
+ type: "boolean";
1376
+ title?: string | undefined;
1377
+ description?: string | undefined;
1378
+ default?: boolean | undefined;
1379
+ } | {
1380
+ type: "number" | "integer";
1381
+ title?: string | undefined;
1382
+ description?: string | undefined;
1383
+ minimum?: number | undefined;
1384
+ maximum?: number | undefined;
1385
+ default?: number | undefined;
1386
+ } | {
1387
+ type: "string";
1388
+ title?: string | undefined;
1389
+ description?: string | undefined;
1390
+ minLength?: number | undefined;
1391
+ maxLength?: number | undefined;
1392
+ format?: "uri" | "email" | "date" | "date-time" | undefined;
1393
+ default?: string | undefined;
1394
+ };
1395
+ };
1396
+ required?: string[] | undefined;
1397
+ };
1398
+ _meta?: ({
1399
+ progressToken?: string | number | undefined;
1400
+ } & {
1401
+ [key: string]: unknown;
1402
+ }) | undefined;
1403
+ } | {
1404
+ mode: "url";
1405
+ message: string;
1406
+ url: string;
1407
+ _meta?: ({
1408
+ progressToken?: string | number | undefined;
1409
+ } & {
1410
+ [key: string]: unknown;
1411
+ }) | undefined;
1412
+ };
1413
+ } | {
1414
+ method: "sampling/createMessage";
1415
+ params: {
1416
+ messages: {
1417
+ role: "user" | "assistant";
1418
+ content: {
1419
+ type: "text";
1420
+ text: string;
1421
+ _meta?: ({} & {
1422
+ [key: string]: unknown;
1423
+ }) | undefined;
1424
+ } | {
1425
+ type: "image";
1426
+ data: string;
1427
+ mimeType: string;
1428
+ _meta?: ({} & {
1429
+ [key: string]: unknown;
1430
+ }) | undefined;
1431
+ } | {
1432
+ type: "audio";
1433
+ data: string;
1434
+ mimeType: string;
1435
+ _meta?: ({} & {
1436
+ [key: string]: unknown;
1437
+ }) | undefined;
1438
+ };
1439
+ }[];
1440
+ systemPrompt?: string | undefined;
1441
+ includeContext?: "none" | "thisServer" | "allServers" | undefined;
1442
+ temperature?: number | undefined;
1443
+ maxTokens: number;
1444
+ stopSequences?: string[] | undefined;
1445
+ metadata?: {} | undefined;
1446
+ modelPreferences?: {
1447
+ hints?: {
1448
+ name?: string | undefined;
1449
+ }[] | undefined;
1450
+ costPriority?: number | undefined;
1451
+ speedPriority?: number | undefined;
1452
+ intelligencePriority?: number | undefined;
1453
+ } | undefined;
1454
+ _meta?: ({
1455
+ progressToken?: string | number | undefined;
1456
+ } & {
1457
+ [key: string]: unknown;
1458
+ }) | undefined;
1459
+ };
1460
+ } | {
1461
+ method: "roots/list";
1462
+ params?: ({
1463
+ _meta?: ({
1464
+ progressToken?: string | number | undefined;
1465
+ } & {
1466
+ [key: string]: unknown;
1467
+ }) | undefined;
1468
+ } & {
1469
+ [key: string]: unknown;
1470
+ }) | undefined;
1471
+ };
1472
+ } | undefined;
1473
+ requestState?: string | undefined;
1474
+ _meta?: ({} & {
1475
+ [key: string]: unknown;
1476
+ }) | undefined;
1477
+ } & {
1478
+ [key: string]: unknown;
1479
+ }, "InputRequiredResult requires inputRequests or requestState">]>;
1480
+ export type Icons = v.InferInput<typeof IconsSchema>;
1481
+ export type ClientCapabilities = v.InferInput<typeof ClientCapabilitiesSchema>;
1482
+ export type ServerCapabilities = v.InferInput<typeof ServerCapabilitiesSchema>;
1483
+ export type ClientInfo = v.InferInput<typeof ImplementationSchema>;
1484
+ export type ServerInfo = v.InferInput<typeof ImplementationSchema> & {
1485
+ description?: string;
1486
+ };
1487
+ export type InitializeRequestParams = v.InferInput<typeof InitializeRequestParamsSchema>;
1488
+ export type DiscoverRequestParams = v.InferInput<typeof DiscoverRequestParamsSchema>;
1489
+ export type CallToolResult<TStructuredContent> = v.InferInput<v.LooseObjectSchema<Omit<(typeof CallToolResultSchema)["entries"], "structuredContent" | "isError">, undefined>> & (undefined extends TStructuredContent ? {
1490
+ structuredContent?: undefined;
1491
+ isError?: boolean;
1492
+ } : ({
1493
+ structuredContent: TStructuredContent;
1494
+ isError?: false;
1495
+ } | {
1496
+ isError: true;
1497
+ structuredContent?: TStructuredContent;
1498
+ }));
1499
+ export type ReadResourceResult = v.InferInput<typeof ReadResourceResultSchema>;
1500
+ export type GetPromptResult = v.InferInput<typeof GetPromptResultSchema>;
1501
+ export type CompleteResult = v.InferInput<typeof CompleteResultSchema>;
1502
+ export type CreateMessageRequestParams = v.InferInput<typeof CreateMessageRequestParamsSchema>;
1503
+ export type CreateMessageResult = v.InferInput<typeof CreateMessageResultSchema>;
1504
+ export type ModelPreferences = v.InferInput<typeof ModelPreferencesSchema>;
1505
+ export type SamplingMessage = v.InferInput<typeof SamplingMessageSchema>;
1506
+ export type ModelHint = v.InferInput<typeof ModelHintSchema>;
1507
+ export type Resource = v.InferInput<typeof ResourceSchema>;
1508
+ export type JSONRPCRequest = v.InferInput<typeof JSONRPCRequestSchema>;
1509
+ export type JSONRPCMessage = v.InferInput<typeof JSONRPCMessageSchema>;
1510
+ export type JSONRPCResponse = v.InferInput<typeof JSONRPCResponseSchema>;
1511
+ export type LoggingLevel = v.InferInput<typeof LoggingLevelSchema>;
1512
+ export type ToolAnnotations = v.InferInput<typeof ToolAnnotationsSchema>;
1513
+ export type ElicitResult = v.InferInput<typeof ElicitResultSchema>;
1514
+ export type InitializeResult = v.InferInput<typeof InitializeResultSchema>;
1515
+ export type ListToolsResult = v.InferInput<typeof ListToolsResultSchema>;
1516
+ export type ListPromptsResult = v.InferInput<typeof ListPromptsResultSchema>;
1517
+ export type ListResourcesResult = v.InferInput<typeof ListResourcesResultSchema>;
1518
+ export type ListResourceTemplatesResult = v.InferInput<typeof ListResourceTemplatesResultSchema>;
1519
+ export type EmbeddedResource = v.InferInput<typeof EmbeddedResourceSchema>;
1520
+ export type ResourceLink = v.InferInput<typeof ResourceLinkSchema>;
1521
+ export type InputRequests = v.InferInput<typeof InputRequestsSchema>;
1522
+ export type InputResponses = v.InferInput<typeof InputResponsesSchema>;
1523
+ export type InputRequiredResult = v.InferInput<typeof InputRequiredResultSchema>;
1524
+ export type RequestId = v.InferInput<typeof RequestIdSchema>;
1525
+ export type SubscriptionFilter = v.InferInput<typeof SubscriptionFilterSchema>;
1526
+ export type SubscriptionsListenResult = v.InferInput<typeof SubscriptionsListenResultSchema>;
1527
+ export type SubscriptionsListenRequest = v.InferInput<typeof JSONRPCRequestSchema> & v.InferInput<typeof SubscriptionsListenRequestSchema>;
1528
+ export type SubscriptionsAcknowledgedNotification = v.InferInput<typeof JSONRPCNotificationSchema> & v.InferInput<typeof SubscriptionsAcknowledgedNotificationSchema>;
1529
+ import { JSONRPCErrorException } from 'json-rpc-2.0';
1530
+ import * as v from 'valibot';
1531
+ declare const IconsSchema: v.ObjectSchema<{
1532
+ /**
1533
+ * Optional set of sized icons that the client can display in a user interface.
1534
+ *
1535
+ * Clients that support rendering icons MUST support at least the following MIME types:
1536
+ * - `image/png` - PNG images (safe, universal compatibility)
1537
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
1538
+ *
1539
+ * Clients that support rendering icons SHOULD also support:
1540
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
1541
+ * - `image/webp` - WebP images (modern, efficient format)
1542
+ */
1543
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1544
+ /**
1545
+ * URL or data URI for the icon.
1546
+ */
1547
+ readonly src: v.StringSchema<undefined>;
1548
+ /**
1549
+ * Optional MIME type for the icon.
1550
+ */
1551
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1552
+ /**
1553
+ * Optional array of strings that specify sizes at which the icon can be used.
1554
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
1555
+ *
1556
+ * If not provided, the client should assume that the icon can be used at any size.
1557
+ */
1558
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1559
+ }, undefined>, undefined>, undefined>;
1560
+ }, undefined>;
1561
+ /**
1562
+ * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
1563
+ */
1564
+ declare const ServerCapabilitiesSchema: v.ObjectSchema<{
1565
+ /**
1566
+ * Experimental, non-standard capabilities that the server supports.
1567
+ */
1568
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1569
+ /**
1570
+ * Present if the server supports sending log messages to the client.
1571
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
1572
+ */
1573
+ readonly logging: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1574
+ /**
1575
+ * Extensions supported by the server, keyed by prefixed extension identifier.
1576
+ */
1577
+ readonly extensions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.LooseObjectSchema<{}, undefined>, undefined>, undefined>;
1578
+ /**
1579
+ * Present if the server supports sending completions to the client.
1580
+ */
1581
+ readonly completions: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1582
+ /**
1583
+ * Present if the server offers any prompt templates.
1584
+ */
1585
+ readonly prompts: v.OptionalSchema<v.ObjectSchema<{
1586
+ /**
1587
+ * Whether this server supports issuing notifications for changes to the prompt list.
1588
+ */
1589
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1590
+ }, undefined>, undefined>;
1591
+ /**
1592
+ * Present if the server offers any resources to read.
1593
+ */
1594
+ readonly resources: v.OptionalSchema<v.ObjectSchema<{
1595
+ /**
1596
+ * Whether this server supports clients subscribing to resource updates.
1597
+ */
1598
+ readonly subscribe: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1599
+ /**
1600
+ * Whether this server supports issuing notifications for changes to the resource list.
1601
+ */
1602
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1603
+ }, undefined>, undefined>;
1604
+ /**
1605
+ * Present if the server offers any tools to call.
1606
+ */
1607
+ readonly tools: v.OptionalSchema<v.ObjectSchema<{
1608
+ /**
1609
+ * Whether this server supports issuing notifications for changes to the tool list.
1610
+ */
1611
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1612
+ }, undefined>, undefined>;
1613
+ }, undefined>;
1614
+ /**
1615
+ * The server's preferences for model selection, requested of the client during sampling.
1616
+ */
1617
+ declare const ModelPreferencesSchema: v.ObjectSchema<{
1618
+ /**
1619
+ * Optional hints to use for model selection.
1620
+ */
1621
+ readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1622
+ /**
1623
+ * A hint for a model name.
1624
+ */
1625
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1626
+ }, undefined>, undefined>, undefined>;
1627
+ /**
1628
+ * How much to prioritize cost when selecting a model.
1629
+ */
1630
+ readonly costPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
1631
+ /**
1632
+ * How much to prioritize sampling speed (latency) when selecting a model.
1633
+ */
1634
+ readonly speedPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
1635
+ /**
1636
+ * How much to prioritize intelligence and capabilities when selecting a model.
1637
+ */
1638
+ readonly intelligencePriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
1639
+ }, undefined>;
1640
+ /**
1641
+ * Describes a message issued to or received from an LLM API.
1642
+ */
1643
+ declare const SamplingMessageSchema: v.ObjectSchema<{
1644
+ readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
1645
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
1646
+ readonly type: v.LiteralSchema<"text", undefined>;
1647
+ /**
1648
+ * The text content of the message.
1649
+ */
1650
+ readonly text: v.StringSchema<undefined>;
1651
+ /**
1652
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1653
+ * for notes on _meta usage.
1654
+ */
1655
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1656
+ }, undefined>, v.ObjectSchema<{
1657
+ readonly type: v.LiteralSchema<"image", undefined>;
1658
+ /**
1659
+ * The base64-encoded image data.
1660
+ */
1661
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
1662
+ /**
1663
+ * The MIME type of the image. Different providers may support different image types.
1664
+ */
1665
+ readonly mimeType: v.StringSchema<undefined>;
1666
+ /**
1667
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1668
+ * for notes on _meta usage.
1669
+ */
1670
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1671
+ }, undefined>, v.ObjectSchema<{
1672
+ readonly type: v.LiteralSchema<"audio", undefined>;
1673
+ /**
1674
+ * The base64-encoded audio data.
1675
+ */
1676
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
1677
+ /**
1678
+ * The MIME type of the audio. Different providers may support different audio types.
1679
+ */
1680
+ readonly mimeType: v.StringSchema<undefined>;
1681
+ /**
1682
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1683
+ * for notes on _meta usage.
1684
+ */
1685
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1686
+ }, undefined>], undefined>;
1687
+ }, undefined>;
1688
+ /**
1689
+ * Hints to use for model selection.
1690
+ */
1691
+ declare const ModelHintSchema: v.ObjectSchema<{
1692
+ /**
1693
+ * A hint for a model name.
1694
+ */
1695
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1696
+ }, undefined>;
1697
+ /**
1698
+ * A known resource that the server is capable of reading.
1699
+ */
1700
+ declare const ResourceSchema: v.ObjectSchema<{
1701
+ /**
1702
+ * Optional set of sized icons that the client can display in a user interface.
1703
+ *
1704
+ * Clients that support rendering icons MUST support at least the following MIME types:
1705
+ * - `image/png` - PNG images (safe, universal compatibility)
1706
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
1707
+ *
1708
+ * Clients that support rendering icons SHOULD also support:
1709
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
1710
+ * - `image/webp` - WebP images (modern, efficient format)
1711
+ */
1712
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1713
+ /**
1714
+ * URL or data URI for the icon.
1715
+ */
1716
+ readonly src: v.StringSchema<undefined>;
1717
+ /**
1718
+ * Optional MIME type for the icon.
1719
+ */
1720
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1721
+ /**
1722
+ * Optional array of strings that specify sizes at which the icon can be used.
1723
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
1724
+ *
1725
+ * If not provided, the client should assume that the icon can be used at any size.
1726
+ */
1727
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1728
+ }, undefined>, undefined>, undefined>;
1729
+ /**
1730
+ * The URI of this resource.
1731
+ */
1732
+ readonly uri: v.StringSchema<undefined>;
1733
+ /**
1734
+ * A description of what this resource represents.
1735
+ *
1736
+ * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
1737
+ */
1738
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1739
+ /**
1740
+ * The MIME type of this resource, if known.
1741
+ */
1742
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1743
+ /**
1744
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1745
+ * for notes on _meta usage.
1746
+ */
1747
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1748
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1749
+ readonly name: v.StringSchema<undefined>;
1750
+ /**
1751
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
1752
+ * even by those unfamiliar with domain-specific terminology.
1753
+ *
1754
+ * If not provided, the name should be used for display (except for Tool,
1755
+ * where `annotations.title` should be given precedence over using `name`,
1756
+ * if present).
1757
+ */
1758
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1759
+ }, undefined>;
1760
+ /**
1761
+ * Additional properties describing a Tool to clients.
1762
+ *
1763
+ * NOTE: all properties in ToolAnnotations are **hints**.
1764
+ * They are not guaranteed to provide a faithful description of
1765
+ * tool behavior (including descriptive properties like `title`).
1766
+ *
1767
+ * Clients should never make tool use decisions based on ToolAnnotations
1768
+ * received from untrusted servers.
1769
+ */
1770
+ declare const ToolAnnotationsSchema: v.ObjectSchema<{
1771
+ /**
1772
+ * A human-readable title for the tool.
1773
+ */
1774
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1775
+ /**
1776
+ * If true, the tool does not modify its environment.
1777
+ *
1778
+ * Default: false
1779
+ */
1780
+ readonly readOnlyHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1781
+ /**
1782
+ * If true, the tool may perform destructive updates to its environment.
1783
+ * If false, the tool performs only additive updates.
1784
+ *
1785
+ * (This property is meaningful only when `readOnlyHint == false`)
1786
+ *
1787
+ * Default: true
1788
+ */
1789
+ readonly destructiveHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1790
+ /**
1791
+ * If true, calling the tool repeatedly with the same arguments
1792
+ * will have no additional effect on the its environment.
1793
+ *
1794
+ * (This property is meaningful only when `readOnlyHint == false`)
1795
+ *
1796
+ * Default: false
1797
+ */
1798
+ readonly idempotentHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1799
+ /**
1800
+ * If true, this tool may interact with an "open world" of external
1801
+ * entities. If false, the tool's domain of interaction is closed.
1802
+ * For example, the world of a web search tool is open, whereas that
1803
+ * of a memory tool is not.
1804
+ *
1805
+ * Default: true
1806
+ */
1807
+ readonly openWorldHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1808
+ }, undefined>;
1809
+ /**
1810
+ * After receiving an initialize request from the client, the server sends this response.
1811
+ */
1812
+ declare const InitializeResultSchema: v.ObjectSchema<{
1813
+ /**
1814
+ * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
1815
+ */
1816
+ readonly protocolVersion: v.StringSchema<undefined>;
1817
+ readonly capabilities: v.ObjectSchema<{
1818
+ /**
1819
+ * Experimental, non-standard capabilities that the server supports.
1820
+ */
1821
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1822
+ /**
1823
+ * Present if the server supports sending log messages to the client.
1824
+ * @deprecated in the per-request (2026-07-28) protocol; still fully supported for session-negotiated clients.
1825
+ */
1826
+ readonly logging: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1827
+ /**
1828
+ * Extensions supported by the server, keyed by prefixed extension identifier.
1829
+ */
1830
+ readonly extensions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.LooseObjectSchema<{}, undefined>, undefined>, undefined>;
1831
+ /**
1832
+ * Present if the server supports sending completions to the client.
1833
+ */
1834
+ readonly completions: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1835
+ /**
1836
+ * Present if the server offers any prompt templates.
1837
+ */
1838
+ readonly prompts: v.OptionalSchema<v.ObjectSchema<{
1839
+ /**
1840
+ * Whether this server supports issuing notifications for changes to the prompt list.
1841
+ */
1842
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1843
+ }, undefined>, undefined>;
1844
+ /**
1845
+ * Present if the server offers any resources to read.
1846
+ */
1847
+ readonly resources: v.OptionalSchema<v.ObjectSchema<{
1848
+ /**
1849
+ * Whether this server supports clients subscribing to resource updates.
1850
+ */
1851
+ readonly subscribe: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1852
+ /**
1853
+ * Whether this server supports issuing notifications for changes to the resource list.
1854
+ */
1855
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1856
+ }, undefined>, undefined>;
1857
+ /**
1858
+ * Present if the server offers any tools to call.
1859
+ */
1860
+ readonly tools: v.OptionalSchema<v.ObjectSchema<{
1861
+ /**
1862
+ * Whether this server supports issuing notifications for changes to the tool list.
1863
+ */
1864
+ readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1865
+ }, undefined>, undefined>;
1866
+ }, undefined>;
1867
+ readonly serverInfo: v.ObjectSchema<{
1868
+ /**
1869
+ * Optional set of sized icons that the client can display in a user interface.
1870
+ *
1871
+ * Clients that support rendering icons MUST support at least the following MIME types:
1872
+ * - `image/png` - PNG images (safe, universal compatibility)
1873
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
1874
+ *
1875
+ * Clients that support rendering icons SHOULD also support:
1876
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
1877
+ * - `image/webp` - WebP images (modern, efficient format)
1878
+ */
1879
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1880
+ /**
1881
+ * URL or data URI for the icon.
1882
+ */
1883
+ readonly src: v.StringSchema<undefined>;
1884
+ /**
1885
+ * Optional MIME type for the icon.
1886
+ */
1887
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1888
+ /**
1889
+ * Optional array of strings that specify sizes at which the icon can be used.
1890
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
1891
+ *
1892
+ * If not provided, the client should assume that the icon can be used at any size.
1893
+ */
1894
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1895
+ }, undefined>, undefined>, undefined>;
1896
+ readonly version: v.StringSchema<undefined>;
1897
+ readonly websiteUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1898
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1899
+ readonly name: v.StringSchema<undefined>;
1900
+ /**
1901
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
1902
+ * even by those unfamiliar with domain-specific terminology.
1903
+ *
1904
+ * If not provided, the name should be used for display (except for Tool,
1905
+ * where `annotations.title` should be given precedence over using `name`,
1906
+ * if present).
1907
+ */
1908
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1909
+ }, undefined>;
1910
+ /**
1911
+ * Instructions describing how to use the server and its features.
1912
+ *
1913
+ * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
1914
+ */
1915
+ readonly instructions: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1916
+ /**
1917
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1918
+ * for notes on _meta usage.
1919
+ */
1920
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1921
+ }, undefined>;
1922
+ /**
1923
+ * The server's response to a tools/list request from the client.
1924
+ */
1925
+ declare const ListToolsResultSchema: v.ObjectSchema<{
1926
+ readonly tools: v.ArraySchema<v.ObjectSchema<{
1927
+ /**
1928
+ * Optional set of sized icons that the client can display in a user interface.
1929
+ *
1930
+ * Clients that support rendering icons MUST support at least the following MIME types:
1931
+ * - `image/png` - PNG images (safe, universal compatibility)
1932
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
1933
+ *
1934
+ * Clients that support rendering icons SHOULD also support:
1935
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
1936
+ * - `image/webp` - WebP images (modern, efficient format)
1937
+ */
1938
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1939
+ /**
1940
+ * URL or data URI for the icon.
1941
+ */
1942
+ readonly src: v.StringSchema<undefined>;
1943
+ /**
1944
+ * Optional MIME type for the icon.
1945
+ */
1946
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1947
+ /**
1948
+ * Optional array of strings that specify sizes at which the icon can be used.
1949
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
1950
+ *
1951
+ * If not provided, the client should assume that the icon can be used at any size.
1952
+ */
1953
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1954
+ }, undefined>, undefined>, undefined>;
1955
+ /**
1956
+ * A human-readable description of the tool.
1957
+ */
1958
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1959
+ /**
1960
+ * A JSON Schema object defining the expected parameters for the tool.
1961
+ * Any JSON Schema 2020-12 keywords are allowed alongside the required `type: "object"` root.
1962
+ */
1963
+ readonly inputSchema: v.LooseObjectSchema<{
1964
+ readonly $schema: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1965
+ readonly type: v.LiteralSchema<"object", undefined>;
1966
+ }, undefined>;
1967
+ /**
1968
+ * An optional JSON Schema object defining the structure of the tool's output returned in
1969
+ * the structuredContent field of a CallToolResult. Any JSON Schema 2020-12 keywords are allowed.
1970
+ */
1971
+ readonly outputSchema: v.OptionalSchema<v.LooseObjectSchema<{
1972
+ readonly $schema: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1973
+ }, undefined>, undefined>;
1974
+ /**
1975
+ * Optional additional tool information.
1976
+ */
1977
+ readonly annotations: v.OptionalSchema<v.ObjectSchema<{
1978
+ /**
1979
+ * A human-readable title for the tool.
1980
+ */
1981
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1982
+ /**
1983
+ * If true, the tool does not modify its environment.
1984
+ *
1985
+ * Default: false
1986
+ */
1987
+ readonly readOnlyHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1988
+ /**
1989
+ * If true, the tool may perform destructive updates to its environment.
1990
+ * If false, the tool performs only additive updates.
1991
+ *
1992
+ * (This property is meaningful only when `readOnlyHint == false`)
1993
+ *
1994
+ * Default: true
1995
+ */
1996
+ readonly destructiveHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1997
+ /**
1998
+ * If true, calling the tool repeatedly with the same arguments
1999
+ * will have no additional effect on the its environment.
2000
+ *
2001
+ * (This property is meaningful only when `readOnlyHint == false`)
2002
+ *
2003
+ * Default: false
2004
+ */
2005
+ readonly idempotentHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2006
+ /**
2007
+ * If true, this tool may interact with an "open world" of external
2008
+ * entities. If false, the tool's domain of interaction is closed.
2009
+ * For example, the world of a web search tool is open, whereas that
2010
+ * of a memory tool is not.
2011
+ *
2012
+ * Default: true
2013
+ */
2014
+ readonly openWorldHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2015
+ }, undefined>, undefined>;
2016
+ /**
2017
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2018
+ * for notes on _meta usage.
2019
+ */
2020
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2021
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
2022
+ readonly name: v.StringSchema<undefined>;
2023
+ /**
2024
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2025
+ * even by those unfamiliar with domain-specific terminology.
2026
+ *
2027
+ * If not provided, the name should be used for display (except for Tool,
2028
+ * where `annotations.title` should be given precedence over using `name`,
2029
+ * if present).
2030
+ */
2031
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2032
+ }, undefined>, undefined>;
2033
+ /**
2034
+ * An opaque token representing the pagination position after the last returned result.
2035
+ * If present, there may be more results available.
2036
+ */
2037
+ readonly nextCursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2038
+ /**
2039
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2040
+ * for notes on _meta usage.
2041
+ */
2042
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2043
+ }, undefined>;
2044
+ /**
2045
+ * The server's response to a prompts/list request from the client.
2046
+ */
2047
+ declare const ListPromptsResultSchema: v.ObjectSchema<{
2048
+ readonly prompts: v.ArraySchema<v.ObjectSchema<{
2049
+ /**
2050
+ * Optional set of sized icons that the client can display in a user interface.
2051
+ *
2052
+ * Clients that support rendering icons MUST support at least the following MIME types:
2053
+ * - `image/png` - PNG images (safe, universal compatibility)
2054
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
2055
+ *
2056
+ * Clients that support rendering icons SHOULD also support:
2057
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
2058
+ * - `image/webp` - WebP images (modern, efficient format)
2059
+ */
2060
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2061
+ /**
2062
+ * URL or data URI for the icon.
2063
+ */
2064
+ readonly src: v.StringSchema<undefined>;
2065
+ /**
2066
+ * Optional MIME type for the icon.
2067
+ */
2068
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2069
+ /**
2070
+ * Optional array of strings that specify sizes at which the icon can be used.
2071
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
2072
+ *
2073
+ * If not provided, the client should assume that the icon can be used at any size.
2074
+ */
2075
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2076
+ }, undefined>, undefined>, undefined>;
2077
+ /**
2078
+ * An optional description of what this prompt provides
2079
+ */
2080
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2081
+ /**
2082
+ * A list of arguments to use for templating the prompt.
2083
+ */
2084
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2085
+ /**
2086
+ * The name of the argument.
2087
+ */
2088
+ readonly name: v.StringSchema<undefined>;
2089
+ /**
2090
+ * A human-readable description of the argument.
2091
+ */
2092
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2093
+ /**
2094
+ * Whether this argument must be provided.
2095
+ */
2096
+ readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2097
+ }, undefined>, undefined>, undefined>;
2098
+ /**
2099
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2100
+ * for notes on _meta usage.
2101
+ */
2102
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2103
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
2104
+ readonly name: v.StringSchema<undefined>;
2105
+ /**
2106
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2107
+ * even by those unfamiliar with domain-specific terminology.
2108
+ *
2109
+ * If not provided, the name should be used for display (except for Tool,
2110
+ * where `annotations.title` should be given precedence over using `name`,
2111
+ * if present).
2112
+ */
2113
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2114
+ }, undefined>, undefined>;
2115
+ /**
2116
+ * An opaque token representing the pagination position after the last returned result.
2117
+ * If present, there may be more results available.
2118
+ */
2119
+ readonly nextCursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2120
+ /**
2121
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2122
+ * for notes on _meta usage.
2123
+ */
2124
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2125
+ }, undefined>;
2126
+ /**
2127
+ * The server's response to a resources/list request from the client.
2128
+ */
2129
+ declare const ListResourcesResultSchema: v.ObjectSchema<{
2130
+ readonly resources: v.ArraySchema<v.ObjectSchema<{
2131
+ /**
2132
+ * Optional set of sized icons that the client can display in a user interface.
2133
+ *
2134
+ * Clients that support rendering icons MUST support at least the following MIME types:
2135
+ * - `image/png` - PNG images (safe, universal compatibility)
2136
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
2137
+ *
2138
+ * Clients that support rendering icons SHOULD also support:
2139
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
2140
+ * - `image/webp` - WebP images (modern, efficient format)
2141
+ */
2142
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2143
+ /**
2144
+ * URL or data URI for the icon.
2145
+ */
2146
+ readonly src: v.StringSchema<undefined>;
2147
+ /**
2148
+ * Optional MIME type for the icon.
2149
+ */
2150
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2151
+ /**
2152
+ * Optional array of strings that specify sizes at which the icon can be used.
2153
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
2154
+ *
2155
+ * If not provided, the client should assume that the icon can be used at any size.
2156
+ */
2157
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2158
+ }, undefined>, undefined>, undefined>;
2159
+ /**
2160
+ * The URI of this resource.
2161
+ */
2162
+ readonly uri: v.StringSchema<undefined>;
2163
+ /**
2164
+ * A description of what this resource represents.
2165
+ *
2166
+ * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
2167
+ */
2168
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2169
+ /**
2170
+ * The MIME type of this resource, if known.
2171
+ */
2172
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2173
+ /**
2174
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2175
+ * for notes on _meta usage.
2176
+ */
2177
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2178
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
2179
+ readonly name: v.StringSchema<undefined>;
2180
+ /**
2181
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2182
+ * even by those unfamiliar with domain-specific terminology.
2183
+ *
2184
+ * If not provided, the name should be used for display (except for Tool,
2185
+ * where `annotations.title` should be given precedence over using `name`,
2186
+ * if present).
2187
+ */
2188
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2189
+ }, undefined>, undefined>;
2190
+ /**
2191
+ * An opaque token representing the pagination position after the last returned result.
2192
+ * If present, there may be more results available.
2193
+ */
2194
+ readonly nextCursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2195
+ /**
2196
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2197
+ * for notes on _meta usage.
2198
+ */
2199
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2200
+ }, undefined>;
2201
+ /**
2202
+ * The server's response to a resources/templates/list request from the client.
2203
+ */
2204
+ declare const ListResourceTemplatesResultSchema: v.ObjectSchema<{
2205
+ readonly resourceTemplates: v.ArraySchema<v.ObjectSchema<{
2206
+ /**
2207
+ * Optional set of sized icons that the client can display in a user interface.
2208
+ *
2209
+ * Clients that support rendering icons MUST support at least the following MIME types:
2210
+ * - `image/png` - PNG images (safe, universal compatibility)
2211
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
2212
+ *
2213
+ * Clients that support rendering icons SHOULD also support:
2214
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
2215
+ * - `image/webp` - WebP images (modern, efficient format)
2216
+ */
2217
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2218
+ /**
2219
+ * URL or data URI for the icon.
2220
+ */
2221
+ readonly src: v.StringSchema<undefined>;
2222
+ /**
2223
+ * Optional MIME type for the icon.
2224
+ */
2225
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2226
+ /**
2227
+ * Optional array of strings that specify sizes at which the icon can be used.
2228
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
2229
+ *
2230
+ * If not provided, the client should assume that the icon can be used at any size.
2231
+ */
2232
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2233
+ }, undefined>, undefined>, undefined>;
2234
+ /**
2235
+ * A URI template (according to RFC 6570) that can be used to construct resource URIs.
2236
+ */
2237
+ readonly uriTemplate: v.StringSchema<undefined>;
2238
+ /**
2239
+ * A description of what this template is for.
2240
+ *
2241
+ * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
2242
+ */
2243
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2244
+ /**
2245
+ * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
2246
+ */
2247
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2248
+ /**
2249
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2250
+ * for notes on _meta usage.
2251
+ */
2252
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2253
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
2254
+ readonly name: v.StringSchema<undefined>;
2255
+ /**
2256
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2257
+ * even by those unfamiliar with domain-specific terminology.
2258
+ *
2259
+ * If not provided, the name should be used for display (except for Tool,
2260
+ * where `annotations.title` should be given precedence over using `name`,
2261
+ * if present).
2262
+ */
2263
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2264
+ }, undefined>, undefined>;
2265
+ /**
2266
+ * An opaque token representing the pagination position after the last returned result.
2267
+ * If present, there may be more results available.
2268
+ */
2269
+ readonly nextCursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2270
+ /**
2271
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2272
+ * for notes on _meta usage.
2273
+ */
2274
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2275
+ }, undefined>;
2276
+ /**
2277
+ * The contents of a resource, embedded into a prompt or tool call result.
2278
+ */
2279
+ declare const EmbeddedResourceSchema: v.ObjectSchema<{
2280
+ readonly type: v.LiteralSchema<"resource", undefined>;
2281
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
2282
+ /**
2283
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
2284
+ */
2285
+ readonly text: v.StringSchema<undefined>;
2286
+ /**
2287
+ * The URI of this resource.
2288
+ */
2289
+ readonly uri: v.StringSchema<undefined>;
2290
+ /**
2291
+ * The MIME type of this resource, if known.
2292
+ */
2293
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2294
+ /**
2295
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2296
+ * for notes on _meta usage.
2297
+ */
2298
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2299
+ }, undefined>, v.ObjectSchema<{
2300
+ /**
2301
+ * A base64-encoded string representing the binary data of the item.
2302
+ */
2303
+ readonly blob: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
2304
+ /**
2305
+ * The URI of this resource.
2306
+ */
2307
+ readonly uri: v.StringSchema<undefined>;
2308
+ /**
2309
+ * The MIME type of this resource, if known.
2310
+ */
2311
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2312
+ /**
2313
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2314
+ * for notes on _meta usage.
2315
+ */
2316
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2317
+ }, undefined>], undefined>;
2318
+ /**
2319
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2320
+ * for notes on _meta usage.
2321
+ */
2322
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2323
+ }, undefined>;
2324
+ /**
2325
+ * A resource that the server is capable of reading, included in a prompt or tool call result.
2326
+ *
2327
+ * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
2328
+ */
2329
+ declare const ResourceLinkSchema: v.ObjectSchema<{
2330
+ readonly type: v.LiteralSchema<"resource_link", undefined>;
2331
+ /**
2332
+ * Optional set of sized icons that the client can display in a user interface.
2333
+ *
2334
+ * Clients that support rendering icons MUST support at least the following MIME types:
2335
+ * - `image/png` - PNG images (safe, universal compatibility)
2336
+ * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
2337
+ *
2338
+ * Clients that support rendering icons SHOULD also support:
2339
+ * - `image/svg+xml` - SVG images (scalable but requires security precautions)
2340
+ * - `image/webp` - WebP images (modern, efficient format)
2341
+ */
2342
+ readonly icons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2343
+ /**
2344
+ * URL or data URI for the icon.
2345
+ */
2346
+ readonly src: v.StringSchema<undefined>;
2347
+ /**
2348
+ * Optional MIME type for the icon.
2349
+ */
2350
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2351
+ /**
2352
+ * Optional array of strings that specify sizes at which the icon can be used.
2353
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
2354
+ *
2355
+ * If not provided, the client should assume that the icon can be used at any size.
2356
+ */
2357
+ readonly sizes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2358
+ }, undefined>, undefined>, undefined>;
2359
+ /**
2360
+ * The URI of this resource.
2361
+ */
2362
+ readonly uri: v.StringSchema<undefined>;
2363
+ /**
2364
+ * A description of what this resource represents.
2365
+ *
2366
+ * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
2367
+ */
2368
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2369
+ /**
2370
+ * The MIME type of this resource, if known.
2371
+ */
2372
+ readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2373
+ /**
2374
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2375
+ * for notes on _meta usage.
2376
+ */
2377
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2378
+ /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
2379
+ readonly name: v.StringSchema<undefined>;
2380
+ /**
2381
+ * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
2382
+ * even by those unfamiliar with domain-specific terminology.
2383
+ *
2384
+ * If not provided, the name should be used for display (except for Tool,
2385
+ * where `annotations.title` should be given precedence over using `name`,
2386
+ * if present).
2387
+ */
2388
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2389
+ }, undefined>;
2390
+ /**
2391
+ * Questions or tasks the client must complete, stored by name.
2392
+ */
2393
+ declare const InputRequestsSchema: v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.ObjectSchema<{
2394
+ readonly method: v.LiteralSchema<"elicitation/create", undefined>;
2395
+ readonly params: v.UnionSchema<[v.ObjectSchema<{
2396
+ readonly mode: v.OptionalSchema<v.LiteralSchema<"form", undefined>, undefined>;
2397
+ /**
2398
+ * The message to present to the user.
2399
+ */
2400
+ readonly message: v.StringSchema<undefined>;
2401
+ /**
2402
+ * The schema for the requested user input.
2403
+ */
2404
+ readonly requestedSchema: v.ObjectSchema<{
2405
+ readonly $schema: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2406
+ readonly type: v.LiteralSchema<"object", undefined>;
2407
+ readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.ObjectSchema<{
2408
+ readonly type: v.LiteralSchema<"boolean", undefined>;
2409
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2410
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2411
+ readonly default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2412
+ }, undefined>, v.ObjectSchema<{
2413
+ readonly type: v.PicklistSchema<["number", "integer"], undefined>;
2414
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2415
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2416
+ readonly minimum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2417
+ readonly maximum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2418
+ readonly default: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2419
+ }, undefined>, v.UnionSchema<[v.ObjectSchema<{
2420
+ readonly type: v.LiteralSchema<"string", undefined>;
2421
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2422
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2423
+ readonly enum: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2424
+ readonly enumNames: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2425
+ readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2426
+ }, undefined>, v.ObjectSchema<{
2427
+ readonly type: v.LiteralSchema<"string", undefined>;
2428
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2429
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2430
+ readonly enum: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2431
+ readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2432
+ }, undefined>, v.ObjectSchema<{
2433
+ readonly type: v.LiteralSchema<"string", undefined>;
2434
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2435
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2436
+ readonly oneOf: v.ArraySchema<v.ObjectSchema<{
2437
+ readonly const: v.StringSchema<undefined>;
2438
+ readonly title: v.StringSchema<undefined>;
2439
+ }, undefined>, undefined>;
2440
+ readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2441
+ }, undefined>, v.ObjectSchema<{
2442
+ readonly type: v.LiteralSchema<"array", undefined>;
2443
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2444
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2445
+ readonly minItems: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2446
+ readonly maxItems: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2447
+ readonly items: v.ObjectSchema<{
2448
+ readonly type: v.LiteralSchema<"string", undefined>;
2449
+ readonly enum: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2450
+ }, undefined>;
2451
+ readonly default: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2452
+ }, undefined>, v.ObjectSchema<{
2453
+ readonly type: v.LiteralSchema<"array", undefined>;
2454
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2455
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2456
+ readonly minItems: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2457
+ readonly maxItems: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2458
+ readonly items: v.ObjectSchema<{
2459
+ readonly anyOf: v.ArraySchema<v.ObjectSchema<{
2460
+ readonly const: v.StringSchema<undefined>;
2461
+ readonly title: v.StringSchema<undefined>;
2462
+ }, undefined>, undefined>;
2463
+ }, undefined>;
2464
+ readonly default: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2465
+ }, undefined>], undefined>, v.ObjectSchema<{
2466
+ readonly type: v.LiteralSchema<"string", undefined>;
2467
+ readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2468
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2469
+ readonly minLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2470
+ readonly maxLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2471
+ readonly format: v.OptionalSchema<v.PicklistSchema<["email", "uri", "date", "date-time"], undefined>, undefined>;
2472
+ readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2473
+ }, undefined>], undefined>, undefined>;
2474
+ readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2475
+ }, undefined>;
2476
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
2477
+ /**
2478
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
2479
+ */
2480
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
2481
+ }, undefined>, undefined>;
2482
+ }, undefined>, v.ObjectSchema<{
2483
+ readonly mode: v.LiteralSchema<"url", undefined>;
2484
+ readonly message: v.StringSchema<undefined>;
2485
+ readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
2486
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
2487
+ /**
2488
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
2489
+ */
2490
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
2491
+ }, undefined>, undefined>;
2492
+ }, undefined>], undefined>;
2493
+ }, undefined>, v.ObjectSchema<{
2494
+ readonly method: v.LiteralSchema<"sampling/createMessage", undefined>;
2495
+ readonly params: v.ObjectSchema<{
2496
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
2497
+ readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
2498
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
2499
+ readonly type: v.LiteralSchema<"text", undefined>;
2500
+ /**
2501
+ * The text content of the message.
2502
+ */
2503
+ readonly text: v.StringSchema<undefined>;
2504
+ /**
2505
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2506
+ * for notes on _meta usage.
2507
+ */
2508
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2509
+ }, undefined>, v.ObjectSchema<{
2510
+ readonly type: v.LiteralSchema<"image", undefined>;
2511
+ /**
2512
+ * The base64-encoded image data.
2513
+ */
2514
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
2515
+ /**
2516
+ * The MIME type of the image. Different providers may support different image types.
2517
+ */
2518
+ readonly mimeType: v.StringSchema<undefined>;
2519
+ /**
2520
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2521
+ * for notes on _meta usage.
2522
+ */
2523
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2524
+ }, undefined>, v.ObjectSchema<{
2525
+ readonly type: v.LiteralSchema<"audio", undefined>;
2526
+ /**
2527
+ * The base64-encoded audio data.
2528
+ */
2529
+ readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
2530
+ /**
2531
+ * The MIME type of the audio. Different providers may support different audio types.
2532
+ */
2533
+ readonly mimeType: v.StringSchema<undefined>;
2534
+ /**
2535
+ * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2536
+ * for notes on _meta usage.
2537
+ */
2538
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2539
+ }, undefined>], undefined>;
2540
+ }, undefined>, undefined>;
2541
+ /**
2542
+ * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
2543
+ */
2544
+ readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2545
+ /**
2546
+ * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
2547
+ */
2548
+ readonly includeContext: v.OptionalSchema<v.PicklistSchema<["none", "thisServer", "allServers"], undefined>, undefined>;
2549
+ readonly temperature: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2550
+ /**
2551
+ * The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested.
2552
+ */
2553
+ readonly maxTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
2554
+ readonly stopSequences: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2555
+ /**
2556
+ * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
2557
+ */
2558
+ readonly metadata: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2559
+ /**
2560
+ * The server's preferences for which model to select.
2561
+ */
2562
+ readonly modelPreferences: v.OptionalSchema<v.ObjectSchema<{
2563
+ /**
2564
+ * Optional hints to use for model selection.
2565
+ */
2566
+ readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2567
+ /**
2568
+ * A hint for a model name.
2569
+ */
2570
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2571
+ }, undefined>, undefined>, undefined>;
2572
+ /**
2573
+ * How much to prioritize cost when selecting a model.
2574
+ */
2575
+ readonly costPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
2576
+ /**
2577
+ * How much to prioritize sampling speed (latency) when selecting a model.
2578
+ */
2579
+ readonly speedPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
2580
+ /**
2581
+ * How much to prioritize intelligence and capabilities when selecting a model.
2582
+ */
2583
+ readonly intelligencePriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
2584
+ }, undefined>, undefined>;
2585
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
2586
+ /**
2587
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
2588
+ */
2589
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
2590
+ }, undefined>, undefined>;
2591
+ }, undefined>;
2592
+ }, undefined>, v.ObjectSchema<{
2593
+ readonly method: v.LiteralSchema<"roots/list", undefined>;
2594
+ readonly params: v.OptionalSchema<v.LooseObjectSchema<{
2595
+ readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
2596
+ /**
2597
+ * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
2598
+ */
2599
+ readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
2600
+ }, undefined>, undefined>;
2601
+ }, undefined>, undefined>;
2602
+ }, undefined>], undefined>, undefined>;
2603
+ /**
2604
+ * A uniquely identifying ID for a request in JSON-RPC.
2605
+ */
2606
+ declare const RequestIdSchema: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
2607
+ /**
2608
+ * Notification types requested on a per-request subscription stream. Every field
2609
+ * is opt-in.
2610
+ */
2611
+ declare const SubscriptionFilterSchema: v.ObjectSchema<{
2612
+ readonly toolsListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2613
+ readonly promptsListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2614
+ readonly resourcesListChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2615
+ readonly resourceSubscriptions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
2616
+ }, undefined>;
2617
+ export {};
2618
+ //# sourceMappingURL=index.d.ts.map