@ai-sdk/mcp 1.0.0-beta.3 → 1.0.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,207 @@
1
1
  # @ai-sdk/mcp
2
2
 
3
+ ## 1.0.0-beta.30
4
+
5
+ ### Patch Changes
6
+
7
+ - 6f1577e: fix(mcp): pass json header for refreshAuth
8
+
9
+ ## 1.0.0-beta.29
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [53f3368]
14
+ - @ai-sdk/provider@3.0.0-beta.25
15
+ - @ai-sdk/provider-utils@4.0.0-beta.44
16
+
17
+ ## 1.0.0-beta.28
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [dce03c4]
22
+ - @ai-sdk/provider-utils@4.0.0-beta.43
23
+ - @ai-sdk/provider@3.0.0-beta.24
24
+
25
+ ## 1.0.0-beta.27
26
+
27
+ ### Patch Changes
28
+
29
+ - 3ed5519: chore: rename ToolCallOptions to ToolExecutionOptions
30
+ - Updated dependencies [3ed5519]
31
+ - @ai-sdk/provider-utils@4.0.0-beta.42
32
+
33
+ ## 1.0.0-beta.26
34
+
35
+ ### Patch Changes
36
+
37
+ - 17c04d4: feat(mcp): expose `_meta` field from MCP tool definitions
38
+
39
+ ## 1.0.0-beta.25
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [1bd7d32]
44
+ - @ai-sdk/provider-utils@4.0.0-beta.41
45
+ - @ai-sdk/provider@3.0.0-beta.23
46
+
47
+ ## 1.0.0-beta.24
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [544d4e8]
52
+ - @ai-sdk/provider-utils@4.0.0-beta.40
53
+ - @ai-sdk/provider@3.0.0-beta.22
54
+
55
+ ## 1.0.0-beta.23
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [954c356]
60
+ - @ai-sdk/provider-utils@4.0.0-beta.39
61
+ - @ai-sdk/provider@3.0.0-beta.21
62
+
63
+ ## 1.0.0-beta.22
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [03849b0]
68
+ - @ai-sdk/provider-utils@4.0.0-beta.38
69
+
70
+ ## 1.0.0-beta.21
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [457318b]
75
+ - @ai-sdk/provider@3.0.0-beta.20
76
+ - @ai-sdk/provider-utils@4.0.0-beta.37
77
+
78
+ ## 1.0.0-beta.20
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [8d9e8ad]
83
+ - @ai-sdk/provider@3.0.0-beta.19
84
+ - @ai-sdk/provider-utils@4.0.0-beta.36
85
+
86
+ ## 1.0.0-beta.19
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [10d819b]
91
+ - @ai-sdk/provider@3.0.0-beta.18
92
+ - @ai-sdk/provider-utils@4.0.0-beta.35
93
+
94
+ ## 1.0.0-beta.18
95
+
96
+ ### Patch Changes
97
+
98
+ - ba2ca2d: feat(mcp): add the possibility to define client version in mcp client definition
99
+
100
+ ## 1.0.0-beta.17
101
+
102
+ ### Patch Changes
103
+
104
+ - f702df2: feat(mcp): add client elicitation support
105
+
106
+ ## 1.0.0-beta.16
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [db913bd]
111
+ - @ai-sdk/provider@3.0.0-beta.17
112
+ - @ai-sdk/provider-utils@4.0.0-beta.34
113
+
114
+ ## 1.0.0-beta.15
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [b681d7d]
119
+ - @ai-sdk/provider@3.0.0-beta.16
120
+ - @ai-sdk/provider-utils@4.0.0-beta.33
121
+
122
+ ## 1.0.0-beta.14
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [32d8dbb]
127
+ - @ai-sdk/provider-utils@4.0.0-beta.32
128
+
129
+ ## 1.0.0-beta.13
130
+
131
+ ### Patch Changes
132
+
133
+ - 1cff766: feat(packages/mcp): add support for MCP server prompts exposed
134
+
135
+ ## 1.0.0-beta.12
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies [bb36798]
140
+ - @ai-sdk/provider@3.0.0-beta.15
141
+ - @ai-sdk/provider-utils@4.0.0-beta.31
142
+
143
+ ## 1.0.0-beta.11
144
+
145
+ ### Patch Changes
146
+
147
+ - Updated dependencies [4f16c37]
148
+ - @ai-sdk/provider-utils@4.0.0-beta.30
149
+
150
+ ## 1.0.0-beta.10
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies [af3780b]
155
+ - @ai-sdk/provider@3.0.0-beta.14
156
+ - @ai-sdk/provider-utils@4.0.0-beta.29
157
+
158
+ ## 1.0.0-beta.9
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [016b111]
163
+ - @ai-sdk/provider-utils@4.0.0-beta.28
164
+
165
+ ## 1.0.0-beta.8
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies [37c58a0]
170
+ - @ai-sdk/provider@3.0.0-beta.13
171
+ - @ai-sdk/provider-utils@4.0.0-beta.27
172
+
173
+ ## 1.0.0-beta.7
174
+
175
+ ### Patch Changes
176
+
177
+ - Updated dependencies [d1bdadb]
178
+ - @ai-sdk/provider@3.0.0-beta.12
179
+ - @ai-sdk/provider-utils@4.0.0-beta.26
180
+
181
+ ## 1.0.0-beta.6
182
+
183
+ ### Patch Changes
184
+
185
+ - Updated dependencies [4c44a5b]
186
+ - @ai-sdk/provider@3.0.0-beta.11
187
+ - @ai-sdk/provider-utils@4.0.0-beta.25
188
+
189
+ ## 1.0.0-beta.5
190
+
191
+ ### Patch Changes
192
+
193
+ - Updated dependencies [0c3b58b]
194
+ - @ai-sdk/provider@3.0.0-beta.10
195
+ - @ai-sdk/provider-utils@4.0.0-beta.24
196
+
197
+ ## 1.0.0-beta.4
198
+
199
+ ### Patch Changes
200
+
201
+ - Updated dependencies [a755db5]
202
+ - @ai-sdk/provider@3.0.0-beta.9
203
+ - @ai-sdk/provider-utils@4.0.0-beta.23
204
+
3
205
  ## 1.0.0-beta.3
