tmcp 1.7.0 → 1.8.0

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.
@@ -38,7 +38,7 @@ export const NotificationSchema: v.ObjectSchema<{
38
38
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
39
39
  }, undefined>, undefined>;
40
40
  }, undefined>;
41
- export const ResultSchema: v.LooseObjectSchema<{
41
+ export const ResultSchema: v.ObjectSchema<{
42
42
  /**
43
43
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
44
44
  * for notes on _meta usage.
@@ -85,7 +85,7 @@ export const JSONRPCNotificationSchema: v.ObjectSchema<{
85
85
  export const JSONRPCResponseSchema: v.StrictObjectSchema<{
86
86
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
87
87
  readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
88
- readonly result: v.LooseObjectSchema<{
88
+ readonly result: v.ObjectSchema<{
89
89
  /**
90
90
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
91
91
  * for notes on _meta usage.
@@ -139,7 +139,7 @@ export const JSONRPCMessageSchema: v.UnionSchema<[v.ObjectSchema<{
139
139
  }, undefined>, v.StrictObjectSchema<{
140
140
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
141
141
  readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
142
- readonly result: v.LooseObjectSchema<{
142
+ readonly result: v.ObjectSchema<{
143
143
  /**
144
144
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
145
145
  * for notes on _meta usage.
@@ -183,9 +183,9 @@ export const EmptyResultSchema: v.StrictObjectSchema<{
183
183
  *
184
184
  * A client MUST NOT attempt to cancel its `initialize` request.
185
185
  */
186
- export const CancelledNotificationSchema: v.LooseObjectSchema<{
186
+ export const CancelledNotificationSchema: v.ObjectSchema<{
187
187
  readonly method: v.LiteralSchema<"notifications/cancelled", undefined>;
188
- readonly params: v.LooseObjectSchema<{
188
+ readonly params: v.ObjectSchema<{
189
189
  /**
190
190
  * The ID of the request to cancel.
191
191
  *
@@ -206,7 +206,7 @@ export const CancelledNotificationSchema: v.LooseObjectSchema<{
206
206
  /**
207
207
  * Base metadata interface for common properties across resources, tools, prompts, and implementations.
208
208
  */
209
- export const BaseMetadataSchema: v.LooseObjectSchema<{
209
+ export const BaseMetadataSchema: v.ObjectSchema<{
210
210
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
211
211
  readonly name: v.StringSchema<undefined>;
212
212
  /**
@@ -222,7 +222,7 @@ export const BaseMetadataSchema: v.LooseObjectSchema<{
222
222
  /**
223
223
  * Describes the name and version of an MCP implementation.
224
224
  */
225
- export const ImplementationSchema: v.LooseObjectSchema<{
225
+ export const ImplementationSchema: v.ObjectSchema<{
226
226
  readonly version: v.StringSchema<undefined>;
227
227
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
228
228
  readonly name: v.StringSchema<undefined>;
@@ -239,58 +239,58 @@ export const ImplementationSchema: v.LooseObjectSchema<{
239
239
  /**
240
240
  * 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.
241
241
  */
242
- export const ClientCapabilitiesSchema: v.LooseObjectSchema<{
242
+ export const ClientCapabilitiesSchema: v.ObjectSchema<{
243
243
  /**
244
244
  * Experimental, non-standard capabilities that the client supports.
245
245
  */
246
- readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
246
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
247
247
  /**
248
248
  * Present if the client supports sampling from an LLM.
249
249
  */
250
- readonly sampling: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
250
+ readonly sampling: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
251
251
  /**
252
252
  * Present if the client supports eliciting user input.
253
253
  */
254
- readonly elicitation: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
254
+ readonly elicitation: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
255
255
  /**
256
256
  * Present if the client supports listing roots.
257
257
  */
258
- readonly roots: v.OptionalSchema<v.LooseObjectSchema<{
258
+ readonly roots: v.OptionalSchema<v.ObjectSchema<{
259
259
  /**
260
260
  * Whether the client supports issuing notifications for changes to the roots list.
261
261
  */
262
262
  readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
263
263
  }, undefined>, undefined>;
264
264
  }, undefined>;
265
- export const InitializeRequestParamsSchema: v.LooseObjectSchema<{
265
+ export const InitializeRequestParamsSchema: v.ObjectSchema<{
266
266
  /**
267
267
  * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
268
268
  */
269
269
  readonly protocolVersion: v.StringSchema<undefined>;
270
- readonly capabilities: v.LooseObjectSchema<{
270
+ readonly capabilities: v.ObjectSchema<{
271
271
  /**
272
272
  * Experimental, non-standard capabilities that the client supports.
273
273
  */
274
- readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
274
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
275
275
  /**
276
276
  * Present if the client supports sampling from an LLM.
277
277
  */
278
- readonly sampling: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
278
+ readonly sampling: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
279
279
  /**
280
280
  * Present if the client supports eliciting user input.
281
281
  */
282
- readonly elicitation: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
282
+ readonly elicitation: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
283
283
  /**
284
284
  * Present if the client supports listing roots.
285
285
  */
286
- readonly roots: v.OptionalSchema<v.LooseObjectSchema<{
286
+ readonly roots: v.OptionalSchema<v.ObjectSchema<{
287
287
  /**
288
288
  * Whether the client supports issuing notifications for changes to the roots list.
289
289
  */
290
290
  readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
291
291
  }, undefined>, undefined>;
292
292
  }, undefined>;
293
- readonly clientInfo: v.LooseObjectSchema<{
293
+ readonly clientInfo: v.ObjectSchema<{
294
294
  readonly version: v.StringSchema<undefined>;
295
295
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
296
296
  readonly name: v.StringSchema<undefined>;
@@ -314,37 +314,37 @@ export const InitializeRequestParamsSchema: v.LooseObjectSchema<{
314
314
  /**
315
315
  * This request is sent from the client to the server when it first connects, asking it to begin initialization.
316
316
  */
317
- export const InitializeRequestSchema: v.LooseObjectSchema<{
317
+ export const InitializeRequestSchema: v.ObjectSchema<{
318
318
  readonly method: v.LiteralSchema<"initialize", undefined>;
319
- readonly params: v.LooseObjectSchema<{
319
+ readonly params: v.ObjectSchema<{
320
320
  /**
321
321
  * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
322
322
  */
323
323
  readonly protocolVersion: v.StringSchema<undefined>;
324
- readonly capabilities: v.LooseObjectSchema<{
324
+ readonly capabilities: v.ObjectSchema<{
325
325
  /**
326
326
  * Experimental, non-standard capabilities that the client supports.
327
327
  */
328
- readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
328
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
329
329
  /**
330
330
  * Present if the client supports sampling from an LLM.
331
331
  */
332
- readonly sampling: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
332
+ readonly sampling: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
333
333
  /**
334
334
  * Present if the client supports eliciting user input.
335
335
  */
336
- readonly elicitation: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
336
+ readonly elicitation: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
337
337
  /**
338
338
  * Present if the client supports listing roots.
339
339
  */
340
- readonly roots: v.OptionalSchema<v.LooseObjectSchema<{
340
+ readonly roots: v.OptionalSchema<v.ObjectSchema<{
341
341
  /**
342
342
  * Whether the client supports issuing notifications for changes to the roots list.
343
343
  */
344
344
  readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
345
345
  }, undefined>, undefined>;
346
346
  }, undefined>;
347
- readonly clientInfo: v.LooseObjectSchema<{
347
+ readonly clientInfo: v.ObjectSchema<{
348
348
  readonly version: v.StringSchema<undefined>;
349
349
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
350
350
  readonly name: v.StringSchema<undefined>;
@@ -369,23 +369,23 @@ export const InitializeRequestSchema: v.LooseObjectSchema<{
369
369
  /**
370
370
  * 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.
371
371
  */
372
- export const ServerCapabilitiesSchema: v.LooseObjectSchema<{
372
+ export const ServerCapabilitiesSchema: v.ObjectSchema<{
373
373
  /**
374
374
  * Experimental, non-standard capabilities that the server supports.
375
375
  */
376
- readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
376
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
377
377
  /**
378
378
  * Present if the server supports sending log messages to the client.
379
379
  */
380
- readonly logging: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
380
+ readonly logging: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
381
381
  /**
382
382
  * Present if the server supports sending completions to the client.
383
383
  */
384
- readonly completions: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
384
+ readonly completions: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
385
385
  /**
386
386
  * Present if the server offers any prompt templates.
387
387
  */
388
- readonly prompts: v.OptionalSchema<v.LooseObjectSchema<{
388
+ readonly prompts: v.OptionalSchema<v.ObjectSchema<{
389
389
  /**
390
390
  * Whether this server supports issuing notifications for changes to the prompt list.
391
391
  */
@@ -394,7 +394,7 @@ export const ServerCapabilitiesSchema: v.LooseObjectSchema<{
394
394
  /**
395
395
  * Present if the server offers any resources to read.
396
396
  */
397
- readonly resources: v.OptionalSchema<v.LooseObjectSchema<{
397
+ readonly resources: v.OptionalSchema<v.ObjectSchema<{
398
398
  /**
399
399
  * Whether this server supports clients subscribing to resource updates.
400
400
  */
@@ -407,7 +407,7 @@ export const ServerCapabilitiesSchema: v.LooseObjectSchema<{
407
407
  /**
408
408
  * Present if the server offers any tools to call.
409
409
  */
410
- readonly tools: v.OptionalSchema<v.LooseObjectSchema<{
410
+ readonly tools: v.OptionalSchema<v.ObjectSchema<{
411
411
  /**
412
412
  * Whether this server supports issuing notifications for changes to the tool list.
413
413
  */
@@ -417,28 +417,28 @@ export const ServerCapabilitiesSchema: v.LooseObjectSchema<{
417
417
  /**
418
418
  * After receiving an initialize request from the client, the server sends this response.
419
419
  */
420
- export const InitializeResultSchema: v.LooseObjectSchema<{
420
+ export const InitializeResultSchema: v.ObjectSchema<{
421
421
  /**
422
422
  * 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.
423
423
  */
424
424
  readonly protocolVersion: v.StringSchema<undefined>;
425
- readonly capabilities: v.LooseObjectSchema<{
425
+ readonly capabilities: v.ObjectSchema<{
426
426
  /**
427
427
  * Experimental, non-standard capabilities that the server supports.
428
428
  */
429
- readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
429
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
430
430
  /**
431
431
  * Present if the server supports sending log messages to the client.
432
432
  */
433
- readonly logging: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
433
+ readonly logging: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
434
434
  /**
435
435
  * Present if the server supports sending completions to the client.
436
436
  */
437
- readonly completions: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
437
+ readonly completions: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
438
438
  /**
439
439
  * Present if the server offers any prompt templates.
440
440
  */
441
- readonly prompts: v.OptionalSchema<v.LooseObjectSchema<{
441
+ readonly prompts: v.OptionalSchema<v.ObjectSchema<{
442
442
  /**
443
443
  * Whether this server supports issuing notifications for changes to the prompt list.
444
444
  */
@@ -447,7 +447,7 @@ export const InitializeResultSchema: v.LooseObjectSchema<{
447
447
  /**
448
448
  * Present if the server offers any resources to read.
449
449
  */
450
- readonly resources: v.OptionalSchema<v.LooseObjectSchema<{
450
+ readonly resources: v.OptionalSchema<v.ObjectSchema<{
451
451
  /**
452
452
  * Whether this server supports clients subscribing to resource updates.
453
453
  */
@@ -460,14 +460,14 @@ export const InitializeResultSchema: v.LooseObjectSchema<{
460
460
  /**
461
461
  * Present if the server offers any tools to call.
462
462
  */
463
- readonly tools: v.OptionalSchema<v.LooseObjectSchema<{
463
+ readonly tools: v.OptionalSchema<v.ObjectSchema<{
464
464
  /**
465
465
  * Whether this server supports issuing notifications for changes to the tool list.
466
466
  */
467
467
  readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
468
468
  }, undefined>, undefined>;
469
469
  }, undefined>;
470
- readonly serverInfo: v.LooseObjectSchema<{
470
+ readonly serverInfo: v.ObjectSchema<{
471
471
  readonly version: v.StringSchema<undefined>;
472
472
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
473
473
  readonly name: v.StringSchema<undefined>;
@@ -496,7 +496,7 @@ export const InitializeResultSchema: v.LooseObjectSchema<{
496
496
  /**
497
497
  * This notification is sent from the client to the server after initialization has finished.
498
498
  */
499
- export const InitializedNotificationSchema: v.LooseObjectSchema<{
499
+ export const InitializedNotificationSchema: v.ObjectSchema<{
500
500
  readonly method: v.LiteralSchema<"notifications/initialized", undefined>;
501
501
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
502
502
  /**
@@ -509,7 +509,7 @@ export const InitializedNotificationSchema: v.LooseObjectSchema<{
509
509
  /**
510
510
  * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
511
511
  */
512
- export const PingRequestSchema: v.LooseObjectSchema<{
512
+ export const PingRequestSchema: v.ObjectSchema<{
513
513
  readonly method: v.LiteralSchema<"ping", undefined>;
514
514
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
515
515
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
@@ -520,7 +520,7 @@ export const PingRequestSchema: v.LooseObjectSchema<{
520
520
  }, undefined>, undefined>;
521
521
  }, undefined>, undefined>;
522
522
  }, undefined>;
523
- export const ProgressSchema: v.LooseObjectSchema<{
523
+ export const ProgressSchema: v.ObjectSchema<{
524
524
  /**
525
525
  * The progress thus far. This should increase every time progress is made, even if the total is unknown.
526
526
  */
@@ -537,7 +537,7 @@ export const ProgressSchema: v.LooseObjectSchema<{
537
537
  /**
538
538
  * An out-of-band notification used to inform the receiver of a progress update for a long-running request.
539
539
  */
540
- export const ProgressNotificationSchema: v.LooseObjectSchema<{
540
+ export const ProgressNotificationSchema: v.ObjectSchema<{
541
541
  readonly method: v.LiteralSchema<"notifications/progress", undefined>;
542
542
  readonly params: v.ObjectSchema<{
543
543
  /**
@@ -563,8 +563,8 @@ export const ProgressNotificationSchema: v.LooseObjectSchema<{
563
563
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
564
564
  }, undefined>;
565
565
  }, undefined>;
566
- export const PaginatedRequestSchema: v.LooseObjectSchema<{
567
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
566
+ export const PaginatedRequestSchema: v.ObjectSchema<{
567
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
568
568
  /**
569
569
  * An opaque token representing the current pagination position.
570
570
  * If provided, the server should return results starting after this cursor.
@@ -579,7 +579,7 @@ export const PaginatedRequestSchema: v.LooseObjectSchema<{
579
579
  }, undefined>, undefined>;
580
580
  readonly method: v.StringSchema<undefined>;
581
581
  }, undefined>;
582
- export const PaginatedResultSchema: v.LooseObjectSchema<{
582
+ export const PaginatedResultSchema: v.ObjectSchema<{
583
583
  /**
584
584
  * An opaque token representing the pagination position after the last returned result.
585
585
  * If present, there may be more results available.
@@ -594,7 +594,7 @@ export const PaginatedResultSchema: v.LooseObjectSchema<{
594
594
  /**
595
595
  * The contents of a specific resource or sub-resource.
596
596
  */
597
- export const ResourceContentsSchema: v.LooseObjectSchema<{
597
+ export const ResourceContentsSchema: v.ObjectSchema<{
598
598
  /**
599
599
  * The URI of this resource.
600
600
  */
@@ -607,9 +607,9 @@ export const ResourceContentsSchema: v.LooseObjectSchema<{
607
607
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
608
608
  * for notes on _meta usage.
609
609
  */
610
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
610
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
611
611
  }, undefined>;
612
- export const TextResourceContentsSchema: v.LooseObjectSchema<{
612
+ export const TextResourceContentsSchema: v.ObjectSchema<{
613
613
  /**
614
614
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
615
615
  */
@@ -626,9 +626,9 @@ export const TextResourceContentsSchema: v.LooseObjectSchema<{
626
626
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
627
627
  * for notes on _meta usage.
628
628
  */
629
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
629
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
630
630
  }, undefined>;
631
- export const BlobResourceContentsSchema: v.LooseObjectSchema<{
631
+ export const BlobResourceContentsSchema: v.ObjectSchema<{
632
632
  /**
633
633
  * A base64-encoded string representing the binary data of the item.
634
634
  */
@@ -645,12 +645,12 @@ export const BlobResourceContentsSchema: v.LooseObjectSchema<{
645
645
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
646
646
  * for notes on _meta usage.
647
647
  */
648
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
648
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
649
649
  }, undefined>;
650
650
  /**
651
651
  * A known resource that the server is capable of reading.
652
652
  */
653
- export const ResourceSchema: v.LooseObjectSchema<{
653
+ export const ResourceSchema: v.ObjectSchema<{
654
654
  /**
655
655
  * The URI of this resource.
656
656
  */
@@ -669,7 +669,7 @@ export const ResourceSchema: v.LooseObjectSchema<{
669
669
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
670
670
  * for notes on _meta usage.
671
671
  */
672
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
672
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
673
673
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
674
674
  readonly name: v.StringSchema<undefined>;
675
675
  /**
@@ -685,7 +685,7 @@ export const ResourceSchema: v.LooseObjectSchema<{
685
685
  /**
686
686
  * A template description for resources available on the server.
687
687
  */
688
- export const ResourceTemplateSchema: v.LooseObjectSchema<{
688
+ export const ResourceTemplateSchema: v.ObjectSchema<{
689
689
  /**
690
690
  * A URI template (according to RFC 6570) that can be used to construct resource URIs.
691
691
  */
@@ -704,7 +704,7 @@ export const ResourceTemplateSchema: v.LooseObjectSchema<{
704
704
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
705
705
  * for notes on _meta usage.
706
706
  */
707
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
707
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
708
708
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
709
709
  readonly name: v.StringSchema<undefined>;
710
710
  /**
@@ -720,9 +720,9 @@ export const ResourceTemplateSchema: v.LooseObjectSchema<{
720
720
  /**
721
721
  * Sent from the client to request a list of resources the server has.
722
722
  */
723
- export const ListResourcesRequestSchema: v.LooseObjectSchema<{
723
+ export const ListResourcesRequestSchema: v.ObjectSchema<{
724
724
  readonly method: v.LiteralSchema<"resources/list", undefined>;
725
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
725
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
726
726
  /**
727
727
  * An opaque token representing the current pagination position.
728
728
  * If provided, the server should return results starting after this cursor.
@@ -739,8 +739,8 @@ export const ListResourcesRequestSchema: v.LooseObjectSchema<{
739
739
  /**
740
740
  * The server's response to a resources/list request from the client.
741
741
  */
742
- export const ListResourcesResultSchema: v.LooseObjectSchema<{
743
- readonly resources: v.ArraySchema<v.LooseObjectSchema<{
742
+ export const ListResourcesResultSchema: v.ObjectSchema<{
743
+ readonly resources: v.ArraySchema<v.ObjectSchema<{
744
744
  /**
745
745
  * The URI of this resource.
746
746
  */
@@ -759,7 +759,7 @@ export const ListResourcesResultSchema: v.LooseObjectSchema<{
759
759
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
760
760
  * for notes on _meta usage.
761
761
  */
762
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
762
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
763
763
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
764
764
  readonly name: v.StringSchema<undefined>;
765
765
  /**
@@ -786,9 +786,9 @@ export const ListResourcesResultSchema: v.LooseObjectSchema<{
786
786
  /**
787
787
  * Sent from the client to request a list of resource templates the server has.
788
788
  */
789
- export const ListResourceTemplatesRequestSchema: v.LooseObjectSchema<{
789
+ export const ListResourceTemplatesRequestSchema: v.ObjectSchema<{
790
790
  readonly method: v.LiteralSchema<"resources/templates/list", undefined>;
791
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
791
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
792
792
  /**
793
793
  * An opaque token representing the current pagination position.
794
794
  * If provided, the server should return results starting after this cursor.
@@ -805,8 +805,8 @@ export const ListResourceTemplatesRequestSchema: v.LooseObjectSchema<{
805
805
  /**
806
806
  * The server's response to a resources/templates/list request from the client.
807
807
  */
808
- export const ListResourceTemplatesResultSchema: v.LooseObjectSchema<{
809
- readonly resourceTemplates: v.ArraySchema<v.LooseObjectSchema<{
808
+ export const ListResourceTemplatesResultSchema: v.ObjectSchema<{
809
+ readonly resourceTemplates: v.ArraySchema<v.ObjectSchema<{
810
810
  /**
811
811
  * A URI template (according to RFC 6570) that can be used to construct resource URIs.
812
812
  */
@@ -825,7 +825,7 @@ export const ListResourceTemplatesResultSchema: v.LooseObjectSchema<{
825
825
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
826
826
  * for notes on _meta usage.
827
827
  */
828
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
828
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
829
829
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
830
830
  readonly name: v.StringSchema<undefined>;
831
831
  /**
@@ -852,9 +852,9 @@ export const ListResourceTemplatesResultSchema: v.LooseObjectSchema<{
852
852
  /**
853
853
  * Sent from the client to the server, to read a specific resource URI.
854
854
  */
855
- export const ReadResourceRequestSchema: v.LooseObjectSchema<{
855
+ export const ReadResourceRequestSchema: v.ObjectSchema<{
856
856
  readonly method: v.LiteralSchema<"resources/read", undefined>;
857
- readonly params: v.LooseObjectSchema<{
857
+ readonly params: v.ObjectSchema<{
858
858
  /**
859
859
  * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
860
860
  */
@@ -870,8 +870,8 @@ export const ReadResourceRequestSchema: v.LooseObjectSchema<{
870
870
  /**
871
871
  * The server's response to a resources/read request from the client.
872
872
  */
873
- export const ReadResourceResultSchema: v.LooseObjectSchema<{
874
- readonly contents: v.ArraySchema<v.UnionSchema<[v.LooseObjectSchema<{
873
+ export const ReadResourceResultSchema: v.ObjectSchema<{
874
+ readonly contents: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
875
875
  /**
876
876
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
877
877
  */
@@ -888,8 +888,8 @@ export const ReadResourceResultSchema: v.LooseObjectSchema<{
888
888
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
889
889
  * for notes on _meta usage.
890
890
  */
891
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
892
- }, undefined>, v.LooseObjectSchema<{
891
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
892
+ }, undefined>, v.ObjectSchema<{
893
893
  /**
894
894
  * A base64-encoded string representing the binary data of the item.
895
895
  */
@@ -906,7 +906,7 @@ export const ReadResourceResultSchema: v.LooseObjectSchema<{
906
906
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
907
907
  * for notes on _meta usage.
908
908
  */
909
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
909
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
910
910
  }, undefined>], undefined>, undefined>;
911
911
  /**
912
912
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
@@ -917,7 +917,7 @@ export const ReadResourceResultSchema: v.LooseObjectSchema<{
917
917
  /**
918
918
  * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
919
919
  */
920
- export const ResourceListChangedNotificationSchema: v.LooseObjectSchema<{
920
+ export const ResourceListChangedNotificationSchema: v.ObjectSchema<{
921
921
  readonly method: v.LiteralSchema<"notifications/resources/list_changed", undefined>;
922
922
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
923
923
  /**
@@ -930,9 +930,9 @@ export const ResourceListChangedNotificationSchema: v.LooseObjectSchema<{
930
930
  /**
931
931
  * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
932
932
  */
933
- export const SubscribeRequestSchema: v.LooseObjectSchema<{
933
+ export const SubscribeRequestSchema: v.ObjectSchema<{
934
934
  readonly method: v.LiteralSchema<"resources/subscribe", undefined>;
935
- readonly params: v.LooseObjectSchema<{
935
+ readonly params: v.ObjectSchema<{
936
936
  /**
937
937
  * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it.
938
938
  */
@@ -948,9 +948,9 @@ export const SubscribeRequestSchema: v.LooseObjectSchema<{
948
948
  /**
949
949
  * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
950
950
  */
951
- export const UnsubscribeRequestSchema: v.LooseObjectSchema<{
951
+ export const UnsubscribeRequestSchema: v.ObjectSchema<{
952
952
  readonly method: v.LiteralSchema<"resources/unsubscribe", undefined>;
953
- readonly params: v.LooseObjectSchema<{
953
+ readonly params: v.ObjectSchema<{
954
954
  /**
955
955
  * The URI of the resource to unsubscribe from.
956
956
  */
@@ -966,9 +966,9 @@ export const UnsubscribeRequestSchema: v.LooseObjectSchema<{
966
966
  /**
967
967
  * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.
968
968
  */
969
- export const ResourceUpdatedNotificationSchema: v.LooseObjectSchema<{
969
+ export const ResourceUpdatedNotificationSchema: v.ObjectSchema<{
970
970
  readonly method: v.LiteralSchema<"notifications/resources/updated", undefined>;
971
- readonly params: v.LooseObjectSchema<{
971
+ readonly params: v.ObjectSchema<{
972
972
  /**
973
973
  * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
974
974
  */
@@ -983,7 +983,7 @@ export const ResourceUpdatedNotificationSchema: v.LooseObjectSchema<{
983
983
  /**
984
984
  * Describes an argument that a prompt can accept.
985
985
  */
986
- export const PromptArgumentSchema: v.LooseObjectSchema<{
986
+ export const PromptArgumentSchema: v.ObjectSchema<{
987
987
  /**
988
988
  * The name of the argument.
989
989
  */
@@ -1000,7 +1000,7 @@ export const PromptArgumentSchema: v.LooseObjectSchema<{
1000
1000
  /**
1001
1001
  * A prompt or prompt template that the server offers.
1002
1002
  */
1003
- export const PromptSchema: v.LooseObjectSchema<{
1003
+ export const PromptSchema: v.ObjectSchema<{
1004
1004
  /**
1005
1005
  * An optional description of what this prompt provides
1006
1006
  */
@@ -1008,7 +1008,7 @@ export const PromptSchema: v.LooseObjectSchema<{
1008
1008
  /**
1009
1009
  * A list of arguments to use for templating the prompt.
1010
1010
  */
1011
- readonly arguments: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
1011
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1012
1012
  /**
1013
1013
  * The name of the argument.
1014
1014
  */
@@ -1026,7 +1026,7 @@ export const PromptSchema: v.LooseObjectSchema<{
1026
1026
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1027
1027
  * for notes on _meta usage.
1028
1028
  */
1029
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1029
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1030
1030
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1031
1031
  readonly name: v.StringSchema<undefined>;
1032
1032
  /**
@@ -1042,9 +1042,9 @@ export const PromptSchema: v.LooseObjectSchema<{
1042
1042
  /**
1043
1043
  * Sent from the client to request a list of prompts and prompt templates the server has.
1044
1044
  */
1045
- export const ListPromptsRequestSchema: v.LooseObjectSchema<{
1045
+ export const ListPromptsRequestSchema: v.ObjectSchema<{
1046
1046
  readonly method: v.LiteralSchema<"prompts/list", undefined>;
1047
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
1047
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
1048
1048
  /**
1049
1049
  * An opaque token representing the current pagination position.
1050
1050
  * If provided, the server should return results starting after this cursor.
@@ -1061,8 +1061,8 @@ export const ListPromptsRequestSchema: v.LooseObjectSchema<{
1061
1061
  /**
1062
1062
  * The server's response to a prompts/list request from the client.
1063
1063
  */
1064
- export const ListPromptsResultSchema: v.LooseObjectSchema<{
1065
- readonly prompts: v.ArraySchema<v.LooseObjectSchema<{
1064
+ export const ListPromptsResultSchema: v.ObjectSchema<{
1065
+ readonly prompts: v.ArraySchema<v.ObjectSchema<{
1066
1066
  /**
1067
1067
  * An optional description of what this prompt provides
1068
1068
  */
@@ -1070,7 +1070,7 @@ export const ListPromptsResultSchema: v.LooseObjectSchema<{
1070
1070
  /**
1071
1071
  * A list of arguments to use for templating the prompt.
1072
1072
  */
1073
- readonly arguments: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
1073
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1074
1074
  /**
1075
1075
  * The name of the argument.
1076
1076
  */
@@ -1088,7 +1088,7 @@ export const ListPromptsResultSchema: v.LooseObjectSchema<{
1088
1088
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1089
1089
  * for notes on _meta usage.
1090
1090
  */
1091
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1091
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1092
1092
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1093
1093
  readonly name: v.StringSchema<undefined>;
1094
1094
  /**
@@ -1115,9 +1115,9 @@ export const ListPromptsResultSchema: v.LooseObjectSchema<{
1115
1115
  /**
1116
1116
  * Used by the client to get a prompt provided by the server.
1117
1117
  */
1118
- export const GetPromptRequestSchema: v.LooseObjectSchema<{
1118
+ export const GetPromptRequestSchema: v.ObjectSchema<{
1119
1119
  readonly method: v.LiteralSchema<"prompts/get", undefined>;
1120
- readonly params: v.LooseObjectSchema<{
1120
+ readonly params: v.ObjectSchema<{
1121
1121
  /**
1122
1122
  * The name of the prompt or prompt template.
1123
1123
  */
@@ -1137,7 +1137,7 @@ export const GetPromptRequestSchema: v.LooseObjectSchema<{
1137
1137
  /**
1138
1138
  * Text provided to or from an LLM.
1139
1139
  */
1140
- export const TextContentSchema: v.LooseObjectSchema<{
1140
+ export const TextContentSchema: v.ObjectSchema<{
1141
1141
  readonly type: v.LiteralSchema<"text", undefined>;
1142
1142
  /**
1143
1143
  * The text content of the message.
@@ -1147,12 +1147,12 @@ export const TextContentSchema: v.LooseObjectSchema<{
1147
1147
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1148
1148
  * for notes on _meta usage.
1149
1149
  */
1150
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1150
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1151
1151
  }, undefined>;
1152
1152
  /**
1153
1153
  * An image provided to or from an LLM.
1154
1154
  */
1155
- export const ImageContentSchema: v.LooseObjectSchema<{
1155
+ export const ImageContentSchema: v.ObjectSchema<{
1156
1156
  readonly type: v.LiteralSchema<"image", undefined>;
1157
1157
  /**
1158
1158
  * The base64-encoded image data.
@@ -1166,12 +1166,12 @@ export const ImageContentSchema: v.LooseObjectSchema<{
1166
1166
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1167
1167
  * for notes on _meta usage.
1168
1168
  */
1169
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1169
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1170
1170
  }, undefined>;
1171
1171
  /**
1172
1172
  * An Audio provided to or from an LLM.
1173
1173
  */
1174
- export const AudioContentSchema: v.LooseObjectSchema<{
1174
+ export const AudioContentSchema: v.ObjectSchema<{
1175
1175
  readonly type: v.LiteralSchema<"audio", undefined>;
1176
1176
  /**
1177
1177
  * The base64-encoded audio data.
@@ -1185,14 +1185,14 @@ export const AudioContentSchema: v.LooseObjectSchema<{
1185
1185
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1186
1186
  * for notes on _meta usage.
1187
1187
  */
1188
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1188
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1189
1189
  }, undefined>;
1190
1190
  /**
1191
1191
  * The contents of a resource, embedded into a prompt or tool call result.
1192
1192
  */
1193
- export const EmbeddedResourceSchema: v.LooseObjectSchema<{
1193
+ export const EmbeddedResourceSchema: v.ObjectSchema<{
1194
1194
  readonly type: v.LiteralSchema<"resource", undefined>;
1195
- readonly resource: v.UnionSchema<[v.LooseObjectSchema<{
1195
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
1196
1196
  /**
1197
1197
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
1198
1198
  */
@@ -1209,8 +1209,8 @@ export const EmbeddedResourceSchema: v.LooseObjectSchema<{
1209
1209
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1210
1210
  * for notes on _meta usage.
1211
1211
  */
1212
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1213
- }, undefined>, v.LooseObjectSchema<{
1212
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1213
+ }, undefined>, v.ObjectSchema<{
1214
1214
  /**
1215
1215
  * A base64-encoded string representing the binary data of the item.
1216
1216
  */
@@ -1227,20 +1227,20 @@ export const EmbeddedResourceSchema: v.LooseObjectSchema<{
1227
1227
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1228
1228
  * for notes on _meta usage.
1229
1229
  */
1230
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1230
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1231
1231
  }, undefined>], undefined>;
1232
1232
  /**
1233
1233
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1234
1234
  * for notes on _meta usage.
1235
1235
  */
1236
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1236
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1237
1237
  }, undefined>;
1238
1238
  /**
1239
1239
  * A resource that the server is capable of reading, included in a prompt or tool call result.
1240
1240
  *
1241
1241
  * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
1242
1242
  */
1243
- export const ResourceLinkSchema: v.LooseObjectSchema<{
1243
+ export const ResourceLinkSchema: v.ObjectSchema<{
1244
1244
  readonly type: v.LiteralSchema<"resource_link", undefined>;
1245
1245
  /**
1246
1246
  * The URI of this resource.
@@ -1260,7 +1260,7 @@ export const ResourceLinkSchema: v.LooseObjectSchema<{
1260
1260
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1261
1261
  * for notes on _meta usage.
1262
1262
  */
1263
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1263
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1264
1264
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1265
1265
  readonly name: v.StringSchema<undefined>;
1266
1266
  /**
@@ -1276,7 +1276,7 @@ export const ResourceLinkSchema: v.LooseObjectSchema<{
1276
1276
  /**
1277
1277
  * A content block that can be used in prompts and tool results.
1278
1278
  */
1279
- export const ContentBlockSchema: v.UnionSchema<[v.LooseObjectSchema<{
1279
+ export const ContentBlockSchema: v.UnionSchema<[v.ObjectSchema<{
1280
1280
  readonly type: v.LiteralSchema<"text", undefined>;
1281
1281
  /**
1282
1282
  * The text content of the message.
@@ -1286,8 +1286,8 @@ export const ContentBlockSchema: v.UnionSchema<[v.LooseObjectSchema<{
1286
1286
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1287
1287
  * for notes on _meta usage.
1288
1288
  */
1289
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1290
- }, undefined>, v.LooseObjectSchema<{
1289
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1290
+ }, undefined>, v.ObjectSchema<{
1291
1291
  readonly type: v.LiteralSchema<"image", undefined>;
1292
1292
  /**
1293
1293
  * The base64-encoded image data.
@@ -1301,8 +1301,8 @@ export const ContentBlockSchema: v.UnionSchema<[v.LooseObjectSchema<{
1301
1301
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1302
1302
  * for notes on _meta usage.
1303
1303
  */
1304
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1305
- }, undefined>, v.LooseObjectSchema<{
1304
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1305
+ }, undefined>, v.ObjectSchema<{
1306
1306
  readonly type: v.LiteralSchema<"audio", undefined>;
1307
1307
  /**
1308
1308
  * The base64-encoded audio data.
@@ -1316,8 +1316,8 @@ export const ContentBlockSchema: v.UnionSchema<[v.LooseObjectSchema<{
1316
1316
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1317
1317
  * for notes on _meta usage.
1318
1318
  */
1319
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1320
- }, undefined>, v.LooseObjectSchema<{
1319
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1320
+ }, undefined>, v.ObjectSchema<{
1321
1321
  readonly type: v.LiteralSchema<"resource_link", undefined>;
1322
1322
  /**
1323
1323
  * The URI of this resource.
@@ -1337,7 +1337,7 @@ export const ContentBlockSchema: v.UnionSchema<[v.LooseObjectSchema<{
1337
1337
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1338
1338
  * for notes on _meta usage.
1339
1339
  */
1340
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1340
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1341
1341
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1342
1342
  readonly name: v.StringSchema<undefined>;
1343
1343
  /**
@@ -1349,9 +1349,9 @@ export const ContentBlockSchema: v.UnionSchema<[v.LooseObjectSchema<{
1349
1349
  * if present).
1350
1350
  */
1351
1351
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1352
- }, undefined>, v.LooseObjectSchema<{
1352
+ }, undefined>, v.ObjectSchema<{
1353
1353
  readonly type: v.LiteralSchema<"resource", undefined>;
1354
- readonly resource: v.UnionSchema<[v.LooseObjectSchema<{
1354
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
1355
1355
  /**
1356
1356
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
1357
1357
  */
@@ -1368,8 +1368,8 @@ export const ContentBlockSchema: v.UnionSchema<[v.LooseObjectSchema<{
1368
1368
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1369
1369
  * for notes on _meta usage.
1370
1370
  */
1371
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1372
- }, undefined>, v.LooseObjectSchema<{
1371
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1372
+ }, undefined>, v.ObjectSchema<{
1373
1373
  /**
1374
1374
  * A base64-encoded string representing the binary data of the item.
1375
1375
  */
@@ -1386,20 +1386,20 @@ export const ContentBlockSchema: v.UnionSchema<[v.LooseObjectSchema<{
1386
1386
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1387
1387
  * for notes on _meta usage.
1388
1388
  */
1389
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1389
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1390
1390
  }, undefined>], undefined>;
1391
1391
  /**
1392
1392
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1393
1393
  * for notes on _meta usage.
1394
1394
  */
1395
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1395
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1396
1396
  }, undefined>], undefined>;
1397
1397
  /**
1398
1398
  * Describes a message returned as part of a prompt.
1399
1399
  */
1400
- export const PromptMessageSchema: v.LooseObjectSchema<{
1400
+ export const PromptMessageSchema: v.ObjectSchema<{
1401
1401
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
1402
- readonly content: v.UnionSchema<[v.LooseObjectSchema<{
1402
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
1403
1403
  readonly type: v.LiteralSchema<"text", undefined>;
1404
1404
  /**
1405
1405
  * The text content of the message.
@@ -1409,8 +1409,8 @@ export const PromptMessageSchema: v.LooseObjectSchema<{
1409
1409
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1410
1410
  * for notes on _meta usage.
1411
1411
  */
1412
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1413
- }, undefined>, v.LooseObjectSchema<{
1412
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1413
+ }, undefined>, v.ObjectSchema<{
1414
1414
  readonly type: v.LiteralSchema<"image", undefined>;
1415
1415
  /**
1416
1416
  * The base64-encoded image data.
@@ -1424,8 +1424,8 @@ export const PromptMessageSchema: v.LooseObjectSchema<{
1424
1424
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1425
1425
  * for notes on _meta usage.
1426
1426
  */
1427
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1428
- }, undefined>, v.LooseObjectSchema<{
1427
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1428
+ }, undefined>, v.ObjectSchema<{
1429
1429
  readonly type: v.LiteralSchema<"audio", undefined>;
1430
1430
  /**
1431
1431
  * The base64-encoded audio data.
@@ -1439,8 +1439,8 @@ export const PromptMessageSchema: v.LooseObjectSchema<{
1439
1439
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1440
1440
  * for notes on _meta usage.
1441
1441
  */
1442
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1443
- }, undefined>, v.LooseObjectSchema<{
1442
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1443
+ }, undefined>, v.ObjectSchema<{
1444
1444
  readonly type: v.LiteralSchema<"resource_link", undefined>;
1445
1445
  /**
1446
1446
  * The URI of this resource.
@@ -1460,7 +1460,7 @@ export const PromptMessageSchema: v.LooseObjectSchema<{
1460
1460
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1461
1461
  * for notes on _meta usage.
1462
1462
  */
1463
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1463
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1464
1464
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1465
1465
  readonly name: v.StringSchema<undefined>;
1466
1466
  /**
@@ -1472,9 +1472,9 @@ export const PromptMessageSchema: v.LooseObjectSchema<{
1472
1472
  * if present).
1473
1473
  */
1474
1474
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1475
- }, undefined>, v.LooseObjectSchema<{
1475
+ }, undefined>, v.ObjectSchema<{
1476
1476
  readonly type: v.LiteralSchema<"resource", undefined>;
1477
- readonly resource: v.UnionSchema<[v.LooseObjectSchema<{
1477
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
1478
1478
  /**
1479
1479
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
1480
1480
  */
@@ -1491,8 +1491,8 @@ export const PromptMessageSchema: v.LooseObjectSchema<{
1491
1491
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1492
1492
  * for notes on _meta usage.
1493
1493
  */
1494
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1495
- }, undefined>, v.LooseObjectSchema<{
1494
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1495
+ }, undefined>, v.ObjectSchema<{
1496
1496
  /**
1497
1497
  * A base64-encoded string representing the binary data of the item.
1498
1498
  */
@@ -1509,26 +1509,26 @@ export const PromptMessageSchema: v.LooseObjectSchema<{
1509
1509
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1510
1510
  * for notes on _meta usage.
1511
1511
  */
1512
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1512
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1513
1513
  }, undefined>], undefined>;
1514
1514
  /**
1515
1515
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1516
1516
  * for notes on _meta usage.
1517
1517
  */
1518
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1518
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1519
1519
  }, undefined>], undefined>;
1520
1520
  }, undefined>;
1521
1521
  /**
1522
1522
  * The server's response to a prompts/get request from the client.
1523
1523
  */
1524
- export const GetPromptResultSchema: v.LooseObjectSchema<{
1524
+ export const GetPromptResultSchema: v.ObjectSchema<{
1525
1525
  /**
1526
1526
  * An optional description for the prompt.
1527
1527
  */
1528
1528
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1529
- readonly messages: v.ArraySchema<v.LooseObjectSchema<{
1529
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
1530
1530
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
1531
- readonly content: v.UnionSchema<[v.LooseObjectSchema<{
1531
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
1532
1532
  readonly type: v.LiteralSchema<"text", undefined>;
1533
1533
  /**
1534
1534
  * The text content of the message.
@@ -1538,8 +1538,8 @@ export const GetPromptResultSchema: v.LooseObjectSchema<{
1538
1538
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1539
1539
  * for notes on _meta usage.
1540
1540
  */
1541
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1542
- }, undefined>, v.LooseObjectSchema<{
1541
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1542
+ }, undefined>, v.ObjectSchema<{
1543
1543
  readonly type: v.LiteralSchema<"image", undefined>;
1544
1544
  /**
1545
1545
  * The base64-encoded image data.
@@ -1553,8 +1553,8 @@ export const GetPromptResultSchema: v.LooseObjectSchema<{
1553
1553
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1554
1554
  * for notes on _meta usage.
1555
1555
  */
1556
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1557
- }, undefined>, v.LooseObjectSchema<{
1556
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1557
+ }, undefined>, v.ObjectSchema<{
1558
1558
  readonly type: v.LiteralSchema<"audio", undefined>;
1559
1559
  /**
1560
1560
  * The base64-encoded audio data.
@@ -1568,8 +1568,8 @@ export const GetPromptResultSchema: v.LooseObjectSchema<{
1568
1568
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1569
1569
  * for notes on _meta usage.
1570
1570
  */
1571
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1572
- }, undefined>, v.LooseObjectSchema<{
1571
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1572
+ }, undefined>, v.ObjectSchema<{
1573
1573
  readonly type: v.LiteralSchema<"resource_link", undefined>;
1574
1574
  /**
1575
1575
  * The URI of this resource.
@@ -1589,7 +1589,7 @@ export const GetPromptResultSchema: v.LooseObjectSchema<{
1589
1589
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1590
1590
  * for notes on _meta usage.
1591
1591
  */
1592
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1592
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1593
1593
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1594
1594
  readonly name: v.StringSchema<undefined>;
1595
1595
  /**
@@ -1601,9 +1601,9 @@ export const GetPromptResultSchema: v.LooseObjectSchema<{
1601
1601
  * if present).
1602
1602
  */
1603
1603
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1604
- }, undefined>, v.LooseObjectSchema<{
1604
+ }, undefined>, v.ObjectSchema<{
1605
1605
  readonly type: v.LiteralSchema<"resource", undefined>;
1606
- readonly resource: v.UnionSchema<[v.LooseObjectSchema<{
1606
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
1607
1607
  /**
1608
1608
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
1609
1609
  */
@@ -1620,8 +1620,8 @@ export const GetPromptResultSchema: v.LooseObjectSchema<{
1620
1620
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1621
1621
  * for notes on _meta usage.
1622
1622
  */
1623
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1624
- }, undefined>, v.LooseObjectSchema<{
1623
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1624
+ }, undefined>, v.ObjectSchema<{
1625
1625
  /**
1626
1626
  * A base64-encoded string representing the binary data of the item.
1627
1627
  */
@@ -1638,13 +1638,13 @@ export const GetPromptResultSchema: v.LooseObjectSchema<{
1638
1638
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1639
1639
  * for notes on _meta usage.
1640
1640
  */
1641
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1641
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1642
1642
  }, undefined>], undefined>;
1643
1643
  /**
1644
1644
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1645
1645
  * for notes on _meta usage.
1646
1646
  */
1647
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1647
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1648
1648
  }, undefined>], undefined>;
1649
1649
  }, undefined>, undefined>;
1650
1650
  /**
@@ -1656,7 +1656,7 @@ export const GetPromptResultSchema: v.LooseObjectSchema<{
1656
1656
  /**
1657
1657
  * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
1658
1658
  */
1659
- export const PromptListChangedNotificationSchema: v.LooseObjectSchema<{
1659
+ export const PromptListChangedNotificationSchema: v.ObjectSchema<{
1660
1660
  readonly method: v.LiteralSchema<"notifications/prompts/list_changed", undefined>;
1661
1661
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
1662
1662
  /**
@@ -1676,7 +1676,7 @@ export const PromptListChangedNotificationSchema: v.LooseObjectSchema<{
1676
1676
  * Clients should never make tool use decisions based on ToolAnnotations
1677
1677
  * received from untrusted servers.
1678
1678
  */
1679
- export const ToolAnnotationsSchema: v.LooseObjectSchema<{
1679
+ export const ToolAnnotationsSchema: v.ObjectSchema<{
1680
1680
  /**
1681
1681
  * A human-readable title for the tool.
1682
1682
  */
@@ -1718,7 +1718,7 @@ export const ToolAnnotationsSchema: v.LooseObjectSchema<{
1718
1718
  /**
1719
1719
  * Definition for a tool the client can call.
1720
1720
  */
1721
- export const ToolSchema: v.LooseObjectSchema<{
1721
+ export const ToolSchema: v.ObjectSchema<{
1722
1722
  /**
1723
1723
  * A human-readable description of the tool.
1724
1724
  */
@@ -1726,24 +1726,24 @@ export const ToolSchema: v.LooseObjectSchema<{
1726
1726
  /**
1727
1727
  * A JSON Schema object defining the expected parameters for the tool.
1728
1728
  */
1729
- readonly inputSchema: v.LooseObjectSchema<{
1729
+ readonly inputSchema: v.ObjectSchema<{
1730
1730
  readonly type: v.LiteralSchema<"object", undefined>;
1731
- readonly properties: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1731
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1732
1732
  readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1733
1733
  }, undefined>;
1734
1734
  /**
1735
1735
  * An optional JSON Schema object defining the structure of the tool's output returned in
1736
1736
  * the structuredContent field of a CallToolResult.
1737
1737
  */
1738
- readonly outputSchema: v.OptionalSchema<v.LooseObjectSchema<{
1738
+ readonly outputSchema: v.OptionalSchema<v.ObjectSchema<{
1739
1739
  readonly type: v.LiteralSchema<"object", undefined>;
1740
- readonly properties: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1740
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1741
1741
  readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1742
1742
  }, undefined>, undefined>;
1743
1743
  /**
1744
1744
  * Optional additional tool information.
1745
1745
  */
1746
- readonly annotations: v.OptionalSchema<v.LooseObjectSchema<{
1746
+ readonly annotations: v.OptionalSchema<v.ObjectSchema<{
1747
1747
  /**
1748
1748
  * A human-readable title for the tool.
1749
1749
  */
@@ -1786,7 +1786,7 @@ export const ToolSchema: v.LooseObjectSchema<{
1786
1786
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1787
1787
  * for notes on _meta usage.
1788
1788
  */
1789
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1789
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1790
1790
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1791
1791
  readonly name: v.StringSchema<undefined>;
1792
1792
  /**
@@ -1802,9 +1802,9 @@ export const ToolSchema: v.LooseObjectSchema<{
1802
1802
  /**
1803
1803
  * Sent from the client to request a list of tools the server has.
1804
1804
  */
1805
- export const ListToolsRequestSchema: v.LooseObjectSchema<{
1805
+ export const ListToolsRequestSchema: v.ObjectSchema<{
1806
1806
  readonly method: v.LiteralSchema<"tools/list", undefined>;
1807
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
1807
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
1808
1808
  /**
1809
1809
  * An opaque token representing the current pagination position.
1810
1810
  * If provided, the server should return results starting after this cursor.
@@ -1821,8 +1821,8 @@ export const ListToolsRequestSchema: v.LooseObjectSchema<{
1821
1821
  /**
1822
1822
  * The server's response to a tools/list request from the client.
1823
1823
  */
1824
- export const ListToolsResultSchema: v.LooseObjectSchema<{
1825
- readonly tools: v.ArraySchema<v.LooseObjectSchema<{
1824
+ export const ListToolsResultSchema: v.ObjectSchema<{
1825
+ readonly tools: v.ArraySchema<v.ObjectSchema<{
1826
1826
  /**
1827
1827
  * A human-readable description of the tool.
1828
1828
  */
@@ -1830,24 +1830,24 @@ export const ListToolsResultSchema: v.LooseObjectSchema<{
1830
1830
  /**
1831
1831
  * A JSON Schema object defining the expected parameters for the tool.
1832
1832
  */
1833
- readonly inputSchema: v.LooseObjectSchema<{
1833
+ readonly inputSchema: v.ObjectSchema<{
1834
1834
  readonly type: v.LiteralSchema<"object", undefined>;
1835
- readonly properties: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1835
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1836
1836
  readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1837
1837
  }, undefined>;
1838
1838
  /**
1839
1839
  * An optional JSON Schema object defining the structure of the tool's output returned in
1840
1840
  * the structuredContent field of a CallToolResult.
1841
1841
  */
1842
- readonly outputSchema: v.OptionalSchema<v.LooseObjectSchema<{
1842
+ readonly outputSchema: v.OptionalSchema<v.ObjectSchema<{
1843
1843
  readonly type: v.LiteralSchema<"object", undefined>;
1844
- readonly properties: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1844
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1845
1845
  readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
1846
1846
  }, undefined>, undefined>;
1847
1847
  /**
1848
1848
  * Optional additional tool information.
1849
1849
  */
1850
- readonly annotations: v.OptionalSchema<v.LooseObjectSchema<{
1850
+ readonly annotations: v.OptionalSchema<v.ObjectSchema<{
1851
1851
  /**
1852
1852
  * A human-readable title for the tool.
1853
1853
  */
@@ -1890,7 +1890,7 @@ export const ListToolsResultSchema: v.LooseObjectSchema<{
1890
1890
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1891
1891
  * for notes on _meta usage.
1892
1892
  */
1893
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1893
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1894
1894
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1895
1895
  readonly name: v.StringSchema<undefined>;
1896
1896
  /**
@@ -1917,14 +1917,14 @@ export const ListToolsResultSchema: v.LooseObjectSchema<{
1917
1917
  /**
1918
1918
  * The server's response to a tool call.
1919
1919
  */
1920
- export const CallToolResultSchema: v.LooseObjectSchema<{
1920
+ export const CallToolResultSchema: v.ObjectSchema<{
1921
1921
  /**
1922
1922
  * A list of content objects that represent the result of the tool call.
1923
1923
  *
1924
1924
  * If the Tool does not define an outputSchema, this field MUST be present in the result.
1925
1925
  * For backwards compatibility, this field is always present, but it may be empty.
1926
1926
  */
1927
- readonly content: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.LooseObjectSchema<{
1927
+ readonly content: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1928
1928
  readonly type: v.LiteralSchema<"text", undefined>;
1929
1929
  /**
1930
1930
  * The text content of the message.
@@ -1934,8 +1934,8 @@ export const CallToolResultSchema: v.LooseObjectSchema<{
1934
1934
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1935
1935
  * for notes on _meta usage.
1936
1936
  */
1937
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1938
- }, undefined>, v.LooseObjectSchema<{
1937
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1938
+ }, undefined>, v.ObjectSchema<{
1939
1939
  readonly type: v.LiteralSchema<"image", undefined>;
1940
1940
  /**
1941
1941
  * The base64-encoded image data.
@@ -1949,8 +1949,8 @@ export const CallToolResultSchema: v.LooseObjectSchema<{
1949
1949
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1950
1950
  * for notes on _meta usage.
1951
1951
  */
1952
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1953
- }, undefined>, v.LooseObjectSchema<{
1952
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1953
+ }, undefined>, v.ObjectSchema<{
1954
1954
  readonly type: v.LiteralSchema<"audio", undefined>;
1955
1955
  /**
1956
1956
  * The base64-encoded audio data.
@@ -1964,8 +1964,8 @@ export const CallToolResultSchema: v.LooseObjectSchema<{
1964
1964
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1965
1965
  * for notes on _meta usage.
1966
1966
  */
1967
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1968
- }, undefined>, v.LooseObjectSchema<{
1967
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1968
+ }, undefined>, v.ObjectSchema<{
1969
1969
  readonly type: v.LiteralSchema<"resource_link", undefined>;
1970
1970
  /**
1971
1971
  * The URI of this resource.
@@ -1985,7 +1985,7 @@ export const CallToolResultSchema: v.LooseObjectSchema<{
1985
1985
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1986
1986
  * for notes on _meta usage.
1987
1987
  */
1988
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
1988
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
1989
1989
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
1990
1990
  readonly name: v.StringSchema<undefined>;
1991
1991
  /**
@@ -1997,9 +1997,9 @@ export const CallToolResultSchema: v.LooseObjectSchema<{
1997
1997
  * if present).
1998
1998
  */
1999
1999
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2000
- }, undefined>, v.LooseObjectSchema<{
2000
+ }, undefined>, v.ObjectSchema<{
2001
2001
  readonly type: v.LiteralSchema<"resource", undefined>;
2002
- readonly resource: v.UnionSchema<[v.LooseObjectSchema<{
2002
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
2003
2003
  /**
2004
2004
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
2005
2005
  */
@@ -2016,8 +2016,8 @@ export const CallToolResultSchema: v.LooseObjectSchema<{
2016
2016
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2017
2017
  * for notes on _meta usage.
2018
2018
  */
2019
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2020
- }, undefined>, v.LooseObjectSchema<{
2019
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2020
+ }, undefined>, v.ObjectSchema<{
2021
2021
  /**
2022
2022
  * A base64-encoded string representing the binary data of the item.
2023
2023
  */
@@ -2034,13 +2034,13 @@ export const CallToolResultSchema: v.LooseObjectSchema<{
2034
2034
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2035
2035
  * for notes on _meta usage.
2036
2036
  */
2037
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2037
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2038
2038
  }, undefined>], undefined>;
2039
2039
  /**
2040
2040
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2041
2041
  * for notes on _meta usage.
2042
2042
  */
2043
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2043
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2044
2044
  }, undefined>], undefined>, undefined>, readonly []>;
2045
2045
  /**
2046
2046
  * An object containing structured tool output.
@@ -2072,14 +2072,14 @@ export const CallToolResultSchema: v.LooseObjectSchema<{
2072
2072
  /**
2073
2073
  * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07.
2074
2074
  */
2075
- export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSchema<{
2075
+ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.ObjectSchema<{
2076
2076
  /**
2077
2077
  * A list of content objects that represent the result of the tool call.
2078
2078
  *
2079
2079
  * If the Tool does not define an outputSchema, this field MUST be present in the result.
2080
2080
  * For backwards compatibility, this field is always present, but it may be empty.
2081
2081
  */
2082
- readonly content: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.LooseObjectSchema<{
2082
+ readonly content: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
2083
2083
  readonly type: v.LiteralSchema<"text", undefined>;
2084
2084
  /**
2085
2085
  * The text content of the message.
@@ -2089,8 +2089,8 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2089
2089
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2090
2090
  * for notes on _meta usage.
2091
2091
  */
2092
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2093
- }, undefined>, v.LooseObjectSchema<{
2092
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2093
+ }, undefined>, v.ObjectSchema<{
2094
2094
  readonly type: v.LiteralSchema<"image", undefined>;
2095
2095
  /**
2096
2096
  * The base64-encoded image data.
@@ -2104,8 +2104,8 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2104
2104
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2105
2105
  * for notes on _meta usage.
2106
2106
  */
2107
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2108
- }, undefined>, v.LooseObjectSchema<{
2107
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2108
+ }, undefined>, v.ObjectSchema<{
2109
2109
  readonly type: v.LiteralSchema<"audio", undefined>;
2110
2110
  /**
2111
2111
  * The base64-encoded audio data.
@@ -2119,8 +2119,8 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2119
2119
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2120
2120
  * for notes on _meta usage.
2121
2121
  */
2122
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2123
- }, undefined>, v.LooseObjectSchema<{
2122
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2123
+ }, undefined>, v.ObjectSchema<{
2124
2124
  readonly type: v.LiteralSchema<"resource_link", undefined>;
2125
2125
  /**
2126
2126
  * The URI of this resource.
@@ -2140,7 +2140,7 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2140
2140
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2141
2141
  * for notes on _meta usage.
2142
2142
  */
2143
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2143
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2144
2144
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
2145
2145
  readonly name: v.StringSchema<undefined>;
2146
2146
  /**
@@ -2152,9 +2152,9 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2152
2152
  * if present).
2153
2153
  */
2154
2154
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2155
- }, undefined>, v.LooseObjectSchema<{
2155
+ }, undefined>, v.ObjectSchema<{
2156
2156
  readonly type: v.LiteralSchema<"resource", undefined>;
2157
- readonly resource: v.UnionSchema<[v.LooseObjectSchema<{
2157
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
2158
2158
  /**
2159
2159
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
2160
2160
  */
@@ -2171,8 +2171,8 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2171
2171
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2172
2172
  * for notes on _meta usage.
2173
2173
  */
2174
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2175
- }, undefined>, v.LooseObjectSchema<{
2174
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2175
+ }, undefined>, v.ObjectSchema<{
2176
2176
  /**
2177
2177
  * A base64-encoded string representing the binary data of the item.
2178
2178
  */
@@ -2189,13 +2189,13 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2189
2189
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2190
2190
  * for notes on _meta usage.
2191
2191
  */
2192
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2192
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2193
2193
  }, undefined>], undefined>;
2194
2194
  /**
2195
2195
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2196
2196
  * for notes on _meta usage.
2197
2197
  */
2198
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2198
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2199
2199
  }, undefined>], undefined>, undefined>, readonly []>;
2200
2200
  /**
2201
2201
  * An object containing structured tool output.
@@ -2223,7 +2223,7 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2223
2223
  * for notes on _meta usage.
2224
2224
  */
2225
2225
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2226
- }, undefined>, v.LooseObjectSchema<{
2226
+ }, undefined>, v.ObjectSchema<{
2227
2227
  readonly toolResult: v.UnknownSchema;
2228
2228
  /**
2229
2229
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
@@ -2234,9 +2234,9 @@ export const CompatibilityCallToolResultSchema: v.UnionSchema<[v.LooseObjectSche
2234
2234
  /**
2235
2235
  * Used by the client to invoke a tool provided by the server.
2236
2236
  */
2237
- export const CallToolRequestSchema: v.LooseObjectSchema<{
2237
+ export const CallToolRequestSchema: v.ObjectSchema<{
2238
2238
  readonly method: v.LiteralSchema<"tools/call", undefined>;
2239
- readonly params: v.LooseObjectSchema<{
2239
+ readonly params: v.ObjectSchema<{
2240
2240
  readonly name: v.StringSchema<undefined>;
2241
2241
  readonly arguments: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
2242
2242
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
@@ -2250,7 +2250,7 @@ export const CallToolRequestSchema: v.LooseObjectSchema<{
2250
2250
  /**
2251
2251
  * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
2252
2252
  */
2253
- export const ToolListChangedNotificationSchema: v.LooseObjectSchema<{
2253
+ export const ToolListChangedNotificationSchema: v.ObjectSchema<{
2254
2254
  readonly method: v.LiteralSchema<"notifications/tools/list_changed", undefined>;
2255
2255
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
2256
2256
  /**
@@ -2267,9 +2267,9 @@ export const LoggingLevelSchema: v.PicklistSchema<["debug", "info", "notice", "w
2267
2267
  /**
2268
2268
  * A request from the client to the server, to enable or adjust logging.
2269
2269
  */
2270
- export const SetLevelRequestSchema: v.LooseObjectSchema<{
2270
+ export const SetLevelRequestSchema: v.ObjectSchema<{
2271
2271
  readonly method: v.LiteralSchema<"logging/setLevel", undefined>;
2272
- readonly params: v.LooseObjectSchema<{
2272
+ readonly params: v.ObjectSchema<{
2273
2273
  /**
2274
2274
  * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message.
2275
2275
  */
@@ -2285,9 +2285,9 @@ export const SetLevelRequestSchema: v.LooseObjectSchema<{
2285
2285
  /**
2286
2286
  * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
2287
2287
  */
2288
- export const LoggingMessageNotificationSchema: v.LooseObjectSchema<{
2288
+ export const LoggingMessageNotificationSchema: v.ObjectSchema<{
2289
2289
  readonly method: v.LiteralSchema<"notifications/message", undefined>;
2290
- readonly params: v.LooseObjectSchema<{
2290
+ readonly params: v.ObjectSchema<{
2291
2291
  /**
2292
2292
  * The severity of this log message.
2293
2293
  */
@@ -2310,7 +2310,7 @@ export const LoggingMessageNotificationSchema: v.LooseObjectSchema<{
2310
2310
  /**
2311
2311
  * Hints to use for model selection.
2312
2312
  */
2313
- export const ModelHintSchema: v.LooseObjectSchema<{
2313
+ export const ModelHintSchema: v.ObjectSchema<{
2314
2314
  /**
2315
2315
  * A hint for a model name.
2316
2316
  */
@@ -2319,11 +2319,11 @@ export const ModelHintSchema: v.LooseObjectSchema<{
2319
2319
  /**
2320
2320
  * The server's preferences for model selection, requested of the client during sampling.
2321
2321
  */
2322
- export const ModelPreferencesSchema: v.LooseObjectSchema<{
2322
+ export const ModelPreferencesSchema: v.ObjectSchema<{
2323
2323
  /**
2324
2324
  * Optional hints to use for model selection.
2325
2325
  */
2326
- readonly hints: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
2326
+ readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2327
2327
  /**
2328
2328
  * A hint for a model name.
2329
2329
  */
@@ -2345,9 +2345,9 @@ export const ModelPreferencesSchema: v.LooseObjectSchema<{
2345
2345
  /**
2346
2346
  * Describes a message issued to or received from an LLM API.
2347
2347
  */
2348
- export const SamplingMessageSchema: v.LooseObjectSchema<{
2348
+ export const SamplingMessageSchema: v.ObjectSchema<{
2349
2349
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
2350
- readonly content: v.UnionSchema<[v.LooseObjectSchema<{
2350
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
2351
2351
  readonly type: v.LiteralSchema<"text", undefined>;
2352
2352
  /**
2353
2353
  * The text content of the message.
@@ -2357,8 +2357,8 @@ export const SamplingMessageSchema: v.LooseObjectSchema<{
2357
2357
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2358
2358
  * for notes on _meta usage.
2359
2359
  */
2360
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2361
- }, undefined>, v.LooseObjectSchema<{
2360
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2361
+ }, undefined>, v.ObjectSchema<{
2362
2362
  readonly type: v.LiteralSchema<"image", undefined>;
2363
2363
  /**
2364
2364
  * The base64-encoded image data.
@@ -2372,8 +2372,8 @@ export const SamplingMessageSchema: v.LooseObjectSchema<{
2372
2372
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2373
2373
  * for notes on _meta usage.
2374
2374
  */
2375
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2376
- }, undefined>, v.LooseObjectSchema<{
2375
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2376
+ }, undefined>, v.ObjectSchema<{
2377
2377
  readonly type: v.LiteralSchema<"audio", undefined>;
2378
2378
  /**
2379
2379
  * The base64-encoded audio data.
@@ -2387,13 +2387,13 @@ export const SamplingMessageSchema: v.LooseObjectSchema<{
2387
2387
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2388
2388
  * for notes on _meta usage.
2389
2389
  */
2390
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2390
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2391
2391
  }, undefined>], undefined>;
2392
2392
  }, undefined>;
2393
- export const CreateMessageRequestParamsSchema: v.LooseObjectSchema<{
2394
- readonly messages: v.ArraySchema<v.LooseObjectSchema<{
2393
+ export const CreateMessageRequestParamsSchema: v.ObjectSchema<{
2394
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
2395
2395
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
2396
- readonly content: v.UnionSchema<[v.LooseObjectSchema<{
2396
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
2397
2397
  readonly type: v.LiteralSchema<"text", undefined>;
2398
2398
  /**
2399
2399
  * The text content of the message.
@@ -2403,8 +2403,8 @@ export const CreateMessageRequestParamsSchema: v.LooseObjectSchema<{
2403
2403
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2404
2404
  * for notes on _meta usage.
2405
2405
  */
2406
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2407
- }, undefined>, v.LooseObjectSchema<{
2406
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2407
+ }, undefined>, v.ObjectSchema<{
2408
2408
  readonly type: v.LiteralSchema<"image", undefined>;
2409
2409
  /**
2410
2410
  * The base64-encoded image data.
@@ -2418,8 +2418,8 @@ export const CreateMessageRequestParamsSchema: v.LooseObjectSchema<{
2418
2418
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2419
2419
  * for notes on _meta usage.
2420
2420
  */
2421
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2422
- }, undefined>, v.LooseObjectSchema<{
2421
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2422
+ }, undefined>, v.ObjectSchema<{
2423
2423
  readonly type: v.LiteralSchema<"audio", undefined>;
2424
2424
  /**
2425
2425
  * The base64-encoded audio data.
@@ -2433,7 +2433,7 @@ export const CreateMessageRequestParamsSchema: v.LooseObjectSchema<{
2433
2433
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2434
2434
  * for notes on _meta usage.
2435
2435
  */
2436
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2436
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2437
2437
  }, undefined>], undefined>;
2438
2438
  }, undefined>, undefined>;
2439
2439
  /**
@@ -2453,15 +2453,15 @@ export const CreateMessageRequestParamsSchema: v.LooseObjectSchema<{
2453
2453
  /**
2454
2454
  * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
2455
2455
  */
2456
- readonly metadata: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2456
+ readonly metadata: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2457
2457
  /**
2458
2458
  * The server's preferences for which model to select.
2459
2459
  */
2460
- readonly modelPreferences: v.OptionalSchema<v.LooseObjectSchema<{
2460
+ readonly modelPreferences: v.OptionalSchema<v.ObjectSchema<{
2461
2461
  /**
2462
2462
  * Optional hints to use for model selection.
2463
2463
  */
2464
- readonly hints: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
2464
+ readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2465
2465
  /**
2466
2466
  * A hint for a model name.
2467
2467
  */
@@ -2490,12 +2490,12 @@ export const CreateMessageRequestParamsSchema: v.LooseObjectSchema<{
2490
2490
  /**
2491
2491
  * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
2492
2492
  */
2493
- export const CreateMessageRequestSchema: v.LooseObjectSchema<{
2493
+ export const CreateMessageRequestSchema: v.ObjectSchema<{
2494
2494
  readonly method: v.LiteralSchema<"sampling/createMessage", undefined>;
2495
- readonly params: v.LooseObjectSchema<{
2496
- readonly messages: v.ArraySchema<v.LooseObjectSchema<{
2495
+ readonly params: v.ObjectSchema<{
2496
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
2497
2497
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
2498
- readonly content: v.UnionSchema<[v.LooseObjectSchema<{
2498
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
2499
2499
  readonly type: v.LiteralSchema<"text", undefined>;
2500
2500
  /**
2501
2501
  * The text content of the message.
@@ -2505,8 +2505,8 @@ export const CreateMessageRequestSchema: v.LooseObjectSchema<{
2505
2505
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2506
2506
  * for notes on _meta usage.
2507
2507
  */
2508
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2509
- }, undefined>, v.LooseObjectSchema<{
2508
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2509
+ }, undefined>, v.ObjectSchema<{
2510
2510
  readonly type: v.LiteralSchema<"image", undefined>;
2511
2511
  /**
2512
2512
  * The base64-encoded image data.
@@ -2520,8 +2520,8 @@ export const CreateMessageRequestSchema: v.LooseObjectSchema<{
2520
2520
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2521
2521
  * for notes on _meta usage.
2522
2522
  */
2523
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2524
- }, undefined>, v.LooseObjectSchema<{
2523
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2524
+ }, undefined>, v.ObjectSchema<{
2525
2525
  readonly type: v.LiteralSchema<"audio", undefined>;
2526
2526
  /**
2527
2527
  * The base64-encoded audio data.
@@ -2535,7 +2535,7 @@ export const CreateMessageRequestSchema: v.LooseObjectSchema<{
2535
2535
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2536
2536
  * for notes on _meta usage.
2537
2537
  */
2538
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2538
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2539
2539
  }, undefined>], undefined>;
2540
2540
  }, undefined>, undefined>;
2541
2541
  /**
@@ -2555,15 +2555,15 @@ export const CreateMessageRequestSchema: v.LooseObjectSchema<{
2555
2555
  /**
2556
2556
  * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
2557
2557
  */
2558
- readonly metadata: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2558
+ readonly metadata: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2559
2559
  /**
2560
2560
  * The server's preferences for which model to select.
2561
2561
  */
2562
- readonly modelPreferences: v.OptionalSchema<v.LooseObjectSchema<{
2562
+ readonly modelPreferences: v.OptionalSchema<v.ObjectSchema<{
2563
2563
  /**
2564
2564
  * Optional hints to use for model selection.
2565
2565
  */
2566
- readonly hints: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
2566
+ readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2567
2567
  /**
2568
2568
  * A hint for a model name.
2569
2569
  */
@@ -2593,7 +2593,7 @@ export const CreateMessageRequestSchema: v.LooseObjectSchema<{
2593
2593
  /**
2594
2594
  * 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.
2595
2595
  */
2596
- export const CreateMessageResultSchema: v.LooseObjectSchema<{
2596
+ export const CreateMessageResultSchema: v.ObjectSchema<{
2597
2597
  /**
2598
2598
  * The name of the model that generated the message.
2599
2599
  */
@@ -2603,7 +2603,7 @@ export const CreateMessageResultSchema: v.LooseObjectSchema<{
2603
2603
  */
2604
2604
  readonly stopReason: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["endTurn", "stopSequence", "maxTokens"], undefined>, v.StringSchema<undefined>], undefined>, undefined>;
2605
2605
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
2606
- readonly content: v.VariantSchema<"type", [v.LooseObjectSchema<{
2606
+ readonly content: v.VariantSchema<"type", [v.ObjectSchema<{
2607
2607
  readonly type: v.LiteralSchema<"text", undefined>;
2608
2608
  /**
2609
2609
  * The text content of the message.
@@ -2613,8 +2613,8 @@ export const CreateMessageResultSchema: v.LooseObjectSchema<{
2613
2613
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2614
2614
  * for notes on _meta usage.
2615
2615
  */
2616
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2617
- }, undefined>, v.LooseObjectSchema<{
2616
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2617
+ }, undefined>, v.ObjectSchema<{
2618
2618
  readonly type: v.LiteralSchema<"image", undefined>;
2619
2619
  /**
2620
2620
  * The base64-encoded image data.
@@ -2628,8 +2628,8 @@ export const CreateMessageResultSchema: v.LooseObjectSchema<{
2628
2628
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2629
2629
  * for notes on _meta usage.
2630
2630
  */
2631
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2632
- }, undefined>, v.LooseObjectSchema<{
2631
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2632
+ }, undefined>, v.ObjectSchema<{
2633
2633
  readonly type: v.LiteralSchema<"audio", undefined>;
2634
2634
  /**
2635
2635
  * The base64-encoded audio data.
@@ -2643,7 +2643,7 @@ export const CreateMessageResultSchema: v.LooseObjectSchema<{
2643
2643
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2644
2644
  * for notes on _meta usage.
2645
2645
  */
2646
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2646
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2647
2647
  }, undefined>], undefined>;
2648
2648
  /**
2649
2649
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
@@ -2654,7 +2654,7 @@ export const CreateMessageResultSchema: v.LooseObjectSchema<{
2654
2654
  /**
2655
2655
  * Primitive schema definition for boolean fields.
2656
2656
  */
2657
- export const BooleanSchemaSchema: v.LooseObjectSchema<{
2657
+ export const BooleanSchemaSchema: v.ObjectSchema<{
2658
2658
  readonly type: v.LiteralSchema<"boolean", undefined>;
2659
2659
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2660
2660
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -2663,7 +2663,7 @@ export const BooleanSchemaSchema: v.LooseObjectSchema<{
2663
2663
  /**
2664
2664
  * Primitive schema definition for string fields.
2665
2665
  */
2666
- export const StringSchemaSchema: v.LooseObjectSchema<{
2666
+ export const StringSchemaSchema: v.ObjectSchema<{
2667
2667
  readonly type: v.LiteralSchema<"string", undefined>;
2668
2668
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2669
2669
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -2674,7 +2674,7 @@ export const StringSchemaSchema: v.LooseObjectSchema<{
2674
2674
  /**
2675
2675
  * Primitive schema definition for number fields.
2676
2676
  */
2677
- export const NumberSchemaSchema: v.LooseObjectSchema<{
2677
+ export const NumberSchemaSchema: v.ObjectSchema<{
2678
2678
  readonly type: v.PicklistSchema<["number", "integer"], undefined>;
2679
2679
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2680
2680
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -2684,7 +2684,7 @@ export const NumberSchemaSchema: v.LooseObjectSchema<{
2684
2684
  /**
2685
2685
  * Primitive schema definition for enum fields.
2686
2686
  */
2687
- export const EnumSchemaSchema: v.LooseObjectSchema<{
2687
+ export const EnumSchemaSchema: v.ObjectSchema<{
2688
2688
  readonly type: v.LiteralSchema<"string", undefined>;
2689
2689
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2690
2690
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -2694,25 +2694,25 @@ export const EnumSchemaSchema: v.LooseObjectSchema<{
2694
2694
  /**
2695
2695
  * Union of all primitive schema definitions.
2696
2696
  */
2697
- export const PrimitiveSchemaDefinitionSchema: v.UnionSchema<[v.LooseObjectSchema<{
2697
+ export const PrimitiveSchemaDefinitionSchema: v.UnionSchema<[v.ObjectSchema<{
2698
2698
  readonly type: v.LiteralSchema<"boolean", undefined>;
2699
2699
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2700
2700
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2701
2701
  readonly default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2702
- }, undefined>, v.LooseObjectSchema<{
2702
+ }, undefined>, v.ObjectSchema<{
2703
2703
  readonly type: v.LiteralSchema<"string", undefined>;
2704
2704
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2705
2705
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2706
2706
  readonly minLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2707
2707
  readonly maxLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2708
2708
  readonly format: v.OptionalSchema<v.PicklistSchema<["email", "uri", "date", "date-time"], undefined>, undefined>;
2709
- }, undefined>, v.LooseObjectSchema<{
2709
+ }, undefined>, v.ObjectSchema<{
2710
2710
  readonly type: v.PicklistSchema<["number", "integer"], undefined>;
2711
2711
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2712
2712
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2713
2713
  readonly minimum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2714
2714
  readonly maximum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2715
- }, undefined>, v.LooseObjectSchema<{
2715
+ }, undefined>, v.ObjectSchema<{
2716
2716
  readonly type: v.LiteralSchema<"string", undefined>;
2717
2717
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2718
2718
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -2723,9 +2723,9 @@ export const PrimitiveSchemaDefinitionSchema: v.UnionSchema<[v.LooseObjectSchema
2723
2723
  * A request from the server to elicit user input via the client.
2724
2724
  * The client should present the message and form fields to the user.
2725
2725
  */
2726
- export const ElicitRequestSchema: v.LooseObjectSchema<{
2726
+ export const ElicitRequestSchema: v.ObjectSchema<{
2727
2727
  readonly method: v.LiteralSchema<"elicitation/create", undefined>;
2728
- readonly params: v.LooseObjectSchema<{
2728
+ readonly params: v.ObjectSchema<{
2729
2729
  /**
2730
2730
  * The message to present to the user.
2731
2731
  */
@@ -2733,27 +2733,27 @@ export const ElicitRequestSchema: v.LooseObjectSchema<{
2733
2733
  /**
2734
2734
  * The schema for the requested user input.
2735
2735
  */
2736
- readonly requestedSchema: v.LooseObjectSchema<{
2736
+ readonly requestedSchema: v.ObjectSchema<{
2737
2737
  readonly type: v.LiteralSchema<"object", undefined>;
2738
- readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.LooseObjectSchema<{
2738
+ readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.ObjectSchema<{
2739
2739
  readonly type: v.LiteralSchema<"boolean", undefined>;
2740
2740
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2741
2741
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2742
2742
  readonly default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2743
- }, undefined>, v.LooseObjectSchema<{
2743
+ }, undefined>, v.ObjectSchema<{
2744
2744
  readonly type: v.LiteralSchema<"string", undefined>;
2745
2745
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2746
2746
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2747
2747
  readonly minLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2748
2748
  readonly maxLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2749
2749
  readonly format: v.OptionalSchema<v.PicklistSchema<["email", "uri", "date", "date-time"], undefined>, undefined>;
2750
- }, undefined>, v.LooseObjectSchema<{
2750
+ }, undefined>, v.ObjectSchema<{
2751
2751
  readonly type: v.PicklistSchema<["number", "integer"], undefined>;
2752
2752
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2753
2753
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2754
2754
  readonly minimum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2755
2755
  readonly maximum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2756
- }, undefined>, v.LooseObjectSchema<{
2756
+ }, undefined>, v.ObjectSchema<{
2757
2757
  readonly type: v.LiteralSchema<"string", undefined>;
2758
2758
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2759
2759
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -2773,7 +2773,7 @@ export const ElicitRequestSchema: v.LooseObjectSchema<{
2773
2773
  /**
2774
2774
  * The client's response to an elicitation/create request from the server.
2775
2775
  */
2776
- export const ElicitResultSchema: v.LooseObjectSchema<{
2776
+ export const ElicitResultSchema: v.ObjectSchema<{
2777
2777
  /**
2778
2778
  * The user's response action.
2779
2779
  */
@@ -2791,7 +2791,7 @@ export const ElicitResultSchema: v.LooseObjectSchema<{
2791
2791
  /**
2792
2792
  * A reference to a resource or resource template definition.
2793
2793
  */
2794
- export const ResourceTemplateReferenceSchema: v.LooseObjectSchema<{
2794
+ export const ResourceTemplateReferenceSchema: v.ObjectSchema<{
2795
2795
  readonly type: v.LiteralSchema<"ref/resource", undefined>;
2796
2796
  /**
2797
2797
  * The URI or URI template of the resource.
@@ -2801,7 +2801,7 @@ export const ResourceTemplateReferenceSchema: v.LooseObjectSchema<{
2801
2801
  /**
2802
2802
  * @deprecated Use ResourceTemplateReferenceSchema instead
2803
2803
  */
2804
- export const ResourceReferenceSchema: v.LooseObjectSchema<{
2804
+ export const ResourceReferenceSchema: v.ObjectSchema<{
2805
2805
  readonly type: v.LiteralSchema<"ref/resource", undefined>;
2806
2806
  /**
2807
2807
  * The URI or URI template of the resource.
@@ -2811,7 +2811,7 @@ export const ResourceReferenceSchema: v.LooseObjectSchema<{
2811
2811
  /**
2812
2812
  * Identifies a prompt.
2813
2813
  */
2814
- export const PromptReferenceSchema: v.LooseObjectSchema<{
2814
+ export const PromptReferenceSchema: v.ObjectSchema<{
2815
2815
  readonly type: v.LiteralSchema<"ref/prompt", undefined>;
2816
2816
  /**
2817
2817
  * The name of the prompt or prompt template
@@ -2821,16 +2821,16 @@ export const PromptReferenceSchema: v.LooseObjectSchema<{
2821
2821
  /**
2822
2822
  * A request from the client to the server, to ask for completion options.
2823
2823
  */
2824
- export const CompleteRequestSchema: v.LooseObjectSchema<{
2824
+ export const CompleteRequestSchema: v.ObjectSchema<{
2825
2825
  readonly method: v.LiteralSchema<"completion/complete", undefined>;
2826
- readonly params: v.LooseObjectSchema<{
2827
- readonly ref: v.UnionSchema<[v.LooseObjectSchema<{
2826
+ readonly params: v.ObjectSchema<{
2827
+ readonly ref: v.UnionSchema<[v.ObjectSchema<{
2828
2828
  readonly type: v.LiteralSchema<"ref/prompt", undefined>;
2829
2829
  /**
2830
2830
  * The name of the prompt or prompt template
2831
2831
  */
2832
2832
  readonly name: v.StringSchema<undefined>;
2833
- }, undefined>, v.LooseObjectSchema<{
2833
+ }, undefined>, v.ObjectSchema<{
2834
2834
  readonly type: v.LiteralSchema<"ref/resource", undefined>;
2835
2835
  /**
2836
2836
  * The URI or URI template of the resource.
@@ -2840,7 +2840,7 @@ export const CompleteRequestSchema: v.LooseObjectSchema<{
2840
2840
  /**
2841
2841
  * The argument's information
2842
2842
  */
2843
- readonly argument: v.LooseObjectSchema<{
2843
+ readonly argument: v.ObjectSchema<{
2844
2844
  /**
2845
2845
  * The name of the argument
2846
2846
  */
@@ -2867,8 +2867,8 @@ export const CompleteRequestSchema: v.LooseObjectSchema<{
2867
2867
  /**
2868
2868
  * The server's response to a completion/complete request
2869
2869
  */
2870
- export const CompleteResultSchema: v.LooseObjectSchema<{
2871
- readonly completion: v.LooseObjectSchema<{
2870
+ export const CompleteResultSchema: v.ObjectSchema<{
2871
+ readonly completion: v.ObjectSchema<{
2872
2872
  /**
2873
2873
  * An array of completion values. Must not exceed 100 items.
2874
2874
  */
@@ -2891,7 +2891,7 @@ export const CompleteResultSchema: v.LooseObjectSchema<{
2891
2891
  /**
2892
2892
  * Represents a root directory or file that the server can operate on.
2893
2893
  */
2894
- export const RootSchema: v.LooseObjectSchema<{
2894
+ export const RootSchema: v.ObjectSchema<{
2895
2895
  /**
2896
2896
  * The URI identifying the root. This *must* start with file:// for now.
2897
2897
  */
@@ -2904,12 +2904,12 @@ export const RootSchema: v.LooseObjectSchema<{
2904
2904
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2905
2905
  * for notes on _meta usage.
2906
2906
  */
2907
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2907
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2908
2908
  }, undefined>;
2909
2909
  /**
2910
2910
  * Sent from the server to request a list of root URIs from the client.
2911
2911
  */
2912
- export const ListRootsRequestSchema: v.LooseObjectSchema<{
2912
+ export const ListRootsRequestSchema: v.ObjectSchema<{
2913
2913
  readonly method: v.LiteralSchema<"roots/list", undefined>;
2914
2914
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
2915
2915
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
@@ -2923,8 +2923,8 @@ export const ListRootsRequestSchema: v.LooseObjectSchema<{
2923
2923
  /**
2924
2924
  * The client's response to a roots/list request from the server.
2925
2925
  */
2926
- export const ListRootsResultSchema: v.LooseObjectSchema<{
2927
- readonly roots: v.ArraySchema<v.LooseObjectSchema<{
2926
+ export const ListRootsResultSchema: v.ObjectSchema<{
2927
+ readonly roots: v.ArraySchema<v.ObjectSchema<{
2928
2928
  /**
2929
2929
  * The URI identifying the root. This *must* start with file:// for now.
2930
2930
  */
@@ -2937,7 +2937,7 @@ export const ListRootsResultSchema: v.LooseObjectSchema<{
2937
2937
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
2938
2938
  * for notes on _meta usage.
2939
2939
  */
2940
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2940
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2941
2941
  }, undefined>, undefined>;
2942
2942
  /**
2943
2943
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
@@ -2948,7 +2948,7 @@ export const ListRootsResultSchema: v.LooseObjectSchema<{
2948
2948
  /**
2949
2949
  * A notification from the client to the server, informing it that the list of roots has changed.
2950
2950
  */
2951
- export const RootsListChangedNotificationSchema: v.LooseObjectSchema<{
2951
+ export const RootsListChangedNotificationSchema: v.ObjectSchema<{
2952
2952
  readonly method: v.LiteralSchema<"notifications/roots/list_changed", undefined>;
2953
2953
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
2954
2954
  /**
@@ -2958,7 +2958,7 @@ export const RootsListChangedNotificationSchema: v.LooseObjectSchema<{
2958
2958
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2959
2959
  }, undefined>, undefined>;
2960
2960
  }, undefined>;
2961
- export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
2961
+ export const ClientRequestSchema: v.UnionSchema<[v.ObjectSchema<{
2962
2962
  readonly method: v.LiteralSchema<"ping", undefined>;
2963
2963
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
2964
2964
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
@@ -2968,37 +2968,37 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
2968
2968
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
2969
2969
  }, undefined>, undefined>;
2970
2970
  }, undefined>, undefined>;
2971
- }, undefined>, v.LooseObjectSchema<{
2971
+ }, undefined>, v.ObjectSchema<{
2972
2972
  readonly method: v.LiteralSchema<"initialize", undefined>;
2973
- readonly params: v.LooseObjectSchema<{
2973
+ readonly params: v.ObjectSchema<{
2974
2974
  /**
2975
2975
  * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
2976
2976
  */
2977
2977
  readonly protocolVersion: v.StringSchema<undefined>;
2978
- readonly capabilities: v.LooseObjectSchema<{
2978
+ readonly capabilities: v.ObjectSchema<{
2979
2979
  /**
2980
2980
  * Experimental, non-standard capabilities that the client supports.
2981
2981
  */
2982
- readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2982
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2983
2983
  /**
2984
2984
  * Present if the client supports sampling from an LLM.
2985
2985
  */
2986
- readonly sampling: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2986
+ readonly sampling: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2987
2987
  /**
2988
2988
  * Present if the client supports eliciting user input.
2989
2989
  */
2990
- readonly elicitation: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
2990
+ readonly elicitation: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
2991
2991
  /**
2992
2992
  * Present if the client supports listing roots.
2993
2993
  */
2994
- readonly roots: v.OptionalSchema<v.LooseObjectSchema<{
2994
+ readonly roots: v.OptionalSchema<v.ObjectSchema<{
2995
2995
  /**
2996
2996
  * Whether the client supports issuing notifications for changes to the roots list.
2997
2997
  */
2998
2998
  readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2999
2999
  }, undefined>, undefined>;
3000
3000
  }, undefined>;
3001
- readonly clientInfo: v.LooseObjectSchema<{
3001
+ readonly clientInfo: v.ObjectSchema<{
3002
3002
  readonly version: v.StringSchema<undefined>;
3003
3003
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
3004
3004
  readonly name: v.StringSchema<undefined>;
@@ -3019,16 +3019,16 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3019
3019
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3020
3020
  }, undefined>, undefined>;
3021
3021
  }, undefined>;
3022
- }, undefined>, v.LooseObjectSchema<{
3022
+ }, undefined>, v.ObjectSchema<{
3023
3023
  readonly method: v.LiteralSchema<"completion/complete", undefined>;
3024
- readonly params: v.LooseObjectSchema<{
3025
- readonly ref: v.UnionSchema<[v.LooseObjectSchema<{
3024
+ readonly params: v.ObjectSchema<{
3025
+ readonly ref: v.UnionSchema<[v.ObjectSchema<{
3026
3026
  readonly type: v.LiteralSchema<"ref/prompt", undefined>;
3027
3027
  /**
3028
3028
  * The name of the prompt or prompt template
3029
3029
  */
3030
3030
  readonly name: v.StringSchema<undefined>;
3031
- }, undefined>, v.LooseObjectSchema<{
3031
+ }, undefined>, v.ObjectSchema<{
3032
3032
  readonly type: v.LiteralSchema<"ref/resource", undefined>;
3033
3033
  /**
3034
3034
  * The URI or URI template of the resource.
@@ -3038,7 +3038,7 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3038
3038
  /**
3039
3039
  * The argument's information
3040
3040
  */
3041
- readonly argument: v.LooseObjectSchema<{
3041
+ readonly argument: v.ObjectSchema<{
3042
3042
  /**
3043
3043
  * The name of the argument
3044
3044
  */
@@ -3061,9 +3061,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3061
3061
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3062
3062
  }, undefined>, undefined>;
3063
3063
  }, undefined>;
3064
- }, undefined>, v.LooseObjectSchema<{
3064
+ }, undefined>, v.ObjectSchema<{
3065
3065
  readonly method: v.LiteralSchema<"logging/setLevel", undefined>;
3066
- readonly params: v.LooseObjectSchema<{
3066
+ readonly params: v.ObjectSchema<{
3067
3067
  /**
3068
3068
  * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message.
3069
3069
  */
@@ -3075,9 +3075,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3075
3075
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3076
3076
  }, undefined>, undefined>;
3077
3077
  }, undefined>;
3078
- }, undefined>, v.LooseObjectSchema<{
3078
+ }, undefined>, v.ObjectSchema<{
3079
3079
  readonly method: v.LiteralSchema<"prompts/get", undefined>;
3080
- readonly params: v.LooseObjectSchema<{
3080
+ readonly params: v.ObjectSchema<{
3081
3081
  /**
3082
3082
  * The name of the prompt or prompt template.
3083
3083
  */
@@ -3093,9 +3093,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3093
3093
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3094
3094
  }, undefined>, undefined>;
3095
3095
  }, undefined>;
3096
- }, undefined>, v.LooseObjectSchema<{
3096
+ }, undefined>, v.ObjectSchema<{
3097
3097
  readonly method: v.LiteralSchema<"prompts/list", undefined>;
3098
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3098
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
3099
3099
  /**
3100
3100
  * An opaque token representing the current pagination position.
3101
3101
  * If provided, the server should return results starting after this cursor.
@@ -3108,9 +3108,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3108
3108
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3109
3109
  }, undefined>, undefined>;
3110
3110
  }, undefined>, undefined>;
3111
- }, undefined>, v.LooseObjectSchema<{
3111
+ }, undefined>, v.ObjectSchema<{
3112
3112
  readonly method: v.LiteralSchema<"resources/list", undefined>;
3113
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3113
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
3114
3114
  /**
3115
3115
  * An opaque token representing the current pagination position.
3116
3116
  * If provided, the server should return results starting after this cursor.
@@ -3123,9 +3123,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3123
3123
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3124
3124
  }, undefined>, undefined>;
3125
3125
  }, undefined>, undefined>;
3126
- }, undefined>, v.LooseObjectSchema<{
3126
+ }, undefined>, v.ObjectSchema<{
3127
3127
  readonly method: v.LiteralSchema<"resources/templates/list", undefined>;
3128
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3128
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
3129
3129
  /**
3130
3130
  * An opaque token representing the current pagination position.
3131
3131
  * If provided, the server should return results starting after this cursor.
@@ -3138,9 +3138,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3138
3138
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3139
3139
  }, undefined>, undefined>;
3140
3140
  }, undefined>, undefined>;
3141
- }, undefined>, v.LooseObjectSchema<{
3141
+ }, undefined>, v.ObjectSchema<{
3142
3142
  readonly method: v.LiteralSchema<"resources/read", undefined>;
3143
- readonly params: v.LooseObjectSchema<{
3143
+ readonly params: v.ObjectSchema<{
3144
3144
  /**
3145
3145
  * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
3146
3146
  */
@@ -3152,9 +3152,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3152
3152
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3153
3153
  }, undefined>, undefined>;
3154
3154
  }, undefined>;
3155
- }, undefined>, v.LooseObjectSchema<{
3155
+ }, undefined>, v.ObjectSchema<{
3156
3156
  readonly method: v.LiteralSchema<"resources/subscribe", undefined>;
3157
- readonly params: v.LooseObjectSchema<{
3157
+ readonly params: v.ObjectSchema<{
3158
3158
  /**
3159
3159
  * The URI of the resource to subscribe to. The URI can use any protocol; it is up to the server how to interpret it.
3160
3160
  */
@@ -3166,9 +3166,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3166
3166
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3167
3167
  }, undefined>, undefined>;
3168
3168
  }, undefined>;
3169
- }, undefined>, v.LooseObjectSchema<{
3169
+ }, undefined>, v.ObjectSchema<{
3170
3170
  readonly method: v.LiteralSchema<"resources/unsubscribe", undefined>;
3171
- readonly params: v.LooseObjectSchema<{
3171
+ readonly params: v.ObjectSchema<{
3172
3172
  /**
3173
3173
  * The URI of the resource to unsubscribe from.
3174
3174
  */
@@ -3180,9 +3180,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3180
3180
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3181
3181
  }, undefined>, undefined>;
3182
3182
  }, undefined>;
3183
- }, undefined>, v.LooseObjectSchema<{
3183
+ }, undefined>, v.ObjectSchema<{
3184
3184
  readonly method: v.LiteralSchema<"tools/call", undefined>;
3185
- readonly params: v.LooseObjectSchema<{
3185
+ readonly params: v.ObjectSchema<{
3186
3186
  readonly name: v.StringSchema<undefined>;
3187
3187
  readonly arguments: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
3188
3188
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
@@ -3192,9 +3192,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3192
3192
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3193
3193
  }, undefined>, undefined>;
3194
3194
  }, undefined>;
3195
- }, undefined>, v.LooseObjectSchema<{
3195
+ }, undefined>, v.ObjectSchema<{
3196
3196
  readonly method: v.LiteralSchema<"tools/list", undefined>;
3197
- readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3197
+ readonly params: v.OptionalSchema<v.ObjectSchema<{
3198
3198
  /**
3199
3199
  * An opaque token representing the current pagination position.
3200
3200
  * If provided, the server should return results starting after this cursor.
@@ -3208,9 +3208,9 @@ export const ClientRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3208
3208
  }, undefined>, undefined>;
3209
3209
  }, undefined>, undefined>;
3210
3210
  }, undefined>], undefined>;
3211
- export const ClientNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3211
+ export const ClientNotificationSchema: v.UnionSchema<[v.ObjectSchema<{
3212
3212
  readonly method: v.LiteralSchema<"notifications/cancelled", undefined>;
3213
- readonly params: v.LooseObjectSchema<{
3213
+ readonly params: v.ObjectSchema<{
3214
3214
  /**
3215
3215
  * The ID of the request to cancel.
3216
3216
  *
@@ -3227,7 +3227,7 @@ export const ClientNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3227
3227
  */
3228
3228
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3229
3229
  }, undefined>;
3230
- }, undefined>, v.LooseObjectSchema<{
3230
+ }, undefined>, v.ObjectSchema<{
3231
3231
  readonly method: v.LiteralSchema<"notifications/progress", undefined>;
3232
3232
  readonly params: v.ObjectSchema<{
3233
3233
  /**
@@ -3252,7 +3252,7 @@ export const ClientNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3252
3252
  */
3253
3253
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3254
3254
  }, undefined>;
3255
- }, undefined>, v.LooseObjectSchema<{
3255
+ }, undefined>, v.ObjectSchema<{
3256
3256
  readonly method: v.LiteralSchema<"notifications/initialized", undefined>;
3257
3257
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3258
3258
  /**
@@ -3261,7 +3261,7 @@ export const ClientNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3261
3261
  */
3262
3262
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3263
3263
  }, undefined>, undefined>;
3264
- }, undefined>, v.LooseObjectSchema<{
3264
+ }, undefined>, v.ObjectSchema<{
3265
3265
  readonly method: v.LiteralSchema<"notifications/roots/list_changed", undefined>;
3266
3266
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3267
3267
  /**
@@ -3277,7 +3277,7 @@ export const ClientResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3277
3277
  * for notes on _meta usage.
3278
3278
  */
3279
3279
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3280
- }, undefined>, v.LooseObjectSchema<{
3280
+ }, undefined>, v.ObjectSchema<{
3281
3281
  /**
3282
3282
  * The name of the model that generated the message.
3283
3283
  */
@@ -3287,7 +3287,7 @@ export const ClientResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3287
3287
  */
3288
3288
  readonly stopReason: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["endTurn", "stopSequence", "maxTokens"], undefined>, v.StringSchema<undefined>], undefined>, undefined>;
3289
3289
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
3290
- readonly content: v.VariantSchema<"type", [v.LooseObjectSchema<{
3290
+ readonly content: v.VariantSchema<"type", [v.ObjectSchema<{
3291
3291
  readonly type: v.LiteralSchema<"text", undefined>;
3292
3292
  /**
3293
3293
  * The text content of the message.
@@ -3297,8 +3297,8 @@ export const ClientResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3297
3297
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3298
3298
  * for notes on _meta usage.
3299
3299
  */
3300
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3301
- }, undefined>, v.LooseObjectSchema<{
3300
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3301
+ }, undefined>, v.ObjectSchema<{
3302
3302
  readonly type: v.LiteralSchema<"image", undefined>;
3303
3303
  /**
3304
3304
  * The base64-encoded image data.
@@ -3312,8 +3312,8 @@ export const ClientResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3312
3312
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3313
3313
  * for notes on _meta usage.
3314
3314
  */
3315
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3316
- }, undefined>, v.LooseObjectSchema<{
3315
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3316
+ }, undefined>, v.ObjectSchema<{
3317
3317
  readonly type: v.LiteralSchema<"audio", undefined>;
3318
3318
  /**
3319
3319
  * The base64-encoded audio data.
@@ -3327,14 +3327,14 @@ export const ClientResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3327
3327
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3328
3328
  * for notes on _meta usage.
3329
3329
  */
3330
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3330
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3331
3331
  }, undefined>], undefined>;
3332
3332
  /**
3333
3333
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3334
3334
  * for notes on _meta usage.
3335
3335
  */
3336
3336
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3337
- }, undefined>, v.LooseObjectSchema<{
3337
+ }, undefined>, v.ObjectSchema<{
3338
3338
  /**
3339
3339
  * The user's response action.
3340
3340
  */
@@ -3348,8 +3348,8 @@ export const ClientResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3348
3348
  * for notes on _meta usage.
3349
3349
  */
3350
3350
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3351
- }, undefined>, v.LooseObjectSchema<{
3352
- readonly roots: v.ArraySchema<v.LooseObjectSchema<{
3351
+ }, undefined>, v.ObjectSchema<{
3352
+ readonly roots: v.ArraySchema<v.ObjectSchema<{
3353
3353
  /**
3354
3354
  * The URI identifying the root. This *must* start with file:// for now.
3355
3355
  */
@@ -3362,7 +3362,7 @@ export const ClientResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3362
3362
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3363
3363
  * for notes on _meta usage.
3364
3364
  */
3365
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3365
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3366
3366
  }, undefined>, undefined>;
3367
3367
  /**
3368
3368
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
@@ -3370,7 +3370,7 @@ export const ClientResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3370
3370
  */
3371
3371
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3372
3372
  }, undefined>], undefined>;
3373
- export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3373
+ export const ServerRequestSchema: v.UnionSchema<[v.ObjectSchema<{
3374
3374
  readonly method: v.LiteralSchema<"ping", undefined>;
3375
3375
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3376
3376
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
@@ -3380,12 +3380,12 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3380
3380
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3381
3381
  }, undefined>, undefined>;
3382
3382
  }, undefined>, undefined>;
3383
- }, undefined>, v.LooseObjectSchema<{
3383
+ }, undefined>, v.ObjectSchema<{
3384
3384
  readonly method: v.LiteralSchema<"sampling/createMessage", undefined>;
3385
- readonly params: v.LooseObjectSchema<{
3386
- readonly messages: v.ArraySchema<v.LooseObjectSchema<{
3385
+ readonly params: v.ObjectSchema<{
3386
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
3387
3387
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
3388
- readonly content: v.UnionSchema<[v.LooseObjectSchema<{
3388
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
3389
3389
  readonly type: v.LiteralSchema<"text", undefined>;
3390
3390
  /**
3391
3391
  * The text content of the message.
@@ -3395,8 +3395,8 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3395
3395
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3396
3396
  * for notes on _meta usage.
3397
3397
  */
3398
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3399
- }, undefined>, v.LooseObjectSchema<{
3398
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3399
+ }, undefined>, v.ObjectSchema<{
3400
3400
  readonly type: v.LiteralSchema<"image", undefined>;
3401
3401
  /**
3402
3402
  * The base64-encoded image data.
@@ -3410,8 +3410,8 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3410
3410
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3411
3411
  * for notes on _meta usage.
3412
3412
  */
3413
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3414
- }, undefined>, v.LooseObjectSchema<{
3413
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3414
+ }, undefined>, v.ObjectSchema<{
3415
3415
  readonly type: v.LiteralSchema<"audio", undefined>;
3416
3416
  /**
3417
3417
  * The base64-encoded audio data.
@@ -3425,7 +3425,7 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3425
3425
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3426
3426
  * for notes on _meta usage.
3427
3427
  */
3428
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3428
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3429
3429
  }, undefined>], undefined>;
3430
3430
  }, undefined>, undefined>;
3431
3431
  /**
@@ -3445,15 +3445,15 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3445
3445
  /**
3446
3446
  * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
3447
3447
  */
3448
- readonly metadata: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3448
+ readonly metadata: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3449
3449
  /**
3450
3450
  * The server's preferences for which model to select.
3451
3451
  */
3452
- readonly modelPreferences: v.OptionalSchema<v.LooseObjectSchema<{
3452
+ readonly modelPreferences: v.OptionalSchema<v.ObjectSchema<{
3453
3453
  /**
3454
3454
  * Optional hints to use for model selection.
3455
3455
  */
3456
- readonly hints: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
3456
+ readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
3457
3457
  /**
3458
3458
  * A hint for a model name.
3459
3459
  */
@@ -3479,9 +3479,9 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3479
3479
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3480
3480
  }, undefined>, undefined>;
3481
3481
  }, undefined>;
3482
- }, undefined>, v.LooseObjectSchema<{
3482
+ }, undefined>, v.ObjectSchema<{
3483
3483
  readonly method: v.LiteralSchema<"elicitation/create", undefined>;
3484
- readonly params: v.LooseObjectSchema<{
3484
+ readonly params: v.ObjectSchema<{
3485
3485
  /**
3486
3486
  * The message to present to the user.
3487
3487
  */
@@ -3489,27 +3489,27 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3489
3489
  /**
3490
3490
  * The schema for the requested user input.
3491
3491
  */
3492
- readonly requestedSchema: v.LooseObjectSchema<{
3492
+ readonly requestedSchema: v.ObjectSchema<{
3493
3493
  readonly type: v.LiteralSchema<"object", undefined>;
3494
- readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.LooseObjectSchema<{
3494
+ readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.ObjectSchema<{
3495
3495
  readonly type: v.LiteralSchema<"boolean", undefined>;
3496
3496
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3497
3497
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3498
3498
  readonly default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3499
- }, undefined>, v.LooseObjectSchema<{
3499
+ }, undefined>, v.ObjectSchema<{
3500
3500
  readonly type: v.LiteralSchema<"string", undefined>;
3501
3501
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3502
3502
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3503
3503
  readonly minLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3504
3504
  readonly maxLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3505
3505
  readonly format: v.OptionalSchema<v.PicklistSchema<["email", "uri", "date", "date-time"], undefined>, undefined>;
3506
- }, undefined>, v.LooseObjectSchema<{
3506
+ }, undefined>, v.ObjectSchema<{
3507
3507
  readonly type: v.PicklistSchema<["number", "integer"], undefined>;
3508
3508
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3509
3509
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3510
3510
  readonly minimum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3511
3511
  readonly maximum: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3512
- }, undefined>, v.LooseObjectSchema<{
3512
+ }, undefined>, v.ObjectSchema<{
3513
3513
  readonly type: v.LiteralSchema<"string", undefined>;
3514
3514
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3515
3515
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -3525,7 +3525,7 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3525
3525
  readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
3526
3526
  }, undefined>, undefined>;
3527
3527
  }, undefined>;
3528
- }, undefined>, v.LooseObjectSchema<{
3528
+ }, undefined>, v.ObjectSchema<{
3529
3529
  readonly method: v.LiteralSchema<"roots/list", undefined>;
3530
3530
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3531
3531
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
@@ -3536,9 +3536,9 @@ export const ServerRequestSchema: v.UnionSchema<[v.LooseObjectSchema<{
3536
3536
  }, undefined>, undefined>;
3537
3537
  }, undefined>, undefined>;
3538
3538
  }, undefined>], undefined>;
3539
- export const ServerNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3539
+ export const ServerNotificationSchema: v.UnionSchema<[v.ObjectSchema<{
3540
3540
  readonly method: v.LiteralSchema<"notifications/cancelled", undefined>;
3541
- readonly params: v.LooseObjectSchema<{
3541
+ readonly params: v.ObjectSchema<{
3542
3542
  /**
3543
3543
  * The ID of the request to cancel.
3544
3544
  *
@@ -3555,7 +3555,7 @@ export const ServerNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3555
3555
  */
3556
3556
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3557
3557
  }, undefined>;
3558
- }, undefined>, v.LooseObjectSchema<{
3558
+ }, undefined>, v.ObjectSchema<{
3559
3559
  readonly method: v.LiteralSchema<"notifications/progress", undefined>;
3560
3560
  readonly params: v.ObjectSchema<{
3561
3561
  /**
@@ -3580,9 +3580,9 @@ export const ServerNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3580
3580
  */
3581
3581
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3582
3582
  }, undefined>;
3583
- }, undefined>, v.LooseObjectSchema<{
3583
+ }, undefined>, v.ObjectSchema<{
3584
3584
  readonly method: v.LiteralSchema<"notifications/message", undefined>;
3585
- readonly params: v.LooseObjectSchema<{
3585
+ readonly params: v.ObjectSchema<{
3586
3586
  /**
3587
3587
  * The severity of this log message.
3588
3588
  */
@@ -3601,9 +3601,9 @@ export const ServerNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3601
3601
  */
3602
3602
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3603
3603
  }, undefined>;
3604
- }, undefined>, v.LooseObjectSchema<{
3604
+ }, undefined>, v.ObjectSchema<{
3605
3605
  readonly method: v.LiteralSchema<"notifications/resources/updated", undefined>;
3606
- readonly params: v.LooseObjectSchema<{
3606
+ readonly params: v.ObjectSchema<{
3607
3607
  /**
3608
3608
  * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
3609
3609
  */
@@ -3614,7 +3614,7 @@ export const ServerNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3614
3614
  */
3615
3615
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3616
3616
  }, undefined>;
3617
- }, undefined>, v.LooseObjectSchema<{
3617
+ }, undefined>, v.ObjectSchema<{
3618
3618
  readonly method: v.LiteralSchema<"notifications/resources/list_changed", undefined>;
3619
3619
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3620
3620
  /**
@@ -3623,7 +3623,7 @@ export const ServerNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3623
3623
  */
3624
3624
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3625
3625
  }, undefined>, undefined>;
3626
- }, undefined>, v.LooseObjectSchema<{
3626
+ }, undefined>, v.ObjectSchema<{
3627
3627
  readonly method: v.LiteralSchema<"notifications/tools/list_changed", undefined>;
3628
3628
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3629
3629
  /**
@@ -3632,7 +3632,7 @@ export const ServerNotificationSchema: v.UnionSchema<[v.LooseObjectSchema<{
3632
3632
  */
3633
3633
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3634
3634
  }, undefined>, undefined>;
3635
- }, undefined>, v.LooseObjectSchema<{
3635
+ }, undefined>, v.ObjectSchema<{
3636
3636
  readonly method: v.LiteralSchema<"notifications/prompts/list_changed", undefined>;
3637
3637
  readonly params: v.OptionalSchema<v.LooseObjectSchema<{
3638
3638
  /**
@@ -3648,28 +3648,28 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3648
3648
  * for notes on _meta usage.
3649
3649
  */
3650
3650
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3651
- }, undefined>, v.LooseObjectSchema<{
3651
+ }, undefined>, v.ObjectSchema<{
3652
3652
  /**
3653
3653
  * 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.
3654
3654
  */
3655
3655
  readonly protocolVersion: v.StringSchema<undefined>;
3656
- readonly capabilities: v.LooseObjectSchema<{
3656
+ readonly capabilities: v.ObjectSchema<{
3657
3657
  /**
3658
3658
  * Experimental, non-standard capabilities that the server supports.
3659
3659
  */
3660
- readonly experimental: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3660
+ readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3661
3661
  /**
3662
3662
  * Present if the server supports sending log messages to the client.
3663
3663
  */
3664
- readonly logging: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3664
+ readonly logging: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3665
3665
  /**
3666
3666
  * Present if the server supports sending completions to the client.
3667
3667
  */
3668
- readonly completions: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3668
+ readonly completions: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3669
3669
  /**
3670
3670
  * Present if the server offers any prompt templates.
3671
3671
  */
3672
- readonly prompts: v.OptionalSchema<v.LooseObjectSchema<{
3672
+ readonly prompts: v.OptionalSchema<v.ObjectSchema<{
3673
3673
  /**
3674
3674
  * Whether this server supports issuing notifications for changes to the prompt list.
3675
3675
  */
@@ -3678,7 +3678,7 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3678
3678
  /**
3679
3679
  * Present if the server offers any resources to read.
3680
3680
  */
3681
- readonly resources: v.OptionalSchema<v.LooseObjectSchema<{
3681
+ readonly resources: v.OptionalSchema<v.ObjectSchema<{
3682
3682
  /**
3683
3683
  * Whether this server supports clients subscribing to resource updates.
3684
3684
  */
@@ -3691,14 +3691,14 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3691
3691
  /**
3692
3692
  * Present if the server offers any tools to call.
3693
3693
  */
3694
- readonly tools: v.OptionalSchema<v.LooseObjectSchema<{
3694
+ readonly tools: v.OptionalSchema<v.ObjectSchema<{
3695
3695
  /**
3696
3696
  * Whether this server supports issuing notifications for changes to the tool list.
3697
3697
  */
3698
3698
  readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3699
3699
  }, undefined>, undefined>;
3700
3700
  }, undefined>;
3701
- readonly serverInfo: v.LooseObjectSchema<{
3701
+ readonly serverInfo: v.ObjectSchema<{
3702
3702
  readonly version: v.StringSchema<undefined>;
3703
3703
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
3704
3704
  readonly name: v.StringSchema<undefined>;
@@ -3723,8 +3723,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3723
3723
  * for notes on _meta usage.
3724
3724
  */
3725
3725
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3726
- }, undefined>, v.LooseObjectSchema<{
3727
- readonly completion: v.LooseObjectSchema<{
3726
+ }, undefined>, v.ObjectSchema<{
3727
+ readonly completion: v.ObjectSchema<{
3728
3728
  /**
3729
3729
  * An array of completion values. Must not exceed 100 items.
3730
3730
  */
@@ -3743,14 +3743,14 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3743
3743
  * for notes on _meta usage.
3744
3744
  */
3745
3745
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3746
- }, undefined>, v.LooseObjectSchema<{
3746
+ }, undefined>, v.ObjectSchema<{
3747
3747
  /**
3748
3748
  * An optional description for the prompt.
3749
3749
  */
3750
3750
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3751
- readonly messages: v.ArraySchema<v.LooseObjectSchema<{
3751
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
3752
3752
  readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
3753
- readonly content: v.UnionSchema<[v.LooseObjectSchema<{
3753
+ readonly content: v.UnionSchema<[v.ObjectSchema<{
3754
3754
  readonly type: v.LiteralSchema<"text", undefined>;
3755
3755
  /**
3756
3756
  * The text content of the message.
@@ -3760,8 +3760,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3760
3760
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3761
3761
  * for notes on _meta usage.
3762
3762
  */
3763
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3764
- }, undefined>, v.LooseObjectSchema<{
3763
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3764
+ }, undefined>, v.ObjectSchema<{
3765
3765
  readonly type: v.LiteralSchema<"image", undefined>;
3766
3766
  /**
3767
3767
  * The base64-encoded image data.
@@ -3775,8 +3775,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3775
3775
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3776
3776
  * for notes on _meta usage.
3777
3777
  */
3778
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3779
- }, undefined>, v.LooseObjectSchema<{
3778
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3779
+ }, undefined>, v.ObjectSchema<{
3780
3780
  readonly type: v.LiteralSchema<"audio", undefined>;
3781
3781
  /**
3782
3782
  * The base64-encoded audio data.
@@ -3790,8 +3790,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3790
3790
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3791
3791
  * for notes on _meta usage.
3792
3792
  */
3793
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3794
- }, undefined>, v.LooseObjectSchema<{
3793
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3794
+ }, undefined>, v.ObjectSchema<{
3795
3795
  readonly type: v.LiteralSchema<"resource_link", undefined>;
3796
3796
  /**
3797
3797
  * The URI of this resource.
@@ -3811,7 +3811,7 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3811
3811
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3812
3812
  * for notes on _meta usage.
3813
3813
  */
3814
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3814
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3815
3815
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
3816
3816
  readonly name: v.StringSchema<undefined>;
3817
3817
  /**
@@ -3823,9 +3823,9 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3823
3823
  * if present).
3824
3824
  */
3825
3825
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3826
- }, undefined>, v.LooseObjectSchema<{
3826
+ }, undefined>, v.ObjectSchema<{
3827
3827
  readonly type: v.LiteralSchema<"resource", undefined>;
3828
- readonly resource: v.UnionSchema<[v.LooseObjectSchema<{
3828
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
3829
3829
  /**
3830
3830
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
3831
3831
  */
@@ -3842,8 +3842,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3842
3842
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3843
3843
  * for notes on _meta usage.
3844
3844
  */
3845
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3846
- }, undefined>, v.LooseObjectSchema<{
3845
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3846
+ }, undefined>, v.ObjectSchema<{
3847
3847
  /**
3848
3848
  * A base64-encoded string representing the binary data of the item.
3849
3849
  */
@@ -3860,13 +3860,13 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3860
3860
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3861
3861
  * for notes on _meta usage.
3862
3862
  */
3863
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3863
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3864
3864
  }, undefined>], undefined>;
3865
3865
  /**
3866
3866
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3867
3867
  * for notes on _meta usage.
3868
3868
  */
3869
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3869
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3870
3870
  }, undefined>], undefined>;
3871
3871
  }, undefined>, undefined>;
3872
3872
  /**
@@ -3874,8 +3874,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3874
3874
  * for notes on _meta usage.
3875
3875
  */
3876
3876
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3877
- }, undefined>, v.LooseObjectSchema<{
3878
- readonly prompts: v.ArraySchema<v.LooseObjectSchema<{
3877
+ }, undefined>, v.ObjectSchema<{
3878
+ readonly prompts: v.ArraySchema<v.ObjectSchema<{
3879
3879
  /**
3880
3880
  * An optional description of what this prompt provides
3881
3881
  */
@@ -3883,7 +3883,7 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3883
3883
  /**
3884
3884
  * A list of arguments to use for templating the prompt.
3885
3885
  */
3886
- readonly arguments: v.OptionalSchema<v.ArraySchema<v.LooseObjectSchema<{
3886
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
3887
3887
  /**
3888
3888
  * The name of the argument.
3889
3889
  */
@@ -3901,7 +3901,7 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3901
3901
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3902
3902
  * for notes on _meta usage.
3903
3903
  */
3904
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3904
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3905
3905
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
3906
3906
  readonly name: v.StringSchema<undefined>;
3907
3907
  /**
@@ -3924,8 +3924,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3924
3924
  * for notes on _meta usage.
3925
3925
  */
3926
3926
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3927
- }, undefined>, v.LooseObjectSchema<{
3928
- readonly resources: v.ArraySchema<v.LooseObjectSchema<{
3927
+ }, undefined>, v.ObjectSchema<{
3928
+ readonly resources: v.ArraySchema<v.ObjectSchema<{
3929
3929
  /**
3930
3930
  * The URI of this resource.
3931
3931
  */
@@ -3944,7 +3944,7 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3944
3944
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3945
3945
  * for notes on _meta usage.
3946
3946
  */
3947
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3947
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3948
3948
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
3949
3949
  readonly name: v.StringSchema<undefined>;
3950
3950
  /**
@@ -3967,8 +3967,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3967
3967
  * for notes on _meta usage.
3968
3968
  */
3969
3969
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3970
- }, undefined>, v.LooseObjectSchema<{
3971
- readonly resourceTemplates: v.ArraySchema<v.LooseObjectSchema<{
3970
+ }, undefined>, v.ObjectSchema<{
3971
+ readonly resourceTemplates: v.ArraySchema<v.ObjectSchema<{
3972
3972
  /**
3973
3973
  * A URI template (according to RFC 6570) that can be used to construct resource URIs.
3974
3974
  */
@@ -3987,7 +3987,7 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
3987
3987
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3988
3988
  * for notes on _meta usage.
3989
3989
  */
3990
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
3990
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
3991
3991
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
3992
3992
  readonly name: v.StringSchema<undefined>;
3993
3993
  /**
@@ -4010,8 +4010,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4010
4010
  * for notes on _meta usage.
4011
4011
  */
4012
4012
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4013
- }, undefined>, v.LooseObjectSchema<{
4014
- readonly contents: v.ArraySchema<v.UnionSchema<[v.LooseObjectSchema<{
4013
+ }, undefined>, v.ObjectSchema<{
4014
+ readonly contents: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
4015
4015
  /**
4016
4016
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
4017
4017
  */
@@ -4028,8 +4028,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4028
4028
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4029
4029
  * for notes on _meta usage.
4030
4030
  */
4031
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4032
- }, undefined>, v.LooseObjectSchema<{
4031
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4032
+ }, undefined>, v.ObjectSchema<{
4033
4033
  /**
4034
4034
  * A base64-encoded string representing the binary data of the item.
4035
4035
  */
@@ -4046,21 +4046,21 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4046
4046
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4047
4047
  * for notes on _meta usage.
4048
4048
  */
4049
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4049
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4050
4050
  }, undefined>], undefined>, undefined>;
4051
4051
  /**
4052
4052
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4053
4053
  * for notes on _meta usage.
4054
4054
  */
4055
4055
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4056
- }, undefined>, v.LooseObjectSchema<{
4056
+ }, undefined>, v.ObjectSchema<{
4057
4057
  /**
4058
4058
  * A list of content objects that represent the result of the tool call.
4059
4059
  *
4060
4060
  * If the Tool does not define an outputSchema, this field MUST be present in the result.
4061
4061
  * For backwards compatibility, this field is always present, but it may be empty.
4062
4062
  */
4063
- readonly content: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.LooseObjectSchema<{
4063
+ readonly content: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
4064
4064
  readonly type: v.LiteralSchema<"text", undefined>;
4065
4065
  /**
4066
4066
  * The text content of the message.
@@ -4070,8 +4070,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4070
4070
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4071
4071
  * for notes on _meta usage.
4072
4072
  */
4073
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4074
- }, undefined>, v.LooseObjectSchema<{
4073
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4074
+ }, undefined>, v.ObjectSchema<{
4075
4075
  readonly type: v.LiteralSchema<"image", undefined>;
4076
4076
  /**
4077
4077
  * The base64-encoded image data.
@@ -4085,8 +4085,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4085
4085
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4086
4086
  * for notes on _meta usage.
4087
4087
  */
4088
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4089
- }, undefined>, v.LooseObjectSchema<{
4088
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4089
+ }, undefined>, v.ObjectSchema<{
4090
4090
  readonly type: v.LiteralSchema<"audio", undefined>;
4091
4091
  /**
4092
4092
  * The base64-encoded audio data.
@@ -4100,8 +4100,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4100
4100
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4101
4101
  * for notes on _meta usage.
4102
4102
  */
4103
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4104
- }, undefined>, v.LooseObjectSchema<{
4103
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4104
+ }, undefined>, v.ObjectSchema<{
4105
4105
  readonly type: v.LiteralSchema<"resource_link", undefined>;
4106
4106
  /**
4107
4107
  * The URI of this resource.
@@ -4121,7 +4121,7 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4121
4121
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4122
4122
  * for notes on _meta usage.
4123
4123
  */
4124
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4124
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4125
4125
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
4126
4126
  readonly name: v.StringSchema<undefined>;
4127
4127
  /**
@@ -4133,9 +4133,9 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4133
4133
  * if present).
4134
4134
  */
4135
4135
  readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4136
- }, undefined>, v.LooseObjectSchema<{
4136
+ }, undefined>, v.ObjectSchema<{
4137
4137
  readonly type: v.LiteralSchema<"resource", undefined>;
4138
- readonly resource: v.UnionSchema<[v.LooseObjectSchema<{
4138
+ readonly resource: v.UnionSchema<[v.ObjectSchema<{
4139
4139
  /**
4140
4140
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
4141
4141
  */
@@ -4152,8 +4152,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4152
4152
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4153
4153
  * for notes on _meta usage.
4154
4154
  */
4155
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4156
- }, undefined>, v.LooseObjectSchema<{
4155
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4156
+ }, undefined>, v.ObjectSchema<{
4157
4157
  /**
4158
4158
  * A base64-encoded string representing the binary data of the item.
4159
4159
  */
@@ -4170,13 +4170,13 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4170
4170
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4171
4171
  * for notes on _meta usage.
4172
4172
  */
4173
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4173
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4174
4174
  }, undefined>], undefined>;
4175
4175
  /**
4176
4176
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4177
4177
  * for notes on _meta usage.
4178
4178
  */
4179
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4179
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4180
4180
  }, undefined>], undefined>, undefined>, readonly []>;
4181
4181
  /**
4182
4182
  * An object containing structured tool output.
@@ -4204,8 +4204,8 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4204
4204
  * for notes on _meta usage.
4205
4205
  */
4206
4206
  readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4207
- }, undefined>, v.LooseObjectSchema<{
4208
- readonly tools: v.ArraySchema<v.LooseObjectSchema<{
4207
+ }, undefined>, v.ObjectSchema<{
4208
+ readonly tools: v.ArraySchema<v.ObjectSchema<{
4209
4209
  /**
4210
4210
  * A human-readable description of the tool.
4211
4211
  */
@@ -4213,24 +4213,24 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4213
4213
  /**
4214
4214
  * A JSON Schema object defining the expected parameters for the tool.
4215
4215
  */
4216
- readonly inputSchema: v.LooseObjectSchema<{
4216
+ readonly inputSchema: v.ObjectSchema<{
4217
4217
  readonly type: v.LiteralSchema<"object", undefined>;
4218
- readonly properties: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4218
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4219
4219
  readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
4220
4220
  }, undefined>;
4221
4221
  /**
4222
4222
  * An optional JSON Schema object defining the structure of the tool's output returned in
4223
4223
  * the structuredContent field of a CallToolResult.
4224
4224
  */
4225
- readonly outputSchema: v.OptionalSchema<v.LooseObjectSchema<{
4225
+ readonly outputSchema: v.OptionalSchema<v.ObjectSchema<{
4226
4226
  readonly type: v.LiteralSchema<"object", undefined>;
4227
- readonly properties: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4227
+ readonly properties: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4228
4228
  readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
4229
4229
  }, undefined>, undefined>;
4230
4230
  /**
4231
4231
  * Optional additional tool information.
4232
4232
  */
4233
- readonly annotations: v.OptionalSchema<v.LooseObjectSchema<{
4233
+ readonly annotations: v.OptionalSchema<v.ObjectSchema<{
4234
4234
  /**
4235
4235
  * A human-readable title for the tool.
4236
4236
  */
@@ -4273,7 +4273,7 @@ export const ServerResultSchema: v.UnionSchema<[v.StrictObjectSchema<{
4273
4273
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
4274
4274
  * for notes on _meta usage.
4275
4275
  */
4276
- readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
4276
+ readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
4277
4277
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
4278
4278
  readonly name: v.StringSchema<undefined>;
4279
4279
  /**