tmcp 1.8.1 → 1.8.2
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/package.json +1 -1
- package/src/types/index.d.ts +210 -210
package/package.json
CHANGED
package/src/types/index.d.ts
CHANGED
|
@@ -115,75 +115,75 @@ declare module 'tmcp' {
|
|
|
115
115
|
/**
|
|
116
116
|
* A successful (non-error) response to a request.
|
|
117
117
|
*/
|
|
118
|
-
const JSONRPCResponseSchema:StrictObjectSchema<{
|
|
119
|
-
readonly jsonrpc:LiteralSchema<"2.0", undefined>;
|
|
120
|
-
readonly id:UnionSchema<[StringSchema<undefined>,SchemaWithPipe<readonly [NumberSchema<undefined>,IntegerAction<number, undefined>]>], undefined>;
|
|
121
|
-
readonly result:ObjectSchema<{
|
|
118
|
+
const JSONRPCResponseSchema: v.StrictObjectSchema<{
|
|
119
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
120
|
+
readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>;
|
|
121
|
+
readonly result: v.ObjectSchema<{
|
|
122
122
|
/**
|
|
123
123
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
124
124
|
* for notes on _meta usage.
|
|
125
125
|
*/
|
|
126
|
-
readonly _meta:OptionalSchema<LooseObjectSchema<{}, undefined>, undefined>;
|
|
126
|
+
readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
|
|
127
127
|
}, undefined>;
|
|
128
128
|
}, undefined>;
|
|
129
129
|
/**
|
|
130
130
|
* 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.
|
|
131
131
|
*/
|
|
132
|
-
const ClientCapabilitiesSchema:ObjectSchema<{
|
|
132
|
+
const ClientCapabilitiesSchema: v.ObjectSchema<{
|
|
133
133
|
/**
|
|
134
134
|
* Experimental, non-standard capabilities that the client supports.
|
|
135
135
|
*/
|
|
136
|
-
readonly experimental:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
136
|
+
readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
137
137
|
/**
|
|
138
138
|
* Present if the client supports sampling from an LLM.
|
|
139
139
|
*/
|
|
140
|
-
readonly sampling:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
140
|
+
readonly sampling: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
141
141
|
/**
|
|
142
142
|
* Present if the client supports eliciting user input.
|
|
143
143
|
*/
|
|
144
|
-
readonly elicitation:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
144
|
+
readonly elicitation: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
145
145
|
/**
|
|
146
146
|
* Present if the client supports listing roots.
|
|
147
147
|
*/
|
|
148
|
-
readonly roots:OptionalSchema<ObjectSchema<{
|
|
148
|
+
readonly roots: v.OptionalSchema<v.ObjectSchema<{
|
|
149
149
|
/**
|
|
150
150
|
* Whether the client supports issuing notifications for changes to the roots list.
|
|
151
151
|
*/
|
|
152
|
-
readonly listChanged:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
152
|
+
readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
153
153
|
}, undefined>, undefined>;
|
|
154
154
|
}, undefined>;
|
|
155
|
-
const InitializeRequestParamsSchema:ObjectSchema<{
|
|
155
|
+
const InitializeRequestParamsSchema: v.ObjectSchema<{
|
|
156
156
|
/**
|
|
157
157
|
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
|
|
158
158
|
*/
|
|
159
|
-
readonly protocolVersion:StringSchema<undefined>;
|
|
160
|
-
readonly capabilities:ObjectSchema<{
|
|
159
|
+
readonly protocolVersion: v.StringSchema<undefined>;
|
|
160
|
+
readonly capabilities: v.ObjectSchema<{
|
|
161
161
|
/**
|
|
162
162
|
* Experimental, non-standard capabilities that the client supports.
|
|
163
163
|
*/
|
|
164
|
-
readonly experimental:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
164
|
+
readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
165
165
|
/**
|
|
166
166
|
* Present if the client supports sampling from an LLM.
|
|
167
167
|
*/
|
|
168
|
-
readonly sampling:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
168
|
+
readonly sampling: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
169
169
|
/**
|
|
170
170
|
* Present if the client supports eliciting user input.
|
|
171
171
|
*/
|
|
172
|
-
readonly elicitation:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
172
|
+
readonly elicitation: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
173
173
|
/**
|
|
174
174
|
* Present if the client supports listing roots.
|
|
175
175
|
*/
|
|
176
|
-
readonly roots:OptionalSchema<ObjectSchema<{
|
|
176
|
+
readonly roots: v.OptionalSchema<v.ObjectSchema<{
|
|
177
177
|
/**
|
|
178
178
|
* Whether the client supports issuing notifications for changes to the roots list.
|
|
179
179
|
*/
|
|
180
|
-
readonly listChanged:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
180
|
+
readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
181
181
|
}, undefined>, undefined>;
|
|
182
182
|
}, undefined>;
|
|
183
|
-
readonly clientInfo:ObjectSchema<{
|
|
184
|
-
readonly version:StringSchema<undefined>;
|
|
183
|
+
readonly clientInfo: v.ObjectSchema<{
|
|
184
|
+
readonly version: v.StringSchema<undefined>;
|
|
185
185
|
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
186
|
-
readonly name:StringSchema<undefined>;
|
|
186
|
+
readonly name: v.StringSchema<undefined>;
|
|
187
187
|
/**
|
|
188
188
|
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
189
189
|
* even by those unfamiliar with domain-specific terminology.
|
|
@@ -192,88 +192,88 @@ declare module 'tmcp' {
|
|
|
192
192
|
* where `annotations.title` should be given precedence over using `name`,
|
|
193
193
|
* if present).
|
|
194
194
|
*/
|
|
195
|
-
readonly title:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
195
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
196
196
|
}, undefined>;
|
|
197
|
-
readonly _meta:OptionalSchema<LooseObjectSchema<{
|
|
197
|
+
readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
|
|
198
198
|
/**
|
|
199
199
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
200
200
|
*/
|
|
201
|
-
readonly progressToken:OptionalSchema<UnionSchema<[StringSchema<undefined>,SchemaWithPipe<readonly [NumberSchema<undefined>,IntegerAction<number, undefined>]>], undefined>, undefined>;
|
|
201
|
+
readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
|
|
202
202
|
}, undefined>, undefined>;
|
|
203
203
|
}, undefined>;
|
|
204
204
|
/**
|
|
205
205
|
* 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.
|
|
206
206
|
*/
|
|
207
|
-
const ServerCapabilitiesSchema:ObjectSchema<{
|
|
207
|
+
const ServerCapabilitiesSchema: v.ObjectSchema<{
|
|
208
208
|
/**
|
|
209
209
|
* Experimental, non-standard capabilities that the server supports.
|
|
210
210
|
*/
|
|
211
|
-
readonly experimental:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
211
|
+
readonly experimental: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
212
212
|
/**
|
|
213
213
|
* Present if the server supports sending log messages to the client.
|
|
214
214
|
*/
|
|
215
|
-
readonly logging:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
215
|
+
readonly logging: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
216
216
|
/**
|
|
217
217
|
* Present if the server supports sending completions to the client.
|
|
218
218
|
*/
|
|
219
|
-
readonly completions:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
219
|
+
readonly completions: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
220
220
|
/**
|
|
221
221
|
* Present if the server offers any prompt templates.
|
|
222
222
|
*/
|
|
223
|
-
readonly prompts:OptionalSchema<ObjectSchema<{
|
|
223
|
+
readonly prompts: v.OptionalSchema<v.ObjectSchema<{
|
|
224
224
|
/**
|
|
225
225
|
* Whether this server supports issuing notifications for changes to the prompt list.
|
|
226
226
|
*/
|
|
227
|
-
readonly listChanged:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
227
|
+
readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
228
228
|
}, undefined>, undefined>;
|
|
229
229
|
/**
|
|
230
230
|
* Present if the server offers any resources to read.
|
|
231
231
|
*/
|
|
232
|
-
readonly resources:OptionalSchema<ObjectSchema<{
|
|
232
|
+
readonly resources: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
/**
|
|
234
234
|
* Whether this server supports clients subscribing to resource updates.
|
|
235
235
|
*/
|
|
236
|
-
readonly subscribe:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
236
|
+
readonly subscribe: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
237
237
|
/**
|
|
238
238
|
* Whether this server supports issuing notifications for changes to the resource list.
|
|
239
239
|
*/
|
|
240
|
-
readonly listChanged:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
240
|
+
readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
241
241
|
}, undefined>, undefined>;
|
|
242
242
|
/**
|
|
243
243
|
* Present if the server offers any tools to call.
|
|
244
244
|
*/
|
|
245
|
-
readonly tools:OptionalSchema<ObjectSchema<{
|
|
245
|
+
readonly tools: v.OptionalSchema<v.ObjectSchema<{
|
|
246
246
|
/**
|
|
247
247
|
* Whether this server supports issuing notifications for changes to the tool list.
|
|
248
248
|
*/
|
|
249
|
-
readonly listChanged:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
249
|
+
readonly listChanged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
250
250
|
}, undefined>, undefined>;
|
|
251
251
|
}, undefined>;
|
|
252
252
|
/**
|
|
253
253
|
* A known resource that the server is capable of reading.
|
|
254
254
|
*/
|
|
255
|
-
const ResourceSchema:ObjectSchema<{
|
|
255
|
+
const ResourceSchema: v.ObjectSchema<{
|
|
256
256
|
/**
|
|
257
257
|
* The URI of this resource.
|
|
258
258
|
*/
|
|
259
|
-
readonly uri:StringSchema<undefined>;
|
|
259
|
+
readonly uri: v.StringSchema<undefined>;
|
|
260
260
|
/**
|
|
261
261
|
* A description of what this resource represents.
|
|
262
262
|
*
|
|
263
263
|
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
264
264
|
*/
|
|
265
|
-
readonly description:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
265
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
266
266
|
/**
|
|
267
267
|
* The MIME type of this resource, if known.
|
|
268
268
|
*/
|
|
269
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
269
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
270
270
|
/**
|
|
271
271
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
272
272
|
* for notes on _meta usage.
|
|
273
273
|
*/
|
|
274
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
274
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
275
275
|
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
276
|
-
readonly name:StringSchema<undefined>;
|
|
276
|
+
readonly name: v.StringSchema<undefined>;
|
|
277
277
|
/**
|
|
278
278
|
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
279
279
|
* even by those unfamiliar with domain-specific terminology.
|
|
@@ -282,129 +282,129 @@ declare module 'tmcp' {
|
|
|
282
282
|
* where `annotations.title` should be given precedence over using `name`,
|
|
283
283
|
* if present).
|
|
284
284
|
*/
|
|
285
|
-
readonly title:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
285
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
286
286
|
}, undefined>;
|
|
287
287
|
/**
|
|
288
288
|
* The server's response to a resources/read request from the client.
|
|
289
289
|
*/
|
|
290
|
-
const ReadResourceResultSchema:ObjectSchema<{
|
|
291
|
-
readonly contents:ArraySchema<UnionSchema<[ObjectSchema<{
|
|
290
|
+
const ReadResourceResultSchema: v.ObjectSchema<{
|
|
291
|
+
readonly contents: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
292
292
|
/**
|
|
293
293
|
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
294
294
|
*/
|
|
295
|
-
readonly text:StringSchema<undefined>;
|
|
295
|
+
readonly text: v.StringSchema<undefined>;
|
|
296
296
|
/**
|
|
297
297
|
* The URI of this resource.
|
|
298
298
|
*/
|
|
299
|
-
readonly uri:StringSchema<undefined>;
|
|
299
|
+
readonly uri: v.StringSchema<undefined>;
|
|
300
300
|
/**
|
|
301
301
|
* The MIME type of this resource, if known.
|
|
302
302
|
*/
|
|
303
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
303
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
304
304
|
/**
|
|
305
305
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
306
306
|
* for notes on _meta usage.
|
|
307
307
|
*/
|
|
308
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
309
|
-
}, undefined>,ObjectSchema<{
|
|
308
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
309
|
+
}, undefined>, v.ObjectSchema<{
|
|
310
310
|
/**
|
|
311
311
|
* A base64-encoded string representing the binary data of the item.
|
|
312
312
|
*/
|
|
313
|
-
readonly blob:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
313
|
+
readonly blob: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
314
314
|
/**
|
|
315
315
|
* The URI of this resource.
|
|
316
316
|
*/
|
|
317
|
-
readonly uri:StringSchema<undefined>;
|
|
317
|
+
readonly uri: v.StringSchema<undefined>;
|
|
318
318
|
/**
|
|
319
319
|
* The MIME type of this resource, if known.
|
|
320
320
|
*/
|
|
321
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
321
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
322
322
|
/**
|
|
323
323
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
324
324
|
* for notes on _meta usage.
|
|
325
325
|
*/
|
|
326
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
326
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
327
327
|
}, undefined>], undefined>, undefined>;
|
|
328
328
|
/**
|
|
329
329
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
330
330
|
* for notes on _meta usage.
|
|
331
331
|
*/
|
|
332
|
-
readonly _meta:OptionalSchema<LooseObjectSchema<{}, undefined>, undefined>;
|
|
332
|
+
readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
|
|
333
333
|
}, undefined>;
|
|
334
334
|
/**
|
|
335
335
|
* The server's response to a prompts/get request from the client.
|
|
336
336
|
*/
|
|
337
|
-
const GetPromptResultSchema:ObjectSchema<{
|
|
337
|
+
const GetPromptResultSchema: v.ObjectSchema<{
|
|
338
338
|
/**
|
|
339
339
|
* An optional description for the prompt.
|
|
340
340
|
*/
|
|
341
|
-
readonly description:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
342
|
-
readonly messages:ArraySchema<ObjectSchema<{
|
|
343
|
-
readonly role:PicklistSchema<["user", "assistant"], undefined>;
|
|
344
|
-
readonly content:UnionSchema<[ObjectSchema<{
|
|
345
|
-
readonly type:LiteralSchema<"text", undefined>;
|
|
341
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
342
|
+
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
343
|
+
readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
|
|
344
|
+
readonly content: v.UnionSchema<[v.ObjectSchema<{
|
|
345
|
+
readonly type: v.LiteralSchema<"text", undefined>;
|
|
346
346
|
/**
|
|
347
347
|
* The text content of the message.
|
|
348
348
|
*/
|
|
349
|
-
readonly text:StringSchema<undefined>;
|
|
349
|
+
readonly text: v.StringSchema<undefined>;
|
|
350
350
|
/**
|
|
351
351
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
352
352
|
* for notes on _meta usage.
|
|
353
353
|
*/
|
|
354
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
355
|
-
}, undefined>,ObjectSchema<{
|
|
356
|
-
readonly type:LiteralSchema<"image", undefined>;
|
|
354
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
355
|
+
}, undefined>, v.ObjectSchema<{
|
|
356
|
+
readonly type: v.LiteralSchema<"image", undefined>;
|
|
357
357
|
/**
|
|
358
358
|
* The base64-encoded image data.
|
|
359
359
|
*/
|
|
360
|
-
readonly data:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
360
|
+
readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
361
361
|
/**
|
|
362
362
|
* The MIME type of the image. Different providers may support different image types.
|
|
363
363
|
*/
|
|
364
|
-
readonly mimeType:StringSchema<undefined>;
|
|
364
|
+
readonly mimeType: v.StringSchema<undefined>;
|
|
365
365
|
/**
|
|
366
366
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
367
367
|
* for notes on _meta usage.
|
|
368
368
|
*/
|
|
369
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
370
|
-
}, undefined>,ObjectSchema<{
|
|
371
|
-
readonly type:LiteralSchema<"audio", undefined>;
|
|
369
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
370
|
+
}, undefined>, v.ObjectSchema<{
|
|
371
|
+
readonly type: v.LiteralSchema<"audio", undefined>;
|
|
372
372
|
/**
|
|
373
373
|
* The base64-encoded audio data.
|
|
374
374
|
*/
|
|
375
|
-
readonly data:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
375
|
+
readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
376
376
|
/**
|
|
377
377
|
* The MIME type of the audio. Different providers may support different audio types.
|
|
378
378
|
*/
|
|
379
|
-
readonly mimeType:StringSchema<undefined>;
|
|
379
|
+
readonly mimeType: v.StringSchema<undefined>;
|
|
380
380
|
/**
|
|
381
381
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
382
382
|
* for notes on _meta usage.
|
|
383
383
|
*/
|
|
384
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
385
|
-
}, undefined>,ObjectSchema<{
|
|
386
|
-
readonly type:LiteralSchema<"resource_link", undefined>;
|
|
384
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
385
|
+
}, undefined>, v.ObjectSchema<{
|
|
386
|
+
readonly type: v.LiteralSchema<"resource_link", undefined>;
|
|
387
387
|
/**
|
|
388
388
|
* The URI of this resource.
|
|
389
389
|
*/
|
|
390
|
-
readonly uri:StringSchema<undefined>;
|
|
390
|
+
readonly uri: v.StringSchema<undefined>;
|
|
391
391
|
/**
|
|
392
392
|
* A description of what this resource represents.
|
|
393
393
|
*
|
|
394
394
|
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
395
395
|
*/
|
|
396
|
-
readonly description:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
396
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
397
397
|
/**
|
|
398
398
|
* The MIME type of this resource, if known.
|
|
399
399
|
*/
|
|
400
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
400
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
401
401
|
/**
|
|
402
402
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
403
403
|
* for notes on _meta usage.
|
|
404
404
|
*/
|
|
405
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
405
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
406
406
|
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
407
|
-
readonly name:StringSchema<undefined>;
|
|
407
|
+
readonly name: v.StringSchema<undefined>;
|
|
408
408
|
/**
|
|
409
409
|
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
410
410
|
* even by those unfamiliar with domain-specific terminology.
|
|
@@ -413,58 +413,58 @@ declare module 'tmcp' {
|
|
|
413
413
|
* where `annotations.title` should be given precedence over using `name`,
|
|
414
414
|
* if present).
|
|
415
415
|
*/
|
|
416
|
-
readonly title:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
417
|
-
}, undefined>,ObjectSchema<{
|
|
418
|
-
readonly type:LiteralSchema<"resource", undefined>;
|
|
419
|
-
readonly resource:UnionSchema<[ObjectSchema<{
|
|
416
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
417
|
+
}, undefined>, v.ObjectSchema<{
|
|
418
|
+
readonly type: v.LiteralSchema<"resource", undefined>;
|
|
419
|
+
readonly resource: v.UnionSchema<[v.ObjectSchema<{
|
|
420
420
|
/**
|
|
421
421
|
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
422
422
|
*/
|
|
423
|
-
readonly text:StringSchema<undefined>;
|
|
423
|
+
readonly text: v.StringSchema<undefined>;
|
|
424
424
|
/**
|
|
425
425
|
* The URI of this resource.
|
|
426
426
|
*/
|
|
427
|
-
readonly uri:StringSchema<undefined>;
|
|
427
|
+
readonly uri: v.StringSchema<undefined>;
|
|
428
428
|
/**
|
|
429
429
|
* The MIME type of this resource, if known.
|
|
430
430
|
*/
|
|
431
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
431
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
432
432
|
/**
|
|
433
433
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
434
434
|
* for notes on _meta usage.
|
|
435
435
|
*/
|
|
436
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
437
|
-
}, undefined>,ObjectSchema<{
|
|
436
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
437
|
+
}, undefined>, v.ObjectSchema<{
|
|
438
438
|
/**
|
|
439
439
|
* A base64-encoded string representing the binary data of the item.
|
|
440
440
|
*/
|
|
441
|
-
readonly blob:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
441
|
+
readonly blob: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
442
442
|
/**
|
|
443
443
|
* The URI of this resource.
|
|
444
444
|
*/
|
|
445
|
-
readonly uri:StringSchema<undefined>;
|
|
445
|
+
readonly uri: v.StringSchema<undefined>;
|
|
446
446
|
/**
|
|
447
447
|
* The MIME type of this resource, if known.
|
|
448
448
|
*/
|
|
449
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
449
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
450
450
|
/**
|
|
451
451
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
452
452
|
* for notes on _meta usage.
|
|
453
453
|
*/
|
|
454
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
454
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
455
455
|
}, undefined>], undefined>;
|
|
456
456
|
/**
|
|
457
457
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
458
458
|
* for notes on _meta usage.
|
|
459
459
|
*/
|
|
460
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
460
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
461
461
|
}, undefined>], undefined>;
|
|
462
462
|
}, undefined>, undefined>;
|
|
463
463
|
/**
|
|
464
464
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
465
465
|
* for notes on _meta usage.
|
|
466
466
|
*/
|
|
467
|
-
readonly _meta:OptionalSchema<LooseObjectSchema<{}, undefined>, undefined>;
|
|
467
|
+
readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
|
|
468
468
|
}, undefined>;
|
|
469
469
|
/**
|
|
470
470
|
* Additional properties describing a Tool to clients.
|
|
@@ -476,17 +476,17 @@ declare module 'tmcp' {
|
|
|
476
476
|
* Clients should never make tool use decisions based on ToolAnnotations
|
|
477
477
|
* received from untrusted servers.
|
|
478
478
|
*/
|
|
479
|
-
const ToolAnnotationsSchema:ObjectSchema<{
|
|
479
|
+
const ToolAnnotationsSchema: v.ObjectSchema<{
|
|
480
480
|
/**
|
|
481
481
|
* A human-readable title for the tool.
|
|
482
482
|
*/
|
|
483
|
-
readonly title:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
483
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
484
484
|
/**
|
|
485
485
|
* If true, the tool does not modify its environment.
|
|
486
486
|
*
|
|
487
487
|
* Default: false
|
|
488
488
|
*/
|
|
489
|
-
readonly readOnlyHint:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
489
|
+
readonly readOnlyHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
490
490
|
/**
|
|
491
491
|
* If true, the tool may perform destructive updates to its environment.
|
|
492
492
|
* If false, the tool performs only additive updates.
|
|
@@ -495,7 +495,7 @@ declare module 'tmcp' {
|
|
|
495
495
|
*
|
|
496
496
|
* Default: true
|
|
497
497
|
*/
|
|
498
|
-
readonly destructiveHint:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
498
|
+
readonly destructiveHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
499
499
|
/**
|
|
500
500
|
* If true, calling the tool repeatedly with the same arguments
|
|
501
501
|
* will have no additional effect on the its environment.
|
|
@@ -504,7 +504,7 @@ declare module 'tmcp' {
|
|
|
504
504
|
*
|
|
505
505
|
* Default: false
|
|
506
506
|
*/
|
|
507
|
-
readonly idempotentHint:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
507
|
+
readonly idempotentHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
508
508
|
/**
|
|
509
509
|
* If true, this tool may interact with an "open world" of external
|
|
510
510
|
* entities. If false, the tool's domain of interaction is closed.
|
|
@@ -513,82 +513,82 @@ declare module 'tmcp' {
|
|
|
513
513
|
*
|
|
514
514
|
* Default: true
|
|
515
515
|
*/
|
|
516
|
-
readonly openWorldHint:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
516
|
+
readonly openWorldHint: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
517
517
|
}, undefined>;
|
|
518
518
|
/**
|
|
519
519
|
* The server's response to a tool call.
|
|
520
520
|
*/
|
|
521
|
-
const CallToolResultSchema:ObjectSchema<{
|
|
521
|
+
const CallToolResultSchema: v.ObjectSchema<{
|
|
522
522
|
/**
|
|
523
523
|
* A list of content objects that represent the result of the tool call.
|
|
524
524
|
*
|
|
525
525
|
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
526
526
|
* For backwards compatibility, this field is always present, but it may be empty.
|
|
527
527
|
*/
|
|
528
|
-
readonly content:OptionalSchema<ArraySchema<UnionSchema<[ObjectSchema<{
|
|
529
|
-
readonly type:LiteralSchema<"text", undefined>;
|
|
528
|
+
readonly content: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
529
|
+
readonly type: v.LiteralSchema<"text", undefined>;
|
|
530
530
|
/**
|
|
531
531
|
* The text content of the message.
|
|
532
532
|
*/
|
|
533
|
-
readonly text:StringSchema<undefined>;
|
|
533
|
+
readonly text: v.StringSchema<undefined>;
|
|
534
534
|
/**
|
|
535
535
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
536
536
|
* for notes on _meta usage.
|
|
537
537
|
*/
|
|
538
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
539
|
-
}, undefined>,ObjectSchema<{
|
|
540
|
-
readonly type:LiteralSchema<"image", undefined>;
|
|
538
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
539
|
+
}, undefined>, v.ObjectSchema<{
|
|
540
|
+
readonly type: v.LiteralSchema<"image", undefined>;
|
|
541
541
|
/**
|
|
542
542
|
* The base64-encoded image data.
|
|
543
543
|
*/
|
|
544
|
-
readonly data:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
544
|
+
readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
545
545
|
/**
|
|
546
546
|
* The MIME type of the image. Different providers may support different image types.
|
|
547
547
|
*/
|
|
548
|
-
readonly mimeType:StringSchema<undefined>;
|
|
548
|
+
readonly mimeType: v.StringSchema<undefined>;
|
|
549
549
|
/**
|
|
550
550
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
551
551
|
* for notes on _meta usage.
|
|
552
552
|
*/
|
|
553
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
554
|
-
}, undefined>,ObjectSchema<{
|
|
555
|
-
readonly type:LiteralSchema<"audio", undefined>;
|
|
553
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
554
|
+
}, undefined>, v.ObjectSchema<{
|
|
555
|
+
readonly type: v.LiteralSchema<"audio", undefined>;
|
|
556
556
|
/**
|
|
557
557
|
* The base64-encoded audio data.
|
|
558
558
|
*/
|
|
559
|
-
readonly data:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
559
|
+
readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
560
560
|
/**
|
|
561
561
|
* The MIME type of the audio. Different providers may support different audio types.
|
|
562
562
|
*/
|
|
563
|
-
readonly mimeType:StringSchema<undefined>;
|
|
563
|
+
readonly mimeType: v.StringSchema<undefined>;
|
|
564
564
|
/**
|
|
565
565
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
566
566
|
* for notes on _meta usage.
|
|
567
567
|
*/
|
|
568
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
569
|
-
}, undefined>,ObjectSchema<{
|
|
570
|
-
readonly type:LiteralSchema<"resource_link", undefined>;
|
|
568
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
569
|
+
}, undefined>, v.ObjectSchema<{
|
|
570
|
+
readonly type: v.LiteralSchema<"resource_link", undefined>;
|
|
571
571
|
/**
|
|
572
572
|
* The URI of this resource.
|
|
573
573
|
*/
|
|
574
|
-
readonly uri:StringSchema<undefined>;
|
|
574
|
+
readonly uri: v.StringSchema<undefined>;
|
|
575
575
|
/**
|
|
576
576
|
* A description of what this resource represents.
|
|
577
577
|
*
|
|
578
578
|
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
579
579
|
*/
|
|
580
|
-
readonly description:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
580
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
581
581
|
/**
|
|
582
582
|
* The MIME type of this resource, if known.
|
|
583
583
|
*/
|
|
584
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
584
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
585
585
|
/**
|
|
586
586
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
587
587
|
* for notes on _meta usage.
|
|
588
588
|
*/
|
|
589
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
589
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
590
590
|
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
591
|
-
readonly name:StringSchema<undefined>;
|
|
591
|
+
readonly name: v.StringSchema<undefined>;
|
|
592
592
|
/**
|
|
593
593
|
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
594
594
|
* even by those unfamiliar with domain-specific terminology.
|
|
@@ -597,58 +597,58 @@ declare module 'tmcp' {
|
|
|
597
597
|
* where `annotations.title` should be given precedence over using `name`,
|
|
598
598
|
* if present).
|
|
599
599
|
*/
|
|
600
|
-
readonly title:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
601
|
-
}, undefined>,ObjectSchema<{
|
|
602
|
-
readonly type:LiteralSchema<"resource", undefined>;
|
|
603
|
-
readonly resource:UnionSchema<[ObjectSchema<{
|
|
600
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
601
|
+
}, undefined>, v.ObjectSchema<{
|
|
602
|
+
readonly type: v.LiteralSchema<"resource", undefined>;
|
|
603
|
+
readonly resource: v.UnionSchema<[v.ObjectSchema<{
|
|
604
604
|
/**
|
|
605
605
|
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
606
606
|
*/
|
|
607
|
-
readonly text:StringSchema<undefined>;
|
|
607
|
+
readonly text: v.StringSchema<undefined>;
|
|
608
608
|
/**
|
|
609
609
|
* The URI of this resource.
|
|
610
610
|
*/
|
|
611
|
-
readonly uri:StringSchema<undefined>;
|
|
611
|
+
readonly uri: v.StringSchema<undefined>;
|
|
612
612
|
/**
|
|
613
613
|
* The MIME type of this resource, if known.
|
|
614
614
|
*/
|
|
615
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
615
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
616
616
|
/**
|
|
617
617
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
618
618
|
* for notes on _meta usage.
|
|
619
619
|
*/
|
|
620
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
621
|
-
}, undefined>,ObjectSchema<{
|
|
620
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
621
|
+
}, undefined>, v.ObjectSchema<{
|
|
622
622
|
/**
|
|
623
623
|
* A base64-encoded string representing the binary data of the item.
|
|
624
624
|
*/
|
|
625
|
-
readonly blob:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
625
|
+
readonly blob: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
626
626
|
/**
|
|
627
627
|
* The URI of this resource.
|
|
628
628
|
*/
|
|
629
|
-
readonly uri:StringSchema<undefined>;
|
|
629
|
+
readonly uri: v.StringSchema<undefined>;
|
|
630
630
|
/**
|
|
631
631
|
* The MIME type of this resource, if known.
|
|
632
632
|
*/
|
|
633
|
-
readonly mimeType:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
633
|
+
readonly mimeType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
634
634
|
/**
|
|
635
635
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
636
636
|
* for notes on _meta usage.
|
|
637
637
|
*/
|
|
638
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
638
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
639
639
|
}, undefined>], undefined>;
|
|
640
640
|
/**
|
|
641
641
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
642
642
|
* for notes on _meta usage.
|
|
643
643
|
*/
|
|
644
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
644
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
645
645
|
}, undefined>], undefined>, undefined>, readonly []>;
|
|
646
646
|
/**
|
|
647
647
|
* An object containing structured tool output.
|
|
648
648
|
*
|
|
649
649
|
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
650
650
|
*/
|
|
651
|
-
readonly structuredContent:OptionalSchema<LooseObjectSchema<{}, undefined>, undefined>;
|
|
651
|
+
readonly structuredContent: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
|
|
652
652
|
/**
|
|
653
653
|
* Whether the tool call ended in an error.
|
|
654
654
|
*
|
|
@@ -663,212 +663,212 @@ declare module 'tmcp' {
|
|
|
663
663
|
* server does not support tool calls, or any other exceptional conditions,
|
|
664
664
|
* should be reported as an MCP error response.
|
|
665
665
|
*/
|
|
666
|
-
readonly isError:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
666
|
+
readonly isError: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
667
667
|
/**
|
|
668
668
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
669
669
|
* for notes on _meta usage.
|
|
670
670
|
*/
|
|
671
|
-
readonly _meta:OptionalSchema<LooseObjectSchema<{}, undefined>, undefined>;
|
|
671
|
+
readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
|
|
672
672
|
}, undefined>;
|
|
673
673
|
/**
|
|
674
674
|
* The severity of a log message.
|
|
675
675
|
*/
|
|
676
|
-
const LoggingLevelSchema:PicklistSchema<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"], undefined>;
|
|
677
|
-
const CreateMessageRequestParamsSchema:ObjectSchema<{
|
|
678
|
-
readonly messages:ArraySchema<ObjectSchema<{
|
|
679
|
-
readonly role:PicklistSchema<["user", "assistant"], undefined>;
|
|
680
|
-
readonly content:UnionSchema<[ObjectSchema<{
|
|
681
|
-
readonly type:LiteralSchema<"text", undefined>;
|
|
676
|
+
const LoggingLevelSchema: v.PicklistSchema<["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"], undefined>;
|
|
677
|
+
const CreateMessageRequestParamsSchema: v.ObjectSchema<{
|
|
678
|
+
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
679
|
+
readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
|
|
680
|
+
readonly content: v.UnionSchema<[v.ObjectSchema<{
|
|
681
|
+
readonly type: v.LiteralSchema<"text", undefined>;
|
|
682
682
|
/**
|
|
683
683
|
* The text content of the message.
|
|
684
684
|
*/
|
|
685
|
-
readonly text:StringSchema<undefined>;
|
|
685
|
+
readonly text: v.StringSchema<undefined>;
|
|
686
686
|
/**
|
|
687
687
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
688
688
|
* for notes on _meta usage.
|
|
689
689
|
*/
|
|
690
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
691
|
-
}, undefined>,ObjectSchema<{
|
|
692
|
-
readonly type:LiteralSchema<"image", undefined>;
|
|
690
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
691
|
+
}, undefined>, v.ObjectSchema<{
|
|
692
|
+
readonly type: v.LiteralSchema<"image", undefined>;
|
|
693
693
|
/**
|
|
694
694
|
* The base64-encoded image data.
|
|
695
695
|
*/
|
|
696
|
-
readonly data:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
696
|
+
readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
697
697
|
/**
|
|
698
698
|
* The MIME type of the image. Different providers may support different image types.
|
|
699
699
|
*/
|
|
700
|
-
readonly mimeType:StringSchema<undefined>;
|
|
700
|
+
readonly mimeType: v.StringSchema<undefined>;
|
|
701
701
|
/**
|
|
702
702
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
703
703
|
* for notes on _meta usage.
|
|
704
704
|
*/
|
|
705
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
706
|
-
}, undefined>,ObjectSchema<{
|
|
707
|
-
readonly type:LiteralSchema<"audio", undefined>;
|
|
705
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
706
|
+
}, undefined>, v.ObjectSchema<{
|
|
707
|
+
readonly type: v.LiteralSchema<"audio", undefined>;
|
|
708
708
|
/**
|
|
709
709
|
* The base64-encoded audio data.
|
|
710
710
|
*/
|
|
711
|
-
readonly data:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
711
|
+
readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
712
712
|
/**
|
|
713
713
|
* The MIME type of the audio. Different providers may support different audio types.
|
|
714
714
|
*/
|
|
715
|
-
readonly mimeType:StringSchema<undefined>;
|
|
715
|
+
readonly mimeType: v.StringSchema<undefined>;
|
|
716
716
|
/**
|
|
717
717
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
718
718
|
* for notes on _meta usage.
|
|
719
719
|
*/
|
|
720
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
720
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
721
721
|
}, undefined>], undefined>;
|
|
722
722
|
}, undefined>, undefined>;
|
|
723
723
|
/**
|
|
724
724
|
* An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
|
|
725
725
|
*/
|
|
726
|
-
readonly systemPrompt:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
726
|
+
readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
727
727
|
/**
|
|
728
728
|
* A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request.
|
|
729
729
|
*/
|
|
730
|
-
readonly includeContext:OptionalSchema<PicklistSchema<["none", "thisServer", "allServers"], undefined>, undefined>;
|
|
731
|
-
readonly temperature:OptionalSchema<NumberSchema<undefined>, undefined>;
|
|
730
|
+
readonly includeContext: v.OptionalSchema<v.PicklistSchema<["none", "thisServer", "allServers"], undefined>, undefined>;
|
|
731
|
+
readonly temperature: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
732
732
|
/**
|
|
733
733
|
* The maximum number of tokens to sample, as requested by the server. The client MAY choose to sample fewer tokens than requested.
|
|
734
734
|
*/
|
|
735
|
-
readonly maxTokens:SchemaWithPipe<readonly [NumberSchema<undefined>,IntegerAction<number, undefined>]>;
|
|
736
|
-
readonly stopSequences:OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
|
|
735
|
+
readonly maxTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
736
|
+
readonly stopSequences: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
737
737
|
/**
|
|
738
738
|
* Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
|
|
739
739
|
*/
|
|
740
|
-
readonly metadata:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
740
|
+
readonly metadata: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
741
741
|
/**
|
|
742
742
|
* The server's preferences for which model to select.
|
|
743
743
|
*/
|
|
744
|
-
readonly modelPreferences:OptionalSchema<ObjectSchema<{
|
|
744
|
+
readonly modelPreferences: v.OptionalSchema<v.ObjectSchema<{
|
|
745
745
|
/**
|
|
746
746
|
* Optional hints to use for model selection.
|
|
747
747
|
*/
|
|
748
|
-
readonly hints:OptionalSchema<ArraySchema<ObjectSchema<{
|
|
748
|
+
readonly hints: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
749
749
|
/**
|
|
750
750
|
* A hint for a model name.
|
|
751
751
|
*/
|
|
752
|
-
readonly name:OptionalSchema<StringSchema<undefined>, undefined>;
|
|
752
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
753
753
|
}, undefined>, undefined>, undefined>;
|
|
754
754
|
/**
|
|
755
755
|
* How much to prioritize cost when selecting a model.
|
|
756
756
|
*/
|
|
757
|
-
readonly costPriority:OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>,MinValueAction<number, 0, undefined>,MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
757
|
+
readonly costPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
758
758
|
/**
|
|
759
759
|
* How much to prioritize sampling speed (latency) when selecting a model.
|
|
760
760
|
*/
|
|
761
|
-
readonly speedPriority:OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>,MinValueAction<number, 0, undefined>,MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
761
|
+
readonly speedPriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
762
762
|
/**
|
|
763
763
|
* How much to prioritize intelligence and capabilities when selecting a model.
|
|
764
764
|
*/
|
|
765
|
-
readonly intelligencePriority:OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>,MinValueAction<number, 0, undefined>,MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
765
|
+
readonly intelligencePriority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
766
766
|
}, undefined>, undefined>;
|
|
767
|
-
readonly _meta:OptionalSchema<LooseObjectSchema<{
|
|
767
|
+
readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{
|
|
768
768
|
/**
|
|
769
769
|
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
770
770
|
*/
|
|
771
|
-
readonly progressToken:OptionalSchema<UnionSchema<[StringSchema<undefined>,SchemaWithPipe<readonly [NumberSchema<undefined>,IntegerAction<number, undefined>]>], undefined>, undefined>;
|
|
771
|
+
readonly progressToken: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>], undefined>, undefined>;
|
|
772
772
|
}, undefined>, undefined>;
|
|
773
773
|
}, undefined>;
|
|
774
774
|
/**
|
|
775
775
|
* 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.
|
|
776
776
|
*/
|
|
777
|
-
const CreateMessageResultSchema:ObjectSchema<{
|
|
777
|
+
const CreateMessageResultSchema: v.ObjectSchema<{
|
|
778
778
|
/**
|
|
779
779
|
* The name of the model that generated the message.
|
|
780
780
|
*/
|
|
781
|
-
readonly model:StringSchema<undefined>;
|
|
781
|
+
readonly model: v.StringSchema<undefined>;
|
|
782
782
|
/**
|
|
783
783
|
* The reason why sampling stopped.
|
|
784
784
|
*/
|
|
785
|
-
readonly stopReason:OptionalSchema<UnionSchema<[PicklistSchema<["endTurn", "stopSequence", "maxTokens"], undefined>,StringSchema<undefined>], undefined>, undefined>;
|
|
786
|
-
readonly role:PicklistSchema<["user", "assistant"], undefined>;
|
|
787
|
-
readonly content:VariantSchema<"type", [ObjectSchema<{
|
|
788
|
-
readonly type:LiteralSchema<"text", undefined>;
|
|
785
|
+
readonly stopReason: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["endTurn", "stopSequence", "maxTokens"], undefined>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
786
|
+
readonly role: v.PicklistSchema<["user", "assistant"], undefined>;
|
|
787
|
+
readonly content: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
788
|
+
readonly type: v.LiteralSchema<"text", undefined>;
|
|
789
789
|
/**
|
|
790
790
|
* The text content of the message.
|
|
791
791
|
*/
|
|
792
|
-
readonly text:StringSchema<undefined>;
|
|
792
|
+
readonly text: v.StringSchema<undefined>;
|
|
793
793
|
/**
|
|
794
794
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
795
795
|
* for notes on _meta usage.
|
|
796
796
|
*/
|
|
797
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
798
|
-
}, undefined>,ObjectSchema<{
|
|
799
|
-
readonly type:LiteralSchema<"image", undefined>;
|
|
797
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
798
|
+
}, undefined>, v.ObjectSchema<{
|
|
799
|
+
readonly type: v.LiteralSchema<"image", undefined>;
|
|
800
800
|
/**
|
|
801
801
|
* The base64-encoded image data.
|
|
802
802
|
*/
|
|
803
|
-
readonly data:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
803
|
+
readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
804
804
|
/**
|
|
805
805
|
* The MIME type of the image. Different providers may support different image types.
|
|
806
806
|
*/
|
|
807
|
-
readonly mimeType:StringSchema<undefined>;
|
|
807
|
+
readonly mimeType: v.StringSchema<undefined>;
|
|
808
808
|
/**
|
|
809
809
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
810
810
|
* for notes on _meta usage.
|
|
811
811
|
*/
|
|
812
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
813
|
-
}, undefined>,ObjectSchema<{
|
|
814
|
-
readonly type:LiteralSchema<"audio", undefined>;
|
|
812
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
813
|
+
}, undefined>, v.ObjectSchema<{
|
|
814
|
+
readonly type: v.LiteralSchema<"audio", undefined>;
|
|
815
815
|
/**
|
|
816
816
|
* The base64-encoded audio data.
|
|
817
817
|
*/
|
|
818
|
-
readonly data:SchemaWithPipe<readonly [StringSchema<undefined>,Base64Action<string, undefined>]>;
|
|
818
|
+
readonly data: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>;
|
|
819
819
|
/**
|
|
820
820
|
* The MIME type of the audio. Different providers may support different audio types.
|
|
821
821
|
*/
|
|
822
|
-
readonly mimeType:StringSchema<undefined>;
|
|
822
|
+
readonly mimeType: v.StringSchema<undefined>;
|
|
823
823
|
/**
|
|
824
824
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
825
825
|
* for notes on _meta usage.
|
|
826
826
|
*/
|
|
827
|
-
readonly _meta:OptionalSchema<ObjectSchema<{}, undefined>, undefined>;
|
|
827
|
+
readonly _meta: v.OptionalSchema<v.ObjectSchema<{}, undefined>, undefined>;
|
|
828
828
|
}, undefined>], undefined>;
|
|
829
829
|
/**
|
|
830
830
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
831
831
|
* for notes on _meta usage.
|
|
832
832
|
*/
|
|
833
|
-
readonly _meta:OptionalSchema<LooseObjectSchema<{}, undefined>, undefined>;
|
|
833
|
+
readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
|
|
834
834
|
}, undefined>;
|
|
835
835
|
/**
|
|
836
836
|
* The server's response to a completion/complete request
|
|
837
837
|
*/
|
|
838
|
-
const CompleteResultSchema:ObjectSchema<{
|
|
839
|
-
readonly completion:ObjectSchema<{
|
|
838
|
+
const CompleteResultSchema: v.ObjectSchema<{
|
|
839
|
+
readonly completion: v.ObjectSchema<{
|
|
840
840
|
/**
|
|
841
841
|
* An array of completion values. Must not exceed 100 items.
|
|
842
842
|
*/
|
|
843
|
-
readonly values:SchemaWithPipe<readonly [ArraySchema<StringSchema<undefined>, undefined>,MaxLengthAction<string[], 100, undefined>]>;
|
|
843
|
+
readonly values: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>;
|
|
844
844
|
/**
|
|
845
845
|
* The total number of completion options available. This can exceed the number of values actually sent in the response.
|
|
846
846
|
*/
|
|
847
|
-
readonly total:OptionalSchema<SchemaWithPipe<readonly [NumberSchema<undefined>,IntegerAction<number, undefined>]>, undefined>;
|
|
847
|
+
readonly total: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
848
848
|
/**
|
|
849
849
|
* Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
|
|
850
850
|
*/
|
|
851
|
-
readonly hasMore:OptionalSchema<BooleanSchema<undefined>, undefined>;
|
|
851
|
+
readonly hasMore: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
852
852
|
}, undefined>;
|
|
853
853
|
/**
|
|
854
854
|
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
855
855
|
* for notes on _meta usage.
|
|
856
856
|
*/
|
|
857
|
-
readonly _meta:OptionalSchema<LooseObjectSchema<{}, undefined>, undefined>;
|
|
857
|
+
readonly _meta: v.OptionalSchema<v.LooseObjectSchema<{}, undefined>, undefined>;
|
|
858
858
|
}, undefined>;
|
|
859
|
-
type ClientCapabilities_1 =InferInput<typeof ClientCapabilitiesSchema>;
|
|
860
|
-
type ServerCapabilities =InferInput<typeof ServerCapabilitiesSchema>;
|
|
861
|
-
type InitializeRequestParams =InferInput<typeof InitializeRequestParamsSchema>;
|
|
862
|
-
type CallToolResult =InferInput<typeof CallToolResultSchema>;
|
|
863
|
-
type ReadResourceResult =InferInput<typeof ReadResourceResultSchema>;
|
|
864
|
-
type GetPromptResult =InferInput<typeof GetPromptResultSchema>;
|
|
865
|
-
type CompleteResult =InferInput<typeof CompleteResultSchema>;
|
|
866
|
-
type CreateMessageRequestParams =InferInput<typeof CreateMessageRequestParamsSchema>;
|
|
867
|
-
type CreateMessageResult =InferInput<typeof CreateMessageResultSchema>;
|
|
868
|
-
type Resource =InferInput<typeof ResourceSchema>;
|
|
869
|
-
type JSONRPCResponse =InferInput<typeof JSONRPCResponseSchema>;
|
|
870
|
-
type LoggingLevel =InferInput<typeof LoggingLevelSchema>;
|
|
871
|
-
type ToolAnnotations =InferInput<typeof ToolAnnotationsSchema>;
|
|
859
|
+
type ClientCapabilities_1 = v.InferInput<typeof ClientCapabilitiesSchema>;
|
|
860
|
+
type ServerCapabilities = v.InferInput<typeof ServerCapabilitiesSchema>;
|
|
861
|
+
type InitializeRequestParams = v.InferInput<typeof InitializeRequestParamsSchema>;
|
|
862
|
+
type CallToolResult = v.InferInput<typeof CallToolResultSchema>;
|
|
863
|
+
type ReadResourceResult = v.InferInput<typeof ReadResourceResultSchema>;
|
|
864
|
+
type GetPromptResult = v.InferInput<typeof GetPromptResultSchema>;
|
|
865
|
+
type CompleteResult = v.InferInput<typeof CompleteResultSchema>;
|
|
866
|
+
type CreateMessageRequestParams = v.InferInput<typeof CreateMessageRequestParamsSchema>;
|
|
867
|
+
type CreateMessageResult = v.InferInput<typeof CreateMessageResultSchema>;
|
|
868
|
+
type Resource = v.InferInput<typeof ResourceSchema>;
|
|
869
|
+
type JSONRPCResponse = v.InferInput<typeof JSONRPCResponseSchema>;
|
|
870
|
+
type LoggingLevel = v.InferInput<typeof LoggingLevelSchema>;
|
|
871
|
+
type ToolAnnotations = v.InferInput<typeof ToolAnnotationsSchema>;
|
|
872
872
|
// Helper type to remove whitespace
|
|
873
873
|
type Trim<S extends string> = S extends ` ${infer R}`
|
|
874
874
|
? Trim<R>
|