4
206
 
5
207
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -242,18 +242,23 @@ type MCPTransportConfig = {
242
242
  authProvider?: OAuthClientProvider;
243
243
  };
244
244
 
245
+ /** MCP tool metadata - keys should follow MCP _meta key format specification */
246
+ declare const ToolMetaSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
247
+ type ToolMeta = z.infer<typeof ToolMetaSchema>;
245
248
  type ToolSchemas = Record<string, {
246
249
  inputSchema: FlexibleSchema<JSONObject | unknown>;
247
250
  }> | 'automatic' | undefined;
251
+ /** Base MCP tool type with execute and _meta */
252
+ type McpToolBase<INPUT = unknown> = Tool<INPUT, CallToolResult> & Required<Pick<Tool<INPUT, CallToolResult>, 'execute'>> & {
253
+ _meta?: ToolMeta;
254
+ };
248
255
  type McpToolSet<TOOL_SCHEMAS extends ToolSchemas = 'automatic'> = TOOL_SCHEMAS extends Record<string, {
249
256
  inputSchema: FlexibleSchema<any>;
250
257
  }> ? {
251
258
  [K in keyof TOOL_SCHEMAS]: TOOL_SCHEMAS[K] extends {
252
259
  inputSchema: FlexibleSchema<infer INPUT>;
253
- } ? Tool<INPUT, CallToolResult> & Required<Pick<Tool<INPUT, CallToolResult>, 'execute'>> : never;
254
- } : McpToolSet<Record<string, {
255
- inputSchema: FlexibleSchema<unknown>;
256
- }>>;
260
+ } ? McpToolBase<INPUT> : never;
261
+ } : Record<string, McpToolBase<unknown>>;
257
262
  declare const BaseParamsSchema: z.ZodObject<{
258
263
  _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
259
264
  }, z.core.$loose>;
