@effect/ai 0.19.2 → 0.19.4

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.
@@ -2,8 +2,13 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import * as Rpc from "@effect/rpc/Rpc";
5
+ import type * as RpcClient from "@effect/rpc/RpcClient";
5
6
  import * as RpcGroup from "@effect/rpc/RpcGroup";
7
+ import * as RpcMiddleware from "@effect/rpc/RpcMiddleware";
8
+ import * as Context from "effect/Context";
9
+ import type * as Effect from "effect/Effect";
6
10
  import * as Schema from "effect/Schema";
11
+ import type * as Scope from "effect/Scope";
7
12
  /**
8
13
  * A uniquely identifying ID for a request in JSON-RPC.
9
14
  *
@@ -40,7 +45,7 @@ export declare const ProgressToken: Schema.Union<[
40
45
  * @category Common
41
46
  */
42
47
  export type ProgressToken = typeof ProgressToken.Type;
43
- declare const RequestMeta_base: Schema.Class<RequestMeta, {
48
+ declare const RequestMeta_base: Schema.Struct<{
44
49
  _meta: Schema.optional<Schema.Struct<{
45
50
  /**
46
51
  * If specified, the caller is requesting out-of-band progress notifications
@@ -51,68 +56,33 @@ declare const RequestMeta_base: Schema.Class<RequestMeta, {
51
56
  */
52
57
  progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
53
58
  }>>;
54
- }, Schema.Struct.Encoded<{
55
- _meta: Schema.optional<Schema.Struct<{
56
- /**
57
- * If specified, the caller is requesting out-of-band progress notifications
58
- * for this request (as represented by notifications/progress). The value of
59
- * this parameter is an opaque token that will be attached to any subsequent
60
- * notifications. The receiver is not obligated to provide these
61
- * notifications.
62
- */
63
- progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
64
- }>>;
65
- }>, never, {
66
- readonly _meta?: {
67
- readonly progressToken?: string | number | undefined;
68
- } | undefined;
69
- }, {}, {}>;
59
+ }>;
70
60
  /**
71
61
  * @since 1.0.0
72
62
  * @category Common
73
63
  */
74
64
  export declare class RequestMeta extends RequestMeta_base {
75
65
  }
76
- declare const ResultMeta_base: Schema.Class<ResultMeta, {
66
+ declare const ResultMeta_base: Schema.Struct<{
77
67
  /**
78
68
  * This result property is reserved by the protocol to allow clients and
79
69
  * servers to attach additional metadata to their responses.
80
70
  */
81
71
  _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
82
- }, Schema.Struct.Encoded<{
83
- /**
84
- * This result property is reserved by the protocol to allow clients and
85
- * servers to attach additional metadata to their responses.
86
- */
87
- _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
88
- }>, never, {
89
- readonly _meta?: {
90
- readonly [x: string]: unknown;
91
- } | undefined;
92
- }, {}, {}>;
72
+ }>;
93
73
  /**
94
74
  * @since 1.0.0
95
75
  * @category Common
96
76
  */
97
77
  export declare class ResultMeta extends ResultMeta_base {
98
78
  }
99
- declare const NotificationMeta_base: Schema.Class<NotificationMeta, {
100
- /**
101
- * This parameter name is reserved by MCP to allow clients and servers to
102
- * attach additional metadata to their notifications.
103
- */
104
- _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
105
- }, Schema.Struct.Encoded<{
79
+ declare const NotificationMeta_base: Schema.Struct<{
106
80
  /**
107
81
  * This parameter name is reserved by MCP to allow clients and servers to
108
82
  * attach additional metadata to their notifications.
109
83
  */
110
84
  _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
111
- }>, never, {
112
- readonly _meta?: {
113
- readonly [x: string]: unknown;
114
- } | undefined;
115
- }, {}, {}>;
85
+ }>;
116
86
  /**
117
87
  * @since 1.0.0
118
88
  * @category Common
@@ -131,23 +101,7 @@ export declare const Cursor: typeof Schema.String;
131
101
  * @category Common
132
102
  */
133
103
  export type Cursor = typeof Cursor.Type;
134
- declare const PaginatedRequestMeta_base: Schema.Class<PaginatedRequestMeta, {
135
- /**
136
- * An opaque token representing the current pagination position.
137
- * If provided, the server should return results starting after this cursor.
138
- */
139
- cursor: Schema.optional<typeof Schema.String>;
140
- _meta: Schema.optional<Schema.Struct<{
141
- /**
142
- * If specified, the caller is requesting out-of-band progress notifications
143
- * for this request (as represented by notifications/progress). The value of
144
- * this parameter is an opaque token that will be attached to any subsequent
145
- * notifications. The receiver is not obligated to provide these
146
- * notifications.
147
- */
148
- progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
149
- }>>;
150
- }, Schema.Struct.Encoded<{
104
+ declare const PaginatedRequestMeta_base: Schema.Struct<{
151
105
  /**
152
106
  * An opaque token representing the current pagination position.
153
107
  * If provided, the server should return results starting after this cursor.
@@ -163,40 +117,21 @@ declare const PaginatedRequestMeta_base: Schema.Class<PaginatedRequestMeta, {
163
117
  */
164
118
  progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
165
119
  }>>;
166
- }>, never, {
167
- readonly _meta?: {
168
- readonly progressToken?: string | number | undefined;
169
- } | undefined;
170
- } & {
171
- readonly cursor?: string | undefined;
172
- }, {}, {}>;
120
+ }>;
173
121
  /**
174
122
  * @since 1.0.0
175
123
  * @category Common
176
124
  */
177
125
  export declare class PaginatedRequestMeta extends PaginatedRequestMeta_base {
178
126
  }
179
- declare const PaginatedResultMeta_base: Schema.Class<PaginatedResultMeta, {
180
- /**
181
- * An opaque token representing the pagination position after the last returned result.
182
- * If present, there may be more results available.
183
- */
184
- nextCursor: Schema.optional<typeof Schema.String>;
185
- _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
186
- }, Schema.Struct.Encoded<{
127
+ declare const PaginatedResultMeta_base: Schema.Struct<{
187
128
  /**
188
129
  * An opaque token representing the pagination position after the last returned result.
189
130
  * If present, there may be more results available.
190
131
  */
191
132
  nextCursor: Schema.optional<typeof Schema.String>;
192
133
  _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
193
- }>, never, {
194
- readonly _meta?: {
195
- readonly [x: string]: unknown;
196
- } | undefined;
197
- } & {
198
- readonly nextCursor?: string | undefined;
199
- }, {}, {}>;
134
+ }>;
200
135
  /**
201
136
  * @since 1.0.0
202
137
  * @category Common
@@ -214,23 +149,7 @@ export declare const Role: Schema.Literal<["user", "assistant"]>;
214
149
  * @category Common
215
150
  */
216
151
  export type Role = typeof Role.Type;
217
- declare const Annotations_base: Schema.Class<Annotations, {
218
- /**
219
- * Describes who the intended customer of this object or data is.
220
- *
221
- * It can include multiple entries to indicate content useful for multiple
222
- * audiences (e.g., `["user", "assistant"]`).
223
- */
224
- audience: Schema.optional<Schema.Array$<Schema.Literal<["user", "assistant"]>>>;
225
- /**
226
- * Describes how important this data is for operating the server.
227
- *
228
- * A value of 1 means "most important," and indicates that the data is
229
- * effectively required, while 0 means "least important," and indicates that
230
- * the data is entirely optional.
231
- */
232
- priority: Schema.optional<Schema.filter<typeof Schema.Number>>;
233
- }, Schema.Struct.Encoded<{
152
+ declare const Annotations_base: Schema.Struct<{
234
153
  /**
235
154
  * Describes who the intended customer of this object or data is.
236
155
  *
@@ -246,11 +165,7 @@ declare const Annotations_base: Schema.Class<Annotations, {
246
165
  * the data is entirely optional.
247
166
  */
248
167
  priority: Schema.optional<Schema.filter<typeof Schema.Number>>;
249
- }>, never, {
250
- readonly audience?: readonly ("user" | "assistant")[] | undefined;
251
- } & {
252
- readonly priority?: number | undefined;
253
- }, {}, {}>;
168
+ }>;
254
169
  /**
255
170
  * Optional annotations for the client. The client can use annotations to
256
171
  * inform how objects are used or displayed
@@ -260,17 +175,11 @@ declare const Annotations_base: Schema.Class<Annotations, {
260
175
  */
261
176
  export declare class Annotations extends Annotations_base {
262
177
  }
263
- declare const Implementation_base: Schema.Class<Implementation, {
264
- name: typeof Schema.String;
265
- version: typeof Schema.String;
266
- }, Schema.Struct.Encoded<{
178
+ declare const Implementation_base: Schema.Struct<{
267
179
  name: typeof Schema.String;
180
+ title: Schema.optional<typeof Schema.String>;
268
181
  version: typeof Schema.String;
269
- }>, never, {
270
- readonly name: string;
271
- } & {
272
- readonly version: string;
273
- }, {}, {}>;
182
+ }>;
274
183
  /**
275
184
  * Describes the name and version of an MCP implementation.
276
185
  *
@@ -297,6 +206,10 @@ declare const ClientCapabilities_base: Schema.Class<ClientCapabilities, {
297
206
  * Present if the client supports sampling from an LLM.
298
207
  */