@@ -270,6 +275,12 @@ type RequestOptions = {
270
275
  timeout?: number;
271
276
  maxTotalTimeout?: number;
272
277
  };
278
+ declare const ClientCapabilitiesSchema: z.ZodObject<{
279
+ elicitation: z.ZodOptional<z.ZodObject<{
280
+ applyDefaults: z.ZodOptional<z.ZodBoolean>;
281
+ }, z.core.$loose>>;
282
+ }, z.core.$loose>;
283
+ type ClientCapabilities = z.infer<typeof ClientCapabilitiesSchema>;
273
284
  type PaginatedRequest = Request & {
274
285
  params?: BaseParams & {
275
286
  cursor?: string;
@@ -347,6 +358,67 @@ declare const ReadResourceResultSchema: z.ZodObject<{
347
358
  }, z.core.$loose>]>>;
348
359
  }, z.core.$loose>;
349
360
  type ReadResourceResult = z.infer<typeof ReadResourceResultSchema>;
361
+ declare const ListPromptsResultSchema: z.ZodObject<{
362
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
363
+ nextCursor: z.ZodOptional<z.ZodString>;
364
+ prompts: z.ZodArray<z.ZodObject<{
365
+ name: z.ZodString;
366
+ title: z.ZodOptional<z.ZodString>;
367
+ description: z.ZodOptional<z.ZodString>;
368
+ arguments: z.ZodOptional<z.ZodArray<z.ZodObject<{
369
+ name: z.ZodString;
370
+ description: z.ZodOptional<z.ZodString>;
371
+ required: z.ZodOptional<z.ZodBoolean>;
372
+ }, z.core.$loose>>>;
373
+ }, z.core.$loose>>;
374
+ }, z.core.$loose>;
375
+ type ListPromptsResult = z.infer<typeof ListPromptsResultSchema>;
376
+ declare const GetPromptResultSchema: z.ZodObject<{
377
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
378
+ description: z.ZodOptional<z.ZodString>;
379
+ messages: z.ZodArray<z.ZodObject<{
380
+ role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
381
+ content: z.ZodUnion<readonly [z.ZodObject<{
382
+ type: z.ZodLiteral<"text">;
383
+ text: z.ZodString;
384
+ }, z.core.$loose>, z.ZodObject<{
385
+ type: z.ZodLiteral<"image">;
386
+ data: z.ZodBase64;
387
+ mimeType: z.ZodString;
388
+ }, z.core.$loose>, z.ZodObject<{
389
+ type: z.ZodLiteral<"resource">;
390
+ resource: z.ZodUnion<readonly [z.ZodObject<{
391
+ uri: z.ZodString;
392
+ name: z.ZodOptional<z.ZodString>;
393
+ title: z.ZodOptional<z.ZodString>;
394
+ mimeType: z.ZodOptional<z.ZodString>;
395
+ text: z.ZodString;
396
+ }, z.core.$loose>, z.ZodObject<{
397
+ uri: z.ZodString;
398
+ name: z.ZodOptional<z.ZodString>;
399
+ title: z.ZodOptional<z.ZodString>;
400
+ mimeType: z.ZodOptional<z.ZodString>;
401
+ blob: z.ZodBase64;
402
+ }, z.core.$loose>]>;
403
+ }, z.core.$loose>]>;
404
+ }, z.core.$loose>>;
405
+ }, z.core.$loose>;
406
+ type GetPromptResult = z.infer<typeof GetPromptResultSchema>;
407
+ declare const ElicitationRequestSchema: z.ZodObject<{
408
+ method: z.ZodLiteral<"elicitation/create">;
409
+ params: z.ZodObject<{
410
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
411
+ message: z.ZodString;
412
+ requestedSchema: z.ZodUnknown;
413
+ }, z.core.$loose>;
414
+ }, z.core.$strip>;
415
+ type ElicitationRequest = z.infer<typeof ElicitationRequestSchema>;
416
+ declare const ElicitResultSchema: z.ZodObject<{
417
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
418
+ action: z.ZodUnion<readonly [z.ZodLiteral<"accept">, z.ZodLiteral<"decline">, z.ZodLiteral<"cancel">]>;
419
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
+ }, z.core.$loose>;
421
+ type ElicitResult = z.infer<typeof ElicitResultSchema>;
350
422
 
351
423
  interface MCPClientConfig {
352
424
  /** Transport configuration for connecting to the MCP server */
@@ -355,6 +427,14 @@ interface MCPClientConfig {
355
427
  onUncaughtError?: (error: unknown) => void;
356
428
  /** Optional client name, defaults to 'ai-sdk-mcp-client' */
357
429
  name?: string;
430
+ /** Optional client version, defaults to '1.0.0' */
431
+ version?: string;
432
+ /**
433
+ * Optional client capabilities to advertise during initialization
434
+ *
435
+ * NOTE: It is up to the client application to handle the requests properly. This parameter just helps surface the request from the server
436
+ */
437
+ capabilities?: ClientCapabilities;
358
438
  }
359
439
  declare function createMCPClient(config: MCPClientConfig): Promise<MCPClient>;
360
440
  interface MCPClient {
@@ -372,7 +452,17 @@ interface MCPClient {
372
452
  listResourceTemplates(options?: {
373
453
  options?: RequestOptions;
374
454
  }): Promise<ListResourceTemplatesResult>;
455
+ listPrompts(options?: {
456
+ params?: PaginatedRequest['params'];
457
+ options?: RequestOptions;
458
+ }): Promise<ListPromptsResult>;
459
+ getPrompt(args: {
460
+ name: string;
461
+ arguments?: Record<string, unknown>;
462
+ options?: RequestOptions;
463
+ }): Promise<GetPromptResult>;
464
+ onElicitationRequest(schema: typeof ElicitationRequestSchema, handler: (request: ElicitationRequest) => Promise<ElicitResult> | ElicitResult): void;
375
465
  close: () => Promise<void>;
376
466
  }
377
467
 
378
- export { type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type MCPTransport, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, UnauthorizedError, auth, type MCPClient as experimental_MCPClient, type MCPClientConfig as experimental_MCPClientConfig, createMCPClient as experimental_createMCPClient };
468
+ export { type ElicitResult, ElicitResultSchema, type ElicitationRequest, ElicitationRequestSchema, type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type MCPTransport, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, UnauthorizedError, auth, type MCPClient as experimental_MCPClient, type ClientCapabilities as experimental_MCPClientCapabilities, type MCPClientConfig as experimental_MCPClientConfig, createMCPClient as experimental_createMCPClient };
package/dist/index.d.ts CHANGED
@@ -242,18 +242,23 @@ type MCPTransportConfig = {
242
242
  authProvider?: OAuthClientProvider;
243
243
  };
244
244
 
245
+ /** MCP tool metadata - keys should follow MCP _meta key format specification */
246
+ declare const ToolMetaSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
247
+ type ToolMeta = z.infer<typeof ToolMetaSchema>;
245
248
  type ToolSchemas = Record<string, {
246
249
  inputSchema: FlexibleSchema<JSONObject | unknown>;
247
250
  }> | 'automatic' | undefined;
251
+ /** Base MCP tool type with execute and _meta */
252
+ type McpToolBase<INPUT = unknown> = Tool<INPUT, CallToolResult> & Required<Pick<Tool<INPUT, CallToolResult>, 'execute'>> & {
253
+ _meta?: ToolMeta;
254
+ };
248
255
  type McpToolSet<TOOL_SCHEMAS extends ToolSchemas = 'automatic'> = TOOL_SCHEMAS extends Record<string, {
249
256
  inputSchema: FlexibleSchema<any>;
250
257
  }> ? {
251
258
  [K in keyof TOOL_SCHEMAS]: TOOL_SCHEMAS[K] extends {
252
259
  inputSchema: FlexibleSchema<infer INPUT>;
253
- } ? Tool<INPUT, CallToolResult> & Required<Pick<Tool<INPUT, CallToolResult>, 'execute'>> : never;
254
- } : McpToolSet<Record<string, {
255
- inputSchema: FlexibleSchema<unknown>;
256
- }>>;
260
+ } ? McpToolBase<INPUT> : never;
261
+ } : Record<string, McpToolBase<unknown>>;
257
262
  declare const BaseParamsSchema: z.ZodObject<{
258
263
  _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
259
264
  }, z.core.$loose>;