299
208
  sampling: Schema.optional<Schema.Struct<{}>>;
209
+ /**
210
+ * Present if the client supports elicitation from the server.
211
+ */
212
+ elicitation: Schema.optional<Schema.Struct<{}>>;
300
213
  }, Schema.Struct.Encoded<{
301
214
  /**
302
215
  * Experimental, non-standard capabilities that the client supports.
@@ -315,6 +228,10 @@ declare const ClientCapabilities_base: Schema.Class<ClientCapabilities, {
315
228
  * Present if the client supports sampling from an LLM.
316
229
  */
317
230
  sampling: Schema.optional<Schema.Struct<{}>>;
231
+ /**
232
+ * Present if the client supports elicitation from the server.
233
+ */
234
+ elicitation: Schema.optional<Schema.Struct<{}>>;
318
235
  }>, never, {
319
236
  readonly experimental?: {
320
237
  readonly [x: string]: {};
@@ -325,6 +242,8 @@ declare const ClientCapabilities_base: Schema.Class<ClientCapabilities, {
325
242
  } | undefined;
326
243
  } & {
327
244
  readonly sampling?: {} | undefined;
245
+ } & {
246
+ readonly elicitation?: {} | undefined;
328
247
  }, {}, {}>;
329
248
  /**
330
249
  * Capabilities a client may support. Known capabilities are defined here, in
@@ -336,51 +255,7 @@ declare const ClientCapabilities_base: Schema.Class<ClientCapabilities, {
336
255
  */
337
256
  export declare class ClientCapabilities extends ClientCapabilities_base {
338
257
  }
339
- declare const ServerCapabilities_base: Schema.Class<ServerCapabilities, {
340
- /**
341
- * Experimental, non-standard capabilities that the server supports.
342
- */
343
- experimental: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Struct<{}>>>;
344
- /**
345
- * Present if the server supports sending log messages to the client.
346
- */
347
- logging: Schema.optional<Schema.Struct<{}>>;
348
- /**
349
- * Present if the server supports argument autocompletion suggestions.
350
- */
351
- completions: Schema.optional<Schema.Struct<{}>>;
352
- /**
353
- * Present if the server offers any prompt templates.
354
- */
355
- prompts: Schema.optional<Schema.Struct<{
356
- /**
357
- * Whether this server supports notifications for changes to the prompt list.
358
- */
359
- listChanged: Schema.optional<typeof Schema.Boolean>;
360
- }>>;
361
- /**
362
- * Present if the server offers any resources to read.
363
- */
364
- resources: Schema.optional<Schema.Struct<{
365
- /**
366
- * Whether this server supports subscribing to resource updates.
367
- */
368
- subscribe: Schema.optional<typeof Schema.Boolean>;
369
- /**
370
- * Whether this server supports notifications for changes to the resource list.
371
- */
372
- listChanged: Schema.optional<typeof Schema.Boolean>;
373
- }>>;
374
- /**
375
- * Present if the server offers any tools to call.
376
- */
377
- tools: Schema.optional<Schema.Struct<{
378
- /**
379
- * Whether this server supports notifications for changes to the tool list.
380
- */
381
- listChanged: Schema.optional<typeof Schema.Boolean>;
382
- }>>;
383
- }, Schema.Struct.Encoded<{
258
+ declare const ServerCapabilities_base: Schema.Struct<{
384
259
  /**
385
260
  * Experimental, non-standard capabilities that the server supports.
386
261
  */
@@ -424,28 +299,7 @@ declare const ServerCapabilities_base: Schema.Class<ServerCapabilities, {
424
299
  */
425
300
  listChanged: Schema.optional<typeof Schema.Boolean>;
426
301
  }>>;
427
- }>, never, {
428
- readonly tools?: {
429
- readonly listChanged?: boolean | undefined;
430
- } | undefined;
431
- } & {
432
- readonly experimental?: {
433
- readonly [x: string]: {};
434
- } | undefined;
435
- } & {
436
- readonly logging?: {} | undefined;
437
- } & {
438
- readonly completions?: {} | undefined;
439
- } & {
440
- readonly prompts?: {
441
- readonly listChanged?: boolean | undefined;
442
- } | undefined;
443
- } & {
444
- readonly resources?: {
445
- readonly listChanged?: boolean | undefined;
446
- readonly subscribe?: boolean | undefined;
447
- } | undefined;
448
- }, {}, {}>;
302
+ }>;
449
303
  /**
450
304
  * Capabilities that a server may support. Known capabilities are defined
451
305
  * here, in this schema, but this is not a closed set: any server can define
@@ -644,9 +498,29 @@ declare const InitializeResult_base: Schema.Class<InitializeResult, {
644
498
  } & {
645
499
  readonly protocolVersion: string;
646
500
  } & {
647
- readonly capabilities: ServerCapabilities;
501
+ readonly capabilities: {
502
+ readonly tools?: {
503
+ readonly listChanged?: boolean | undefined;
504
+ } | undefined;
505
+ readonly experimental?: {
506
+ readonly [x: string]: {};
507
+ } | undefined;
508
+ readonly logging?: {} | undefined;
509
+ readonly completions?: {} | undefined;
510
+ readonly prompts?: {
511
+ readonly listChanged?: boolean | undefined;
512
+ } | undefined;
513
+ readonly resources?: {
514
+ readonly listChanged?: boolean | undefined;
515
+ readonly subscribe?: boolean | undefined;
516
+ } | undefined;
517
+ };
648
518
  } & {
649
- readonly serverInfo: Implementation;
519
+ readonly serverInfo: {
520
+ readonly name: string;
521
+ readonly title?: string | undefined;
522
+ readonly version: string;
523
+ };
650
524
  } & {
651
525
  readonly instructions?: string | undefined;
652
526
  }, {}, {}>;
@@ -767,6 +641,7 @@ declare const Resource_base: Schema.Class<Resource, {
767
641
  * This can be used by clients to populate UI elements.
768
642
  */
769
643
  name: typeof Schema.String;
644
+ title: Schema.optional<typeof Schema.String>;
770
645
  /**
771
646
  * A description of what this resource represents.
772
647
  *
@@ -801,6 +676,7 @@ declare const Resource_base: Schema.Class<Resource, {
801
676
  * This can be used by clients to populate UI elements.
802
677
  */
803
678
  name: typeof Schema.String;
679
+ title: Schema.optional<typeof Schema.String>;
804
680
  /**
805
681
  * A description of what this resource represents.
806
682
  *
@@ -827,9 +703,14 @@ declare const Resource_base: Schema.Class<Resource, {
827
703
  }>, never, {
828
704
  readonly description?: string | undefined;
829
705
  } & {
830
- readonly annotations?: Annotations | undefined;
706
+ readonly annotations?: {
707
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
708
+ readonly priority?: number | undefined;
709
+ } | undefined;
831
710
  } & {
832
711
  readonly name: string;
712
+ } & {
713
+ readonly title?: string | undefined;
833
714
  } & {
834
715
  readonly uri: string;
835
716
  } & {
@@ -857,6 +738,7 @@ declare const ResourceTemplate_base: Schema.Class<ResourceTemplate, {
857
738
  * This can be used by clients to populate UI elements.
858
739
  */
859
740
  name: typeof Schema.String;
741
+ title: Schema.optional<typeof Schema.String>;
860
742
  /**
861
743
  * A description of what this template is for.
862
744
  *
@@ -885,6 +767,7 @@ declare const ResourceTemplate_base: Schema.Class<ResourceTemplate, {
885
767
  * This can be used by clients to populate UI elements.
886
768
  */
887
769
  name: typeof Schema.String;
770
+ title: Schema.optional<typeof Schema.String>;
888
771
  /**
889
772
  * A description of what this template is for.
890
773
  *
@@ -904,9 +787,14 @@ declare const ResourceTemplate_base: Schema.Class<ResourceTemplate, {
904
787
  }>, never, {
905
788
  readonly description?: string | undefined;
906
789
  } & {
907
- readonly annotations?: Annotations | undefined;
790
+ readonly annotations?: {
791
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
792
+ readonly priority?: number | undefined;
793
+ } | undefined;
908
794
  } & {
909
795
  readonly name: string;
796
+ } & {
797
+ readonly title?: string | undefined;
910
798
  } & {
911
799
  readonly mimeType?: string | undefined;
912
800
  } & {
@@ -920,16 +808,7 @@ declare const ResourceTemplate_base: Schema.Class<ResourceTemplate, {
920
808
  */
921
809
  export declare class ResourceTemplate extends ResourceTemplate_base {
922
810
  }
923
- declare const ResourceContents_base: Schema.Class<ResourceContents, {
924
- /**
925
- * The URI of this resource.
926
- */
927
- uri: typeof Schema.String;
928
- /**
929
- * The MIME type of this resource, if known.
930
- */
931
- mimeType: Schema.optional<typeof Schema.String>;
932
- }, Schema.Struct.Encoded<{
811
+ declare const ResourceContents_base: Schema.Struct<{
933
812
  /**
934
813
  * The URI of this resource.
935
814
  */
@@ -938,11 +817,7 @@ declare const ResourceContents_base: Schema.Class<ResourceContents, {
938
817
  * The MIME type of this resource, if known.
939
818
  */
940
819
  mimeType: Schema.optional<typeof Schema.String>;
941
- }>, never, {
942
- readonly uri: string;
943
- } & {
944
- readonly mimeType?: string | undefined;
945
- }, {}, {}>;
820
+ }>;
946
821
  /**
947
822
  * The contents of a specific resource or sub-resource.
948
823
  *
@@ -951,34 +826,15 @@ declare const ResourceContents_base: Schema.Class<ResourceContents, {
951
826
  */
952
827
  export declare class ResourceContents extends ResourceContents_base {
953
828
  }
954
- declare const TextResourceContents_base: Schema.Class<TextResourceContents, {
955
- /**
956
- * The URI of this resource.
957
- */
958
- uri: typeof Schema.String;
959
- /**
960
- * The MIME type of this resource, if known.
961
- */
962
- mimeType: Schema.optional<typeof Schema.String>;
963
- } & {
829
+ declare const TextResourceContents_base: Schema.Struct<{
964
830
  /**
965
831
  * The text of the item. This must only be set if the item can actually be
966
832
  * represented as text (not binary data).
967
833
  */
968
834
  text: typeof Schema.String;
969
- }, {
970
- readonly uri: string;
971
- } & {
972
- readonly mimeType?: string | undefined;
973
- } & {
974
- readonly text: string;
975
- } & {}, never, {
976
- readonly uri: string;
977
- } & {
978
- readonly mimeType?: string | undefined;
979
- } & {
980
- readonly text: string;
981
- }, ResourceContents, {}>;
835
+ uri: typeof Schema.String;
836
+ mimeType: Schema.optional<typeof Schema.String>;
837
+ }>;
982
838
  /**
983
839
  * The contents of a text resource, which can be represented as a string.
984
840
  *
@@ -987,33 +843,14 @@ declare const TextResourceContents_base: Schema.Class<TextResourceContents, {
987
843
  */
988
844
  export declare class TextResourceContents extends TextResourceContents_base {
989
845
  }
990
- declare const BlobResourceContents_base: Schema.Class<BlobResourceContents, {
991
- /**
992
- * The URI of this resource.
993
- */
994
- uri: typeof Schema.String;
995
- /**
996
- * The MIME type of this resource, if known.
997
- */
998
- mimeType: Schema.optional<typeof Schema.String>;
999
- } & {
846
+ declare const BlobResourceContents_base: Schema.Struct<{
1000
847
  /**
1001
848
  * The binary data of the item decoded from a base64-encoded string.
1002
849
  */
1003
850
  blob: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
1004
- }, {
1005
- readonly uri: string;
1006
- } & {
1007
- readonly mimeType?: string | undefined;
1008
- } & {
1009
- readonly blob: string;
1010
- } & {}, never, {
1011
- readonly uri: string;
1012
- } & {
1013
- readonly mimeType?: string | undefined;
1014
- } & {
1015
- readonly blob: Uint8Array<ArrayBufferLike>;
1016
- }, ResourceContents, {}>;
851
+ uri: typeof Schema.String;
852
+ mimeType: Schema.optional<typeof Schema.String>;
853
+ }>;
1017
854
  /**
1018
855
  * The contents of a binary resource, which can be represented as an Uint8Array
1019
856
  *
@@ -1090,19 +927,10 @@ declare const ListResourceTemplates_base: Rpc.Rpc<"resources/templates/list", Sc
1090
927
  */
1091
928
  export declare class ListResourceTemplates extends ListResourceTemplates_base {
1092
929
  }
1093
- declare const ReadResourceResult_base: Schema.Class<ReadResourceResult, {
1094
- contents: Schema.Array$<Schema.Union<[typeof TextResourceContents, typeof BlobResourceContents]>>;
1095
- _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
1096
- }, Schema.Struct.Encoded<{
930
+ declare const ReadResourceResult_base: Schema.Struct<{
1097
931
  contents: Schema.Array$<Schema.Union<[typeof TextResourceContents, typeof BlobResourceContents]>>;
1098
932
  _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
1099
- }>, never, {
1100
- readonly _meta?: {
1101
- readonly [x: string]: unknown;
1102
- } | undefined;
1103
- } & {
1104
- readonly contents: readonly (TextResourceContents | BlobResourceContents)[];
1105
- }, {}, {}>;
933
+ }>;
1106
934
  /**
1107
935
  * The server's response to a resources/read request from the client.
1108
936
  *
@@ -1213,11 +1041,12 @@ declare const ResourceUpdatedNotification_base: Rpc.Rpc<"notifications/resources
1213
1041
  */
1214
1042
  export declare class ResourceUpdatedNotification extends ResourceUpdatedNotification_base {
1215
1043
  }
1216
- declare const PromptArgument_base: Schema.Class<PromptArgument, {
1044
+ declare const PromptArgument_base: Schema.Struct<{
1217
1045
  /**
1218
1046
  * The name of the argument.
1219
1047
  */
1220
1048
  name: typeof Schema.String;
1049
+ title: Schema.optional<typeof Schema.String>;
1221
1050
  /**
1222
1051
  * A human-readable description of the argument.
1223
1052
  */
@@ -1226,26 +1055,7 @@ declare const PromptArgument_base: Schema.Class<PromptArgument, {
1226
1055
  * Whether this argument must be provided.
1227
1056
  */
1228
1057
  required: Schema.optional<typeof Schema.Boolean>;
1229
- }, Schema.Struct.Encoded<{
1230
- /**
1231
- * The name of the argument.
1232
- */
1233
- name: typeof Schema.String;
1234
- /**
1235
- * A human-readable description of the argument.
1236
- */
1237
- description: Schema.optional<typeof Schema.String>;
1238
- /**
1239
- * Whether this argument must be provided.
1240
- */
1241
- required: Schema.optional<typeof Schema.Boolean>;
1242
- }>, never, {
1243
- readonly description?: string | undefined;
1244
- } & {
1245
- readonly name: string;
1246
- } & {
1247
- readonly required?: boolean | undefined;
1248
- }, {}, {}>;
1058
+ }>;
1249
1059
  /**
1250
1060
  * Describes an argument that a prompt can accept.
1251
1061
  *
@@ -1259,6 +1069,7 @@ declare const Prompt_base: Schema.Class<Prompt, {
1259
1069
  * The name of the prompt or prompt template.
1260
1070
  */
1261
1071
  name: typeof Schema.String;
1072
+ title: Schema.optional<typeof Schema.String>;
1262
1073
  /**
1263
1074
  * An optional description of what this prompt provides
1264
1075
  */
@@ -1272,6 +1083,7 @@ declare const Prompt_base: Schema.Class<Prompt, {
1272
1083
  * The name of the prompt or prompt template.
1273
1084
  */
1274
1085
  name: typeof Schema.String;
1086
+ title: Schema.optional<typeof Schema.String>;
1275
1087
  /**
1276
1088
  * An optional description of what this prompt provides
1277
1089
  */
@@ -1285,7 +1097,14 @@ declare const Prompt_base: Schema.Class<Prompt, {
1285
1097
  } & {
1286
1098
  readonly name: string;
1287
1099
  } & {
1288
- readonly arguments?: readonly PromptArgument[] | undefined;
1100
+ readonly title?: string | undefined;
1101
+ } & {
1102
+ readonly arguments?: readonly {
1103
+ readonly description?: string | undefined;
1104
+ readonly name: string;
1105
+ readonly title?: string | undefined;
1106
+ readonly required?: boolean | undefined;
1107
+ }[] | undefined;
1289
1108
  }, {}, {}>;
1290
1109
  /**
1291
1110
  * A prompt or prompt template that the server offers.
@@ -1295,17 +1114,7 @@ declare const Prompt_base: Schema.Class<Prompt, {
1295
1114
  */
1296
1115
  export declare class Prompt extends Prompt_base {
1297
1116
  }
1298
- declare const TextContent_base: Schema.Class<TextContent, {
1299
- type: Schema.tag<"text">;
1300
- /**
1301
- * The text content of the message.
1302
- */
1303
- text: typeof Schema.String;
1304
- /**
1305
- * Optional annotations for the client.
1306
- */
1307
- annotations: Schema.optional<typeof Annotations>;
1308
- }, Schema.Struct.Encoded<{
1117
+ declare const TextContent_base: Schema.Struct<{
1309
1118
  type: Schema.tag<"text">;
1310
1119
  /**
1311
1120
  * The text content of the message.
@@ -1315,13 +1124,7 @@ declare const TextContent_base: Schema.Class<TextContent, {
1315
1124
  * Optional annotations for the client.
1316
1125
  */
1317
1126
  annotations: Schema.optional<typeof Annotations>;
1318
- }>, never, {
1319
- readonly annotations?: Annotations | undefined;
1320
- } & {
1321
- readonly text: string;
1322
- } & {
1323
- readonly type?: "text" | undefined;
1324
- }, {}, {}>;
1127
+ }>;
1325
1128
  /**
1326
1129
  * Text provided to or from an LLM.
1327
1130
  *
@@ -1330,22 +1133,7 @@ declare const TextContent_base: Schema.Class<TextContent, {
1330
1133
  */
1331
1134
  export declare class TextContent extends TextContent_base {
1332
1135
  }
1333
- declare const ImageContent_base: Schema.Class<ImageContent, {
1334
- type: Schema.tag<"image">;
1335
- /**
1336
- * The image data.
1337
- */
1338
- data: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
1339
- /**
1340
- * The MIME type of the image. Different providers may support different
1341
- * image types.
1342
- */
1343
- mimeType: typeof Schema.String;
1344
- /**
1345
- * Optional annotations for the client.
1346
- */
1347
- annotations: Schema.optional<typeof Annotations>;
1348
- }, Schema.Struct.Encoded<{
1136
+ declare const ImageContent_base: Schema.Struct<{
1349
1137
  type: Schema.tag<"image">;
1350
1138
  /**
1351
1139
  * The image data.
@@ -1360,15 +1148,7 @@ declare const ImageContent_base: Schema.Class<ImageContent, {
1360
1148
  * Optional annotations for the client.
1361
1149
  */
1362
1150
  annotations: Schema.optional<typeof Annotations>;
1363
- }>, never, {
1364
- readonly annotations?: Annotations | undefined;
1365
- } & {
1366
- readonly type?: "image" | undefined;
1367
- } & {
1368
- readonly data: Uint8Array<ArrayBufferLike>;
1369
- } & {
1370
- readonly mimeType: string;
1371
- }, {}, {}>;
1151
+ }>;
1372
1152
  /**
1373
1153
  * An image provided to or from an LLM.
1374
1154
  *
@@ -1377,22 +1157,7 @@ declare const ImageContent_base: Schema.Class<ImageContent, {
1377
1157
  */
1378
1158
  export declare class ImageContent extends ImageContent_base {
1379
1159
  }
1380
- declare const AudioContent_base: Schema.Class<AudioContent, {
1381
- type: Schema.tag<"audio">;
1382
- /**
1383
- * The audio data.
1384
- */
1385
- data: Schema.Schema<Uint8Array<ArrayBufferLike>, string, never>;
1386
- /**
1387
- * The MIME type of the audio. Different providers may support different
1388
- * audio types.
1389
- */
1390
- mimeType: typeof Schema.String;
1391
- /**
1392
- * Optional annotations for the client.
1393
- */
1394
- annotations: Schema.optional<typeof Annotations>;
1395
- }, Schema.Struct.Encoded<{
1160
+ declare const AudioContent_base: Schema.Struct<{
1396
1161
  type: Schema.tag<"audio">;
1397
1162
  /**
1398
1163
  * The audio data.
@@ -1407,15 +1172,7 @@ declare const AudioContent_base: Schema.Class<AudioContent, {
1407
1172
  * Optional annotations for the client.
1408
1173
  */
1409
1174
  annotations: Schema.optional<typeof Annotations>;
1410
- }>, never, {
1411
- readonly annotations?: Annotations | undefined;
1412
- } & {
1413
- readonly type?: "audio" | undefined;
1414
- } & {
1415
- readonly data: Uint8Array<ArrayBufferLike>;
1416
- } & {
1417
- readonly mimeType: string;
1418
- }, {}, {}>;
1175
+ }>;
1419
1176
  /**
1420
1177
  * Audio provided to or from an LLM.
1421
1178
  *
@@ -1424,27 +1181,14 @@ declare const AudioContent_base: Schema.Class<AudioContent, {
1424
1181
  */
1425
1182
  export declare class AudioContent extends AudioContent_base {
1426
1183
  }
1427
- declare const EmbeddedResource_base: Schema.Class<EmbeddedResource, {
1428
- type: Schema.tag<"resource">;
1429
- resource: Schema.Union<[typeof TextResourceContents, typeof BlobResourceContents]>;
1430
- /**
1431
- * Optional annotations for the client.
1432
- */
1433
- annotations: Schema.optional<typeof Annotations>;
1434
- }, Schema.Struct.Encoded<{
1184
+ declare const EmbeddedResource_base: Schema.Struct<{
1435
1185
  type: Schema.tag<"resource">;
1436
1186
  resource: Schema.Union<[typeof TextResourceContents, typeof BlobResourceContents]>;
1437
1187
  /**
1438
1188
  * Optional annotations for the client.
1439
1189
  */
1440
1190
  annotations: Schema.optional<typeof Annotations>;
1441
- }>, never, {
1442
- readonly annotations?: Annotations | undefined;
1443
- } & {
1444
- readonly type?: "resource" | undefined;
1445
- } & {
1446
- readonly resource: TextResourceContents | BlobResourceContents;
1447
- }, {}, {}>;
1191
+ }>;
1448
1192
  /**
1449
1193
  * The contents of a resource, embedded into a prompt or tool call result.
1450
1194
  *
@@ -1456,17 +1200,37 @@ declare const EmbeddedResource_base: Schema.Class<EmbeddedResource, {
1456
1200
  */
1457
1201
  export declare class EmbeddedResource extends EmbeddedResource_base {
1458
1202
  }
1459
- declare const PromptMessage_base: Schema.Class<PromptMessage, {
1460
- role: Schema.Literal<["user", "assistant"]>;
1461
- content: Schema.Union<[typeof TextContent, typeof ImageContent, typeof AudioContent, typeof EmbeddedResource]>;
1462
- }, Schema.Struct.Encoded<{
1203
+ declare const ResourceLink_base: Schema.Struct<{
1204
+ type: Schema.tag<"resource_link">;
1205
+ uri: typeof Schema.String;
1206
+ name: typeof Schema.String;
1207
+ title: Schema.optional<typeof Schema.String>;
1208
+ description: Schema.optional<typeof Schema.String>;
1209
+ mimeType: Schema.optional<typeof Schema.String>;
1210
+ annotations: Schema.optional<typeof Annotations>;
1211
+ size: Schema.optional<typeof Schema.Number>;
1212
+ }>;
1213
+ /**
1214
+ * A resource that the server is capable of reading, included in a prompt or tool call result.
1215
+ *
1216
+ * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
1217
+ *
1218
+ * @since 1.0.0
1219
+ * @category Prompts
1220
+ */
1221
+ export declare class ResourceLink extends ResourceLink_base {
1222
+ }
1223
+ declare const ContentBlock_base: Schema.Union<[typeof TextContent, typeof ImageContent, typeof AudioContent, typeof EmbeddedResource, typeof ResourceLink]>;
1224
+ /**
1225
+ * @since 1.0.0
1226
+ * @category Prompts
1227
+ */
1228
+ export declare class ContentBlock extends ContentBlock_base {
1229
+ }
1230
+ declare const PromptMessage_base: Schema.Struct<{
1463
1231
  role: Schema.Literal<["user", "assistant"]>;
1464
- content: Schema.Union<[typeof TextContent, typeof ImageContent, typeof AudioContent, typeof EmbeddedResource]>;
1465
- }>, never, {
1466
- readonly role: "user" | "assistant";
1467
- } & {
1468
- readonly content: TextContent | ImageContent | AudioContent | EmbeddedResource;
1469
- }, {}, {}>;
1232
+ content: typeof ContentBlock;
1233
+ }>;
1470
1234
  /**
1471
1235
  * Describes a message returned as part of a prompt.
1472
1236
  *
@@ -1530,7 +1294,60 @@ declare const GetPromptResult_base: Schema.Class<GetPromptResult, {
1530
1294
  }>, never, {
1531
1295
  readonly description?: string | undefined;
1532
1296
  } & {
1533
- readonly messages: readonly PromptMessage[];
1297
+ readonly messages: readonly {
1298
+ readonly role: "user" | "assistant";
1299
+ readonly content: {
1300
+ readonly annotations?: {
1301
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1302
+ readonly priority?: number | undefined;
1303
+ } | undefined;
1304
+ readonly text: string;
1305
+ readonly type: "text";
1306
+ } | {
1307
+ readonly annotations?: {
1308
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1309
+ readonly priority?: number | undefined;
1310
+ } | undefined;
1311
+ readonly type: "image";
1312
+ readonly data: Uint8Array<ArrayBufferLike>;
1313
+ readonly mimeType: string;
1314
+ } | {
1315
+ readonly annotations?: {
1316
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1317
+ readonly priority?: number | undefined;
1318
+ } | undefined;
1319
+ readonly type: "audio";
1320
+ readonly data: Uint8Array<ArrayBufferLike>;
1321
+ readonly mimeType: string;
1322
+ } | {
1323
+ readonly annotations?: {
1324
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1325
+ readonly priority?: number | undefined;
1326
+ } | undefined;
1327
+ readonly type: "resource";
1328
+ readonly resource: {
1329
+ readonly text: string;
1330
+ readonly uri: string;
1331
+ readonly mimeType?: string | undefined;
1332
+ } | {
1333
+ readonly uri: string;
1334
+ readonly mimeType?: string | undefined;
1335
+ readonly blob: Uint8Array<ArrayBufferLike>;
1336
+ };
1337
+ } | {
1338
+ readonly description?: string | undefined;
1339
+ readonly annotations?: {
1340
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1341
+ readonly priority?: number | undefined;
1342
+ } | undefined;
1343
+ readonly name: string;
1344
+ readonly type: "resource_link";
1345
+ readonly title?: string | undefined;
1346
+ readonly uri: string;
1347
+ readonly mimeType?: string | undefined;
1348
+ readonly size?: number | undefined;
1349
+ };
1350
+ }[];
1534
1351
  } & {
1535
1352
  readonly _meta?: {
1536
1353
  readonly [x: string]: unknown;
@@ -1549,6 +1366,7 @@ declare const GetPrompt_base: Rpc.Rpc<"prompts/get", Schema.Struct<{
1549
1366
  * The name of the prompt or prompt template.
1550
1367
  */
1551
1368
  name: typeof Schema.String;
1369
+ title: Schema.optional<typeof Schema.String>;
1552
1370
  /**
1553
1371
  * Arguments to use for templating the prompt.
1554
1372
  */
@@ -1706,6 +1524,7 @@ declare const Tool_base: Schema.Class<Tool, {
1706
1524
  * The name of the tool.
1707
1525
  */
1708
1526
  name: typeof Schema.String;
1527
+ title: Schema.optional<typeof Schema.String>;
1709
1528
  /**
1710
1529
  * A human-readable description of the tool.
1711
1530
  *
@@ -1725,6 +1544,7 @@ declare const Tool_base: Schema.Class<Tool, {
1725
1544
  * The name of the tool.
1726
1545
  */
1727
1546
  name: typeof Schema.String;
1547
+ title: Schema.optional<typeof Schema.String>;
1728
1548
  /**
1729
1549
  * A human-readable description of the tool.
1730
1550
  *
@@ -1745,6 +1565,8 @@ declare const Tool_base: Schema.Class<Tool, {
1745
1565
  readonly annotations?: ToolAnnotations | undefined;
1746
1566
  } & {
1747
1567
  readonly name: string;
1568
+ } & {
1569
+ readonly title?: string | undefined;
1748
1570
  } & {
1749
1571
  readonly inputSchema: unknown;
1750
1572
  }, {}, {}>;
@@ -1791,7 +1613,8 @@ declare const ListTools_base: Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof Pa
1791
1613
  export declare class ListTools extends ListTools_base {
1792
1614
  }
1793
1615
  declare const CallToolResult_base: Schema.Class<CallToolResult, {
1794
- content: Schema.Array$<Schema.Union<[typeof TextContent, typeof ImageContent, typeof AudioContent, typeof EmbeddedResource]>>;
1616
+ content: Schema.Array$<typeof ContentBlock>;
1617
+ structuredContent: Schema.optional<typeof Schema.Unknown>;
1795
1618
  /**
1796
1619
  * Whether the tool call ended in an error.
1797
1620
  *
@@ -1800,7 +1623,8 @@ declare const CallToolResult_base: Schema.Class<CallToolResult, {
1800
1623
  isError: Schema.optional<typeof Schema.Boolean>;
1801
1624
  _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
1802
1625
  }, Schema.Struct.Encoded<{
1803
- content: Schema.Array$<Schema.Union<[typeof TextContent, typeof ImageContent, typeof AudioContent, typeof EmbeddedResource]>>;
1626
+ content: Schema.Array$<typeof ContentBlock>;
1627
+ structuredContent: Schema.optional<typeof Schema.Unknown>;
1804
1628
  /**
1805
1629
  * Whether the tool call ended in an error.
1806
1630
  *
@@ -1813,7 +1637,59 @@ declare const CallToolResult_base: Schema.Class<CallToolResult, {
1813
1637
  readonly [x: string]: unknown;
1814
1638
  } | undefined;
1815
1639
  } & {
1816
- readonly content: readonly (TextContent | ImageContent | AudioContent | EmbeddedResource)[];
1640
+ readonly content: readonly ({
1641
+ readonly annotations?: {
1642
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1643
+ readonly priority?: number | undefined;
1644
+ } | undefined;
1645
+ readonly text: string;
1646
+ readonly type: "text";
1647
+ } | {
1648
+ readonly annotations?: {
1649
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1650
+ readonly priority?: number | undefined;
1651
+ } | undefined;
1652
+ readonly type: "image";
1653
+ readonly data: Uint8Array<ArrayBufferLike>;
1654
+ readonly mimeType: string;
1655
+ } | {
1656
+ readonly annotations?: {
1657
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1658
+ readonly priority?: number | undefined;
1659
+ } | undefined;
1660
+ readonly type: "audio";
1661
+ readonly data: Uint8Array<ArrayBufferLike>;
1662
+ readonly mimeType: string;
1663
+ } | {
1664
+ readonly annotations?: {
1665
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1666
+ readonly priority?: number | undefined;
1667
+ } | undefined;
1668
+ readonly type: "resource";
1669
+ readonly resource: {
1670
+ readonly text: string;
1671
+ readonly uri: string;
1672
+ readonly mimeType?: string | undefined;
1673
+ } | {
1674
+ readonly uri: string;
1675
+ readonly mimeType?: string | undefined;
1676
+ readonly blob: Uint8Array<ArrayBufferLike>;
1677
+ };
1678
+ } | {
1679
+ readonly description?: string | undefined;
1680
+ readonly annotations?: {
1681
+ readonly audience?: readonly ("user" | "assistant")[] | undefined;
1682
+ readonly priority?: number | undefined;
1683
+ } | undefined;
1684
+ readonly name: string;
1685
+ readonly type: "resource_link";
1686
+ readonly title?: string | undefined;
1687
+ readonly uri: string;
1688
+ readonly mimeType?: string | undefined;
1689
+ readonly size?: number | undefined;
1690
+ })[];
1691
+ } & {
1692
+ readonly structuredContent?: unknown;
1817
1693
  } & {
1818
1694
  readonly isError?: boolean | undefined;
1819
1695
  }, {}, {}>;
@@ -1944,17 +1820,10 @@ declare const LoggingMessageNotification_base: Rpc.Rpc<"notifications/message",
1944
1820
  */
1945
1821
  export declare class LoggingMessageNotification extends LoggingMessageNotification_base {
1946
1822
  }
1947
- declare const SamplingMessage_base: Schema.Class<SamplingMessage, {
1948
- role: Schema.Literal<["user", "assistant"]>;
1949
- content: Schema.Union<[typeof TextContent, typeof ImageContent, typeof AudioContent]>;
1950
- }, Schema.Struct.Encoded<{
1823
+ declare const SamplingMessage_base: Schema.Struct<{
1951
1824
  role: Schema.Literal<["user", "assistant"]>;
1952
1825
  content: Schema.Union<[typeof TextContent, typeof ImageContent, typeof AudioContent]>;
1953
- }>, never, {
1954
- readonly role: "user" | "assistant";
1955
- } & {
1956
- readonly content: TextContent | ImageContent | AudioContent;
1957
- }, {}, {}>;
1826
+ }>;
1958
1827
  /**
1959
1828
  * Describes a message issued to or received from an LLM API.
1960
1829
  *
@@ -1963,21 +1832,7 @@ declare const SamplingMessage_base: Schema.Class<SamplingMessage, {
1963
1832
  */
1964
1833
  export declare class SamplingMessage extends SamplingMessage_base {
1965
1834
  }
1966
- declare const ModelHint_base: Schema.Class<ModelHint, {
1967
- /**
1968
- * A hint for a model name.
1969
- *
1970
- * The client SHOULD treat this as a substring of a model name; for example:
1971
- * - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`
1972
- * - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.
1973
- * - `claude` should match any Claude model
1974
- *
1975
- * The client MAY also map the string to a different provider's model name or
1976
- * a different model family, as long as it fills a similar niche; for example:
1977
- * - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
1978
- */
1979
- name: Schema.optional<typeof Schema.String>;
1980
- }, Schema.Struct.Encoded<{
1835
+ declare const ModelHint_base: Schema.Struct<{
1981
1836
  /**
1982
1837
  * A hint for a model name.
1983
1838
  *
@@ -1991,9 +1846,7 @@ declare const ModelHint_base: Schema.Class<ModelHint, {
1991
1846
  * - `gemini-1.5-flash` could match `claude-3-haiku-20240307`
1992
1847
  */
1993
1848
  name: Schema.optional<typeof Schema.String>;
1994
- }>, never, {
1995
- readonly name?: string | undefined;
1996
- }, {}, {}>;
1849
+ }>;
1997
1850
  /**
1998
1851
  * Hints to use for model selection.
1999
1852
  *
@@ -2064,7 +1917,9 @@ declare const ModelPreferences_base: Schema.Class<ModelPreferences, {
2064
1917
  */
2065
1918
  intelligencePriority: Schema.optional<Schema.filter<typeof Schema.Number>>;
2066
1919
  }>, never, {
2067
- readonly hints?: readonly ModelHint[] | undefined;
1920
+ readonly hints?: readonly {
1921
+ readonly name?: string | undefined;
1922
+ }[] | undefined;
2068
1923
  } & {
2069
1924
  readonly costPriority?: number | undefined;
2070
1925
  } & {
@@ -2165,23 +2020,13 @@ declare const CreateMessage_base: Rpc.Rpc<"sampling/createMessage", Schema.Struc
2165
2020
  */
2166
2021
  export declare class CreateMessage extends CreateMessage_base {
2167
2022
  }
2168
- declare const ResourceReference_base: Schema.Class<ResourceReference, {
2169
- type: Schema.tag<"ref/resource">;
2170
- /**
2171
- * The URI or URI template of the resource.
2172
- */
2173
- uri: typeof Schema.String;
2174
- }, Schema.Struct.Encoded<{
2023
+ declare const ResourceReference_base: Schema.Struct<{
2175
2024
  type: Schema.tag<"ref/resource">;
2176
2025
  /**
2177
2026
  * The URI or URI template of the resource.
2178
2027
  */
2179
2028
  uri: typeof Schema.String;
2180
- }>, never, {
2181
- readonly type?: "ref/resource" | undefined;
2182
- } & {
2183
- readonly uri: string;
2184
- }, {}, {}>;
2029
+ }>;
2185
2030
  /**
2186
2031
  * A reference to a resource or resource template definition.
2187
2032
  *
@@ -2190,23 +2035,14 @@ declare const ResourceReference_base: Schema.Class<ResourceReference, {
2190
2035
  */
2191
2036
  export declare class ResourceReference extends ResourceReference_base {
2192
2037
  }
2193
- declare const PromptReference_base: Schema.Class<PromptReference, {
2194
- type: Schema.tag<"ref/prompt">;
2195
- /**
2196
- * The name of the prompt or prompt template
2197
- */
2198
- name: typeof Schema.String;
2199
- }, Schema.Struct.Encoded<{
2038
+ declare const PromptReference_base: Schema.Struct<{
2200
2039
  type: Schema.tag<"ref/prompt">;
2201
2040
  /**
2202
2041
  * The name of the prompt or prompt template
2203
2042
  */
2204
2043
  name: typeof Schema.String;
2205
- }>, never, {
2206
- readonly name: string;
2207
- } & {
2208
- readonly type?: "ref/prompt" | undefined;
2209
- }, {}, {}>;
2044
+ title: Schema.optional<typeof Schema.String>;
2045
+ }>;
2210
2046
  /**
2211
2047
  * Identifies a prompt.
2212
2048
  *
@@ -2283,6 +2119,21 @@ declare const Complete_base: Rpc.Rpc<"completion/complete", Schema.Struct<{
2283
2119
  */
2284
2120
  value: typeof Schema.String;
2285
2121
  }>;
2122
+ /**
2123
+ * Additional, optional context for completions
2124
+ */
2125
+ context: Schema.optionalWith<Schema.Struct<{
2126
+ /**
2127
+ * Previously-resolved variables in a URI template or prompt.
2128
+ */
2129
+ arguments: Schema.optionalWith<Schema.Record$<typeof Schema.String, typeof Schema.String>, {
2130
+ default: () => {};
2131
+ }>;
2132
+ }>, {
2133
+ default: () => {
2134
+ arguments: {};
2135
+ };
2136
+ }>;
2286
2137
  }>, typeof CompleteResult, typeof McpError, never>;
2287
2138
  /**
2288
2139
  * A request from the client to the server, to ask for completion options.
@@ -2377,6 +2228,151 @@ declare const RootsListChangedNotification_base: Rpc.Rpc<"notifications/roots/li
2377
2228
  */
2378
2229
  export declare class RootsListChangedNotification extends RootsListChangedNotification_base {
2379
2230
  }
2231
+ declare const ElicitAcceptResult_base: Schema.Class<ElicitAcceptResult, {
2232
+ /**
2233
+ * The user action in response to the elicitation.
2234
+ * - "accept": User submitted the form/confirmed the action
2235
+ * - "decline": User explicitly declined the action
2236
+ * - "cancel": User dismissed without making an explicit choice
2237
+ */
2238
+ action: Schema.Literal<["accept"]>;
2239
+ /**
2240
+ * The submitted form data, only present when action is "accept".
2241
+ * Contains values matching the requested schema.
2242
+ */
2243
+ content: typeof Schema.Unknown;
2244
+ _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2245
+ }, Schema.Struct.Encoded<{
2246
+ /**
2247
+ * The user action in response to the elicitation.
2248
+ * - "accept": User submitted the form/confirmed the action
2249
+ * - "decline": User explicitly declined the action
2250
+ * - "cancel": User dismissed without making an explicit choice
2251
+ */
2252
+ action: Schema.Literal<["accept"]>;
2253
+ /**
2254
+ * The submitted form data, only present when action is "accept".
2255
+ * Contains values matching the requested schema.
2256
+ */
2257
+ content: typeof Schema.Unknown;
2258
+ _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2259
+ }>, never, {
2260
+ readonly _meta?: {
2261
+ readonly [x: string]: unknown;
2262
+ } | undefined;
2263
+ } & {
2264
+ readonly content: unknown;
2265
+ } & {
2266
+ readonly action: "accept";
2267
+ }, {}, {}>;
2268
+ /**
2269
+ * The client's response to an elicitation request
2270
+ *
2271
+ * @since 1.0.0
2272
+ * @category Elicitation
2273
+ */
2274
+ export declare class ElicitAcceptResult extends ElicitAcceptResult_base {
2275
+ }
2276
+ declare const ElicitDeclineResult_base: Schema.Class<ElicitDeclineResult, {
2277
+ /**
2278
+ * The user action in response to the elicitation.
2279
+ * - "accept": User submitted the form/confirmed the action
2280
+ * - "decline": User explicitly declined the action
2281
+ * - "cancel": User dismissed without making an explicit choice
2282
+ */
2283
+ action: Schema.Literal<["cancel", "decline"]>;
2284
+ _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2285
+ }, Schema.Struct.Encoded<{
2286
+ /**
2287
+ * The user action in response to the elicitation.
2288
+ * - "accept": User submitted the form/confirmed the action
2289
+ * - "decline": User explicitly declined the action
2290
+ * - "cancel": User dismissed without making an explicit choice
2291
+ */
2292
+ action: Schema.Literal<["cancel", "decline"]>;
2293
+ _meta: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2294
+ }>, never, {
2295
+ readonly _meta?: {
2296
+ readonly [x: string]: unknown;
2297
+ } | undefined;
2298
+ } & {
2299
+ readonly action: "cancel" | "decline";
2300
+ }, {}, {}>;
2301
+ /**
2302
+ * The client's response to an elicitation request
2303
+ *
2304
+ * @since 1.0.0
2305
+ * @category Elicitation
2306
+ */
2307
+ export declare class ElicitDeclineResult extends ElicitDeclineResult_base {
2308
+ }
2309
+ /**
2310
+ * The client's response to an elicitation request
2311
+ *
2312
+ * @since 1.0.0
2313
+ * @category Elicitation
2314
+ */
2315
+ export declare const ElicitResult: Schema.Union<[typeof ElicitAcceptResult, typeof ElicitDeclineResult]>;
2316
+ declare const Elicit_base: Rpc.Rpc<"elicitation/create", Schema.Struct<{
2317
+ /**
2318
+ * A message to display to the user, explaining what they are being
2319
+ * elicited for.
2320
+ */
2321
+ message: typeof Schema.String;
2322
+ /**
2323
+ * A restricted subset of JSON Schema.
2324
+ * Only top-level properties are allowed, without nesting.
2325
+ */
2326
+ requestedSchema: typeof Schema.Unknown;
2327
+ }>, Schema.Union<[typeof ElicitAcceptResult, typeof ElicitDeclineResult]>, typeof McpError, never>;
2328
+ /**
2329
+ * @since 1.0.0
2330
+ * @category Elicitation
2331
+ */
2332
+ export declare class Elicit extends Elicit_base {
2333
+ }
2334
+ declare const ElicitationDeclined_base: Schema.TaggedErrorClass<ElicitationDeclined, "ElicitationDeclined", {
2335
+ readonly _tag: Schema.tag<"ElicitationDeclined">;
2336
+ } & {
2337
+ request: Schema.Struct<{
2338
+ /**
2339
+ * A message to display to the user, explaining what they are being
2340
+ * elicited for.
2341
+ */
2342
+ message: typeof Schema.String;
2343
+ /**
2344
+ * A restricted subset of JSON Schema.
2345
+ * Only top-level properties are allowed, without nesting.
2346
+ */
2347
+ requestedSchema: typeof Schema.Unknown;
2348
+ }>;
2349
+ cause: Schema.optional<typeof Schema.Defect>;
2350
+ }>;
2351
+ /**
2352
+ * @since 1.0.0
2353
+ * @category Elicitation
2354
+ */
2355
+ export declare class ElicitationDeclined extends ElicitationDeclined_base {
2356
+ }
2357
+ declare const McpServerClient_base: Context.TagClass<McpServerClient, "@effect/ai/McpSchema/McpServerClient", {
2358
+ readonly clientId: number;
2359
+ readonly getClient: Effect.Effect<RpcClient.RpcClient<RpcGroup.Rpcs<typeof ServerRequestRpcs>>, never, Scope.Scope>;
2360
+ }>;
2361
+ /**
2362
+ * @since 1.0.0
2363
+ * @category McpServerClient
2364
+ */
2365
+ export declare class McpServerClient extends McpServerClient_base {
2366
+ }
2367
+ declare const McpServerClientMiddleware_base: RpcMiddleware.TagClass<McpServerClientMiddleware, "@effect/ai/McpSchema/McpServerClientMiddleware", {
2368
+ readonly provides: typeof McpServerClient;
2369
+ }>;
2370
+ /**
2371
+ * @since 1.0.0
2372
+ * @category McpServerClient
2373
+ */
2374
+ export declare class McpServerClientMiddleware extends McpServerClientMiddleware_base {
2375
+ }
2380
2376
  /**
2381
2377
  * @since 1.0.0
2382
2378
  * @category Protocol
@@ -2414,17 +2410,171 @@ export type FailureEncoded<Group extends RpcGroup.Any> = RpcGroup.Rpcs<Group> ex
2414
2410
  readonly id: string | number;
2415
2411
  readonly error: _Error["Encoded"];
2416
2412
  } : never : never;
2417
- declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<typeof Ping | typeof Initialize | typeof ListResources | typeof ListResourceTemplates | typeof ReadResource | typeof Subscribe | typeof Unsubscribe | typeof ListPrompts | typeof GetPrompt | typeof ListTools | typeof CallTool | typeof SetLevel | typeof Complete>;
2418
- /**
2419
- * @since 1.0.0
2420
- * @category Protocol
2421
- */
2422
- export declare class ClientRequestRpcs extends ClientRequestRpcs_base {
2423
- }
2424
- /**
2425
- * @since 1.0.0
2426
- * @category Protocol
2427
- */
2413
+ declare const ClientRequestRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"ping", Schema.UndefinedOr<typeof RequestMeta>, Schema.Struct<{}>, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"initialize", Schema.Struct<{
2414
+ /**
2415
+ * The latest version of the Model Context Protocol that the client
2416
+ * supports. The client MAY decide to support older versions as well.
2417
+ */
2418
+ protocolVersion: typeof Schema.String;
2419
+ /**
2420
+ * Capabilities a client may support. Known capabilities are defined here,
2421
+ * in this schema, but this is not a closed set: any client can define its
2422
+ * own, additional capabilities.
2423
+ */
2424
+ capabilities: typeof ClientCapabilities;
2425
+ /**
2426
+ * Describes the name and version of an MCP implementation.
2427
+ */
2428
+ clientInfo: typeof Implementation;
2429
+ _meta: Schema.optional<Schema.Struct<{
2430
+ /**
2431
+ * If specified, the caller is requesting out-of-band progress notifications
2432
+ * for this request (as represented by notifications/progress). The value of
2433
+ * this parameter is an opaque token that will be attached to any subsequent
2434
+ * notifications. The receiver is not obligated to provide these
2435
+ * notifications.
2436
+ */
2437
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2438
+ }>>;
2439
+ }>, typeof InitializeResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourcesResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/templates/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourceTemplatesResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/read", Schema.Struct<{
2440
+ /**
2441
+ * The URI of the resource to read. The URI can use any protocol; it is up
2442
+ * to the server how to interpret it.
2443
+ */
2444
+ uri: typeof Schema.String;
2445
+ _meta: Schema.optional<Schema.Struct<{
2446
+ /**
2447
+ * If specified, the caller is requesting out-of-band progress notifications
2448
+ * for this request (as represented by notifications/progress). The value of
2449
+ * this parameter is an opaque token that will be attached to any subsequent
2450
+ * notifications. The receiver is not obligated to provide these
2451
+ * notifications.
2452
+ */
2453
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2454
+ }>>;
2455
+ }>, typeof ReadResourceResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/subscribe", Schema.Struct<{
2456
+ /**
2457
+ * The URI of the resource to subscribe to. The URI can use any protocol;
2458
+ * it is up to the server how to interpret it.
2459
+ */
2460
+ uri: typeof Schema.String;
2461
+ _meta: Schema.optional<Schema.Struct<{
2462
+ /**
2463
+ * If specified, the caller is requesting out-of-band progress notifications
2464
+ * for this request (as represented by notifications/progress). The value of
2465
+ * this parameter is an opaque token that will be attached to any subsequent
2466
+ * notifications. The receiver is not obligated to provide these
2467
+ * notifications.
2468
+ */
2469
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2470
+ }>>;
2471
+ }>, typeof Schema.Void, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
2472
+ /**
2473
+ * The URI of the resource to subscribe to. The URI can use any protocol;
2474
+ * it is up to the server how to interpret it.
2475
+ */
2476
+ uri: typeof Schema.String;
2477
+ _meta: Schema.optional<Schema.Struct<{
2478
+ /**
2479
+ * If specified, the caller is requesting out-of-band progress notifications
2480
+ * for this request (as represented by notifications/progress). The value of
2481
+ * this parameter is an opaque token that will be attached to any subsequent
2482
+ * notifications. The receiver is not obligated to provide these
2483
+ * notifications.
2484
+ */
2485
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2486
+ }>>;
2487
+ }>, typeof Schema.Void, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"prompts/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListPromptsResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"prompts/get", Schema.Struct<{
2488
+ /**
2489
+ * The name of the prompt or prompt template.
2490
+ */
2491
+ name: typeof Schema.String;
2492
+ title: Schema.optional<typeof Schema.String>;
2493
+ /**
2494
+ * Arguments to use for templating the prompt.
2495
+ */
2496
+ arguments: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
2497
+ _meta: Schema.optional<Schema.Struct<{
2498
+ /**
2499
+ * If specified, the caller is requesting out-of-band progress notifications
2500
+ * for this request (as represented by notifications/progress). The value of
2501
+ * this parameter is an opaque token that will be attached to any subsequent
2502
+ * notifications. The receiver is not obligated to provide these
2503
+ * notifications.
2504
+ */
2505
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2506
+ }>>;
2507
+ }>, typeof GetPromptResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListToolsResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"tools/call", Schema.Struct<{
2508
+ name: typeof Schema.String;
2509
+ arguments: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
2510
+ _meta: Schema.optional<Schema.Struct<{
2511
+ /**
2512
+ * If specified, the caller is requesting out-of-band progress notifications
2513
+ * for this request (as represented by notifications/progress). The value of
2514
+ * this parameter is an opaque token that will be attached to any subsequent
2515
+ * notifications. The receiver is not obligated to provide these
2516
+ * notifications.
2517
+ */
2518
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2519
+ }>>;
2520
+ }>, typeof CallToolResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"logging/setLevel", Schema.Struct<{
2521
+ /**
2522
+ * The level of logging that the client wants to receive from the server.
2523
+ * The server should send all logs at this level and higher (i.e., more
2524
+ * severe) to the client as notifications/message.
2525
+ */
2526
+ level: Schema.Literal<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
2527
+ _meta: Schema.optional<Schema.Struct<{
2528
+ /**
2529
+ * If specified, the caller is requesting out-of-band progress notifications
2530
+ * for this request (as represented by notifications/progress). The value of
2531
+ * this parameter is an opaque token that will be attached to any subsequent
2532
+ * notifications. The receiver is not obligated to provide these
2533
+ * notifications.
2534
+ */
2535
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2536
+ }>>;
2537
+ }>, typeof Schema.Void, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"completion/complete", Schema.Struct<{
2538
+ ref: Schema.Union<[typeof PromptReference, typeof ResourceReference]>;
2539
+ /**
2540
+ * The argument's information
2541
+ */
2542
+ argument: Schema.Struct<{
2543
+ /**
2544
+ * The name of the argument
2545
+ */
2546
+ name: typeof Schema.String;
2547
+ /**
2548
+ * The value of the argument to use for completion matching.
2549
+ */
2550
+ value: typeof Schema.String;
2551
+ }>;
2552
+ /**
2553
+ * Additional, optional context for completions
2554
+ */
2555
+ context: Schema.optionalWith<Schema.Struct<{
2556
+ /**
2557
+ * Previously-resolved variables in a URI template or prompt.
2558
+ */
2559
+ arguments: Schema.optionalWith<Schema.Record$<typeof Schema.String, typeof Schema.String>, {
2560
+ default: () => {};
2561
+ }>;
2562
+ }>, {
2563
+ default: () => {
2564
+ arguments: {};
2565
+ };
2566
+ }>;
2567
+ }>, typeof CompleteResult, typeof McpError, typeof McpServerClientMiddleware>>;
2568
+ /**
2569
+ * @since 1.0.0
2570
+ * @category Protocol
2571
+ */
2572
+ export declare class ClientRequestRpcs extends ClientRequestRpcs_base {
2573
+ }
2574
+ /**
2575
+ * @since 1.0.0
2576
+ * @category Protocol
2577
+ */
2428
2578
  export type ClientRequestEncoded = RequestEncoded<typeof ClientRequestRpcs>;
2429
2579
  declare const ClientNotificationRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification | typeof CancelledNotification | typeof ProgressNotification | typeof RootsListChangedNotification>;
2430
2580
  /**
@@ -2438,7 +2588,161 @@ export declare class ClientNotificationRpcs extends ClientNotificationRpcs_base
2438
2588
  * @category Protocol
2439
2589
  */
2440
2590
  export type ClientNotificationEncoded = NotificationEncoded<typeof ClientNotificationRpcs>;
2441
- declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof Ping | typeof Initialize | typeof InitializedNotification | typeof CancelledNotification | typeof ProgressNotification | typeof ListResources | typeof ListResourceTemplates | typeof ReadResource | typeof Subscribe | typeof Unsubscribe | typeof ListPrompts | typeof GetPrompt | typeof ListTools | typeof CallTool | typeof SetLevel | typeof Complete | typeof RootsListChangedNotification>;
2591
+ declare const ClientRpcs_base: RpcGroup.RpcGroup<typeof InitializedNotification | typeof CancelledNotification | typeof ProgressNotification | typeof RootsListChangedNotification | Rpc.Rpc<"ping", Schema.UndefinedOr<typeof RequestMeta>, Schema.Struct<{}>, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"initialize", Schema.Struct<{
2592
+ /**
2593
+ * The latest version of the Model Context Protocol that the client
2594
+ * supports. The client MAY decide to support older versions as well.
2595
+ */
2596
+ protocolVersion: typeof Schema.String;
2597
+ /**
2598
+ * Capabilities a client may support. Known capabilities are defined here,
2599
+ * in this schema, but this is not a closed set: any client can define its
2600
+ * own, additional capabilities.
2601
+ */
2602
+ capabilities: typeof ClientCapabilities;
2603
+ /**
2604
+ * Describes the name and version of an MCP implementation.
2605
+ */
2606
+ clientInfo: typeof Implementation;
2607
+ _meta: Schema.optional<Schema.Struct<{
2608
+ /**
2609
+ * If specified, the caller is requesting out-of-band progress notifications
2610
+ * for this request (as represented by notifications/progress). The value of
2611
+ * this parameter is an opaque token that will be attached to any subsequent
2612
+ * notifications. The receiver is not obligated to provide these
2613
+ * notifications.
2614
+ */
2615
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2616
+ }>>;
2617
+ }>, typeof InitializeResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourcesResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/templates/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListResourceTemplatesResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/read", Schema.Struct<{
2618
+ /**
2619
+ * The URI of the resource to read. The URI can use any protocol; it is up
2620
+ * to the server how to interpret it.
2621
+ */
2622
+ uri: typeof Schema.String;
2623
+ _meta: Schema.optional<Schema.Struct<{
2624
+ /**
2625
+ * If specified, the caller is requesting out-of-band progress notifications
2626
+ * for this request (as represented by notifications/progress). The value of
2627
+ * this parameter is an opaque token that will be attached to any subsequent
2628
+ * notifications. The receiver is not obligated to provide these
2629
+ * notifications.
2630
+ */
2631
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2632
+ }>>;
2633
+ }>, typeof ReadResourceResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/subscribe", Schema.Struct<{
2634
+ /**
2635
+ * The URI of the resource to subscribe to. The URI can use any protocol;
2636
+ * it is up to the server how to interpret it.
2637
+ */
2638
+ uri: typeof Schema.String;
2639
+ _meta: Schema.optional<Schema.Struct<{
2640
+ /**
2641
+ * If specified, the caller is requesting out-of-band progress notifications
2642
+ * for this request (as represented by notifications/progress). The value of
2643
+ * this parameter is an opaque token that will be attached to any subsequent
2644
+ * notifications. The receiver is not obligated to provide these
2645
+ * notifications.
2646
+ */
2647
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2648
+ }>>;
2649
+ }>, typeof Schema.Void, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"resources/unsubscribe", Schema.Struct<{
2650
+ /**
2651
+ * The URI of the resource to subscribe to. The URI can use any protocol;
2652
+ * it is up to the server how to interpret it.
2653
+ */
2654
+ uri: typeof Schema.String;
2655
+ _meta: Schema.optional<Schema.Struct<{
2656
+ /**
2657
+ * If specified, the caller is requesting out-of-band progress notifications
2658
+ * for this request (as represented by notifications/progress). The value of
2659
+ * this parameter is an opaque token that will be attached to any subsequent
2660
+ * notifications. The receiver is not obligated to provide these
2661
+ * notifications.
2662
+ */
2663
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2664
+ }>>;
2665
+ }>, typeof Schema.Void, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"prompts/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListPromptsResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"prompts/get", Schema.Struct<{
2666
+ /**
2667
+ * The name of the prompt or prompt template.
2668
+ */
2669
+ name: typeof Schema.String;
2670
+ title: Schema.optional<typeof Schema.String>;
2671
+ /**
2672
+ * Arguments to use for templating the prompt.
2673
+ */
2674
+ arguments: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
2675
+ _meta: Schema.optional<Schema.Struct<{
2676
+ /**
2677
+ * If specified, the caller is requesting out-of-band progress notifications
2678
+ * for this request (as represented by notifications/progress). The value of
2679
+ * this parameter is an opaque token that will be attached to any subsequent
2680
+ * notifications. The receiver is not obligated to provide these
2681
+ * notifications.
2682
+ */
2683
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2684
+ }>>;
2685
+ }>, typeof GetPromptResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"tools/list", Schema.UndefinedOr<typeof PaginatedRequestMeta>, typeof ListToolsResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"tools/call", Schema.Struct<{
2686
+ name: typeof Schema.String;
2687
+ arguments: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
2688
+ _meta: Schema.optional<Schema.Struct<{
2689
+ /**
2690
+ * If specified, the caller is requesting out-of-band progress notifications
2691
+ * for this request (as represented by notifications/progress). The value of
2692
+ * this parameter is an opaque token that will be attached to any subsequent
2693
+ * notifications. The receiver is not obligated to provide these
2694
+ * notifications.
2695
+ */
2696
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2697
+ }>>;
2698
+ }>, typeof CallToolResult, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"logging/setLevel", Schema.Struct<{
2699
+ /**
2700
+ * The level of logging that the client wants to receive from the server.
2701
+ * The server should send all logs at this level and higher (i.e., more
2702
+ * severe) to the client as notifications/message.
2703
+ */
2704
+ level: Schema.Literal<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]>;
2705
+ _meta: Schema.optional<Schema.Struct<{
2706
+ /**
2707
+ * If specified, the caller is requesting out-of-band progress notifications
2708
+ * for this request (as represented by notifications/progress). The value of
2709
+ * this parameter is an opaque token that will be attached to any subsequent
2710
+ * notifications. The receiver is not obligated to provide these
2711
+ * notifications.
2712
+ */
2713
+ progressToken: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2714
+ }>>;
2715
+ }>, typeof Schema.Void, typeof McpError, typeof McpServerClientMiddleware> | Rpc.Rpc<"completion/complete", Schema.Struct<{
2716
+ ref: Schema.Union<[typeof PromptReference, typeof ResourceReference]>;
2717
+ /**
2718
+ * The argument's information
2719
+ */
2720
+ argument: Schema.Struct<{
2721
+ /**
2722
+ * The name of the argument
2723
+ */
2724
+ name: typeof Schema.String;
2725
+ /**
2726
+ * The value of the argument to use for completion matching.
2727
+ */
2728
+ value: typeof Schema.String;
2729
+ }>;
2730
+ /**
2731
+ * Additional, optional context for completions
2732
+ */
2733
+ context: Schema.optionalWith<Schema.Struct<{
2734
+ /**
2735
+ * Previously-resolved variables in a URI template or prompt.
2736
+ */
2737
+ arguments: Schema.optionalWith<Schema.Record$<typeof Schema.String, typeof Schema.String>, {
2738
+ default: () => {};
2739
+ }>;
2740
+ }>, {
2741
+ default: () => {
2742
+ arguments: {};
2743
+ };
2744
+ }>;
2745
+ }>, typeof CompleteResult, typeof McpError, typeof McpServerClientMiddleware>>;
2442
2746
  /**
2443
2747
  * @since 1.0.0
2444
2748
  * @category Protocol
@@ -2455,7 +2759,7 @@ export type ClientSuccessEncoded = SuccessEncoded<typeof ServerRequestRpcs>;
2455
2759
  * @category Protocol
2456
2760
  */
2457
2761
  export type ClientFailureEncoded = FailureEncoded<typeof ServerRequestRpcs>;
2458
- declare const ServerRequestRpcs_base: RpcGroup.RpcGroup<typeof Ping | typeof CreateMessage | typeof ListRoots>;
2762
+ declare const ServerRequestRpcs_base: RpcGroup.RpcGroup<typeof Ping | typeof CreateMessage | typeof ListRoots | typeof Elicit>;
2459
2763
  /**
2460
2764
  * @since 1.0.0
2461
2765
  * @category Protocol