@@ -270,6 +275,12 @@ type RequestOptions = {
270
275
  timeout?: number;
271
276
  maxTotalTimeout?: number;
272
277
  };
278
+ declare const ClientCapabilitiesSchema: z.ZodObject<{
279
+ elicitation: z.ZodOptional<z.ZodObject<{
280
+ applyDefaults: z.ZodOptional<z.ZodBoolean>;
281
+ }, z.core.$loose>>;
282
+ }, z.core.$loose>;
283
+ type ClientCapabilities = z.infer<typeof ClientCapabilitiesSchema>;
273
284
  type PaginatedRequest = Request & {
274
285
  params?: BaseParams & {
275
286
  cursor?: string;
@@ -347,6 +358,67 @@ declare const ReadResourceResultSchema: z.ZodObject<{
347
358
  }, z.core.$loose>]>>;
348
359
  }, z.core.$loose>;
349
360
  type ReadResourceResult = z.infer<typeof ReadResourceResultSchema>;
361
+ declare const ListPromptsResultSchema: z.ZodObject<{
362
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
363
+ nextCursor: z.ZodOptional<z.ZodString>;
364
+ prompts: z.ZodArray<z.ZodObject<{
365
+ name: z.ZodString;
366
+ title: z.ZodOptional<z.ZodString>;
367
+ description: z.ZodOptional<z.ZodString>;
368
+ arguments: z.ZodOptional<z.ZodArray<z.ZodObject<{
369
+ name: z.ZodString;
370
+ description: z.ZodOptional<z.ZodString>;
371
+ required: z.ZodOptional<z.ZodBoolean>;
372
+ }, z.core.$loose>>>;
373
+ }, z.core.$loose>>;
374
+ }, z.core.$loose>;
375
+ type ListPromptsResult = z.infer<typeof ListPromptsResultSchema>;
376
+ declare const GetPromptResultSchema: z.ZodObject<{
377
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
378
+ description: z.ZodOptional<z.ZodString>;
379
+ messages: z.ZodArray<z.ZodObject<{
380
+ role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
381
+ content: z.ZodUnion<readonly [z.ZodObject<{
382
+ type: z.ZodLiteral<"text">;
383
+ text: z.ZodString;
384
+ }, z.core.$loose>, z.ZodObject<{
385
+ type: z.ZodLiteral<"image">;
386
+ data: z.ZodBase64;
387
+ mimeType: z.ZodString;
388
+ }, z.core.$loose>, z.ZodObject<{
389
+ type: z.ZodLiteral<"resource">;
390
+ resource: z.ZodUnion<readonly [z.ZodObject<{
391
+ uri: z.ZodString;
392
+ name: z.ZodOptional<z.ZodString>;
393
+ title: z.ZodOptional<z.ZodString>;
394
+ mimeType: z.ZodOptional<z.ZodString>;
395
+ text: z.ZodString;
396
+ }, z.core.$loose>, z.ZodObject<{
397
+ uri: z.ZodString;
398
+ name: z.ZodOptional<z.ZodString>;
399
+ title: z.ZodOptional<z.ZodString>;
400
+ mimeType: z.ZodOptional<z.ZodString>;
401
+ blob: z.ZodBase64;
402
+ }, z.core.$loose>]>;
403
+ }, z.core.$loose>]>;
404
+ }, z.core.$loose>>;
405
+ }, z.core.$loose>;
406
+ type GetPromptResult = z.infer<typeof GetPromptResultSchema>;
407
+ declare const ElicitationRequestSchema: z.ZodObject<{
408
+ method: z.ZodLiteral<"elicitation/create">;
409
+ params: z.ZodObject<{
410
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
411
+ message: z.ZodString;
412
+ requestedSchema: z.ZodUnknown;
413
+ }, z.core.$loose>;
414
+ }, z.core.$strip>;
415
+ type ElicitationRequest = z.infer<typeof ElicitationRequestSchema>;
416
+ declare const ElicitResultSchema: z.ZodObject<{
417
+ _meta: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
418
+ action: z.ZodUnion<readonly [z.ZodLiteral<"accept">, z.ZodLiteral<"decline">, z.ZodLiteral<"cancel">]>;
419
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
+ }, z.core.$loose>;
421
+ type ElicitResult = z.infer<typeof ElicitResultSchema>;
350
422
 
351
423
  interface MCPClientConfig {
352
424
  /** Transport configuration for connecting to the MCP server */
@@ -355,6 +427,14 @@ interface MCPClientConfig {
355
427
  onUncaughtError?: (error: unknown) => void;
356
428
  /** Optional client name, defaults to 'ai-sdk-mcp-client' */
357
429
  name?: string;
430
+ /** Optional client version, defaults to '1.0.0' */
431
+ version?: string;
432
+ /**
433
+ * Optional client capabilities to advertise during initialization
434
+ *
435
+ * NOTE: It is up to the client application to handle the requests properly. This parameter just helps surface the request from the server
436
+ */
437
+ capabilities?: ClientCapabilities;
358
438
  }
359
439
  declare function createMCPClient(config: MCPClientConfig): Promise<MCPClient>;
360
440
  interface MCPClient {
@@ -372,7 +452,17 @@ interface MCPClient {
372
452
  listResourceTemplates(options?: {
373
453
  options?: RequestOptions;
374
454
  }): Promise<ListResourceTemplatesResult>;
455
+ listPrompts(options?: {
456
+ params?: PaginatedRequest['params'];
457
+ options?: RequestOptions;
458
+ }): Promise<ListPromptsResult>;
459
+ getPrompt(args: {
460
+ name: string;
461
+ arguments?: Record<string, unknown>;
462
+ options?: RequestOptions;
463
+ }): Promise<GetPromptResult>;
464
+ onElicitationRequest(schema: typeof ElicitationRequestSchema, handler: (request: ElicitationRequest) => Promise<ElicitResult> | ElicitResult): void;
375
465
  close: () => Promise<void>;
376
466
  }
377
467
 
378
- export { type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type MCPTransport, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, UnauthorizedError, auth, type MCPClient as experimental_MCPClient, type MCPClientConfig as experimental_MCPClientConfig, createMCPClient as experimental_createMCPClient };
468
+ export { type ElicitResult, ElicitResultSchema, type ElicitationRequest, ElicitationRequestSchema, type JSONRPCError, type JSONRPCMessage, type JSONRPCNotification, type JSONRPCRequest, type JSONRPCResponse, type MCPTransport, type OAuthClientInformation, type OAuthClientMetadata, type OAuthClientProvider, type OAuthTokens, UnauthorizedError, auth, type MCPClient as experimental_MCPClient, type ClientCapabilities as experimental_MCPClientCapabilities, type MCPClientConfig as experimental_MCPClientConfig, createMCPClient as experimental_createMCPClient };