mcp-use 1.9.1-canary.0 → 1.10.0-canary.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/README.md +9 -6
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-MUZ5WYE3.js → chunk-BFFS67JY.js} +1 -1
- package/dist/{chunk-D22NUQTL.js → chunk-HRWL2M2I.js} +184 -0
- package/dist/{chunk-5URNFWCQ.js → chunk-LWVK6RXA.js} +8 -3
- package/dist/{chunk-KHTTBIRP.js → chunk-Q3PFK7Y4.js} +138 -1
- package/dist/{context-storage-TXQ4DVSS.js → context-storage-NA4MHWOZ.js} +3 -1
- package/dist/index.cjs +184 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/src/browser.cjs +184 -0
- package/dist/src/browser.js +1 -1
- package/dist/src/react/index.cjs +184 -0
- package/dist/src/react/index.js +2 -2
- package/dist/src/server/context-storage.d.ts +8 -1
- package/dist/src/server/context-storage.d.ts.map +1 -1
- package/dist/src/server/endpoints/mount-mcp.d.ts.map +1 -1
- package/dist/src/server/index.cjs +595 -63
- package/dist/src/server/index.d.ts +3 -3
- package/dist/src/server/index.d.ts.map +1 -1
- package/dist/src/server/index.js +459 -67
- package/dist/src/server/mcp-server.d.ts +49 -9
- package/dist/src/server/mcp-server.d.ts.map +1 -1
- package/dist/src/server/oauth/providers.d.ts +27 -9
- package/dist/src/server/oauth/providers.d.ts.map +1 -1
- package/dist/src/server/prompts/index.d.ts.map +1 -1
- package/dist/src/server/resources/index.d.ts +43 -23
- package/dist/src/server/resources/index.d.ts.map +1 -1
- package/dist/src/server/resources/subscriptions.d.ts +54 -0
- package/dist/src/server/resources/subscriptions.d.ts.map +1 -0
- package/dist/src/server/sessions/session-manager.d.ts +9 -1
- package/dist/src/server/sessions/session-manager.d.ts.map +1 -1
- package/dist/src/server/tools/tool-execution-helpers.d.ts +30 -17
- package/dist/src/server/tools/tool-execution-helpers.d.ts.map +1 -1
- package/dist/src/server/tools/tool-registration.d.ts.map +1 -1
- package/dist/src/server/types/common.d.ts +24 -8
- package/dist/src/server/types/common.d.ts.map +1 -1
- package/dist/src/server/types/index.d.ts +3 -3
- package/dist/src/server/types/index.d.ts.map +1 -1
- package/dist/src/server/types/prompt.d.ts +2 -1
- package/dist/src/server/types/prompt.d.ts.map +1 -1
- package/dist/src/server/types/resource.d.ts +53 -8
- package/dist/src/server/types/resource.d.ts.map +1 -1
- package/dist/src/server/types/tool-context.d.ts +131 -0
- package/dist/src/server/types/tool-context.d.ts.map +1 -1
- package/dist/src/server/types/tool.d.ts +1 -1
- package/dist/src/server/types/tool.d.ts.map +1 -1
- package/dist/src/server/utils/response-helpers.d.ts +48 -4
- package/dist/src/server/utils/response-helpers.d.ts.map +1 -1
- package/dist/src/server/widgets/index.d.ts +2 -2
- package/dist/src/server/widgets/ui-resource-registration.d.ts +2 -2
- package/dist/src/session.d.ts +337 -2
- package/dist/src/session.d.ts.map +1 -1
- package/dist/{tool-execution-helpers-IVUDHXMK.js → tool-execution-helpers-RRMGLAHR.js} +7 -1
- package/package.json +3 -3
package/dist/src/session.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Notification, Root } from "@modelcontextprotocol/sdk/types.js";
|
|
1
|
+
import type { CallToolResult, Notification, Root, Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import type { RequestOptions } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
2
3
|
import type { BaseConnector, NotificationHandler } from "./connectors/base.js";
|
|
3
4
|
export declare class MCPSession {
|
|
4
5
|
readonly connector: BaseConnector;
|
|
@@ -45,6 +46,340 @@ export declare class MCPSession {
|
|
|
45
46
|
* Get the current roots.
|
|
46
47
|
*/
|
|
47
48
|
getRoots(): Root[];
|
|
49
|
+
/**
|
|
50
|
+
* Get the cached list of tools from the server.
|
|
51
|
+
*
|
|
52
|
+
* @returns Array of available tools
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const tools = session.tools;
|
|
57
|
+
* console.log(`Available tools: ${tools.map(t => t.name).join(", ")}`);
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
get tools(): Tool[];
|
|
61
|
+
/**
|
|
62
|
+
* Get the server capabilities advertised during initialization.
|
|
63
|
+
*
|
|
64
|
+
* @returns Server capabilities object
|
|
65
|
+
*/
|
|
66
|
+
get serverCapabilities(): any;
|
|
67
|
+
/**
|
|
68
|
+
* Get the server information (name and version).
|
|
69
|
+
*
|
|
70
|
+
* @returns Server info object or null if not available
|
|
71
|
+
*/
|
|
72
|
+
get serverInfo(): {
|
|
73
|
+
name: string;
|
|
74
|
+
version?: string;
|
|
75
|
+
} | null;
|
|
76
|
+
/**
|
|
77
|
+
* Call a tool on the server.
|
|
78
|
+
*
|
|
79
|
+
* @param name - Name of the tool to call
|
|
80
|
+
* @param args - Arguments to pass to the tool
|
|
81
|
+
* @param options - Optional request options (timeout, progress handlers, etc.)
|
|
82
|
+
* @returns Result from the tool execution
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```typescript
|
|
86
|
+
* const result = await session.callTool("add", { a: 5, b: 3 });
|
|
87
|
+
* console.log(`Result: ${result.content[0].text}`);
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
callTool(name: string, args: Record<string, any>, options?: RequestOptions): Promise<CallToolResult>;
|
|
91
|
+
/**
|
|
92
|
+
* List resources from the server with optional pagination.
|
|
93
|
+
*
|
|
94
|
+
* @param cursor - Optional cursor for pagination
|
|
95
|
+
* @param options - Request options
|
|
96
|
+
* @returns Resource list with optional nextCursor for pagination
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* const result = await session.listResources();
|
|
101
|
+
* console.log(`Found ${result.resources.length} resources`);
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
listResources(cursor?: string, options?: RequestOptions): Promise<{
|
|
105
|
+
[x: string]: unknown;
|
|
106
|
+
resources: {
|
|
107
|
+
uri: string;
|
|
108
|
+
name: string;
|
|
109
|
+
description?: string | undefined;
|
|
110
|
+
mimeType?: string | undefined;
|
|
111
|
+
_meta?: {
|
|
112
|
+
[x: string]: unknown;
|
|
113
|
+
} | undefined;
|
|
114
|
+
icons?: {
|
|
115
|
+
src: string;
|
|
116
|
+
mimeType?: string | undefined;
|
|
117
|
+
sizes?: string[] | undefined;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
title?: string | undefined;
|
|
120
|
+
}[];
|
|
121
|
+
_meta?: {
|
|
122
|
+
[x: string]: unknown;
|
|
123
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
taskId: string;
|
|
126
|
+
} | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
nextCursor?: string | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
/**
|
|
131
|
+
* List all resources from the server, automatically handling pagination.
|
|
132
|
+
*
|
|
133
|
+
* @param options - Request options
|
|
134
|
+
* @returns Complete list of all resources
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```typescript
|
|
138
|
+
* const result = await session.listAllResources();
|
|
139
|
+
* console.log(`Total resources: ${result.resources.length}`);
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
listAllResources(options?: RequestOptions): Promise<{
|
|
143
|
+
resources: any[];
|
|
144
|
+
}>;
|
|
145
|
+
/**
|
|
146
|
+
* List resource templates from the server.
|
|
147
|
+
*
|
|
148
|
+
* @param options - Request options
|
|
149
|
+
* @returns List of available resource templates
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```typescript
|
|
153
|
+
* const result = await session.listResourceTemplates();
|
|
154
|
+
* console.log(`Available templates: ${result.resourceTemplates.length}`);
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
listResourceTemplates(options?: RequestOptions): Promise<{
|
|
158
|
+
[x: string]: unknown;
|
|
159
|
+
resourceTemplates: {
|
|
160
|
+
uriTemplate: string;
|
|
161
|
+
name: string;
|
|
162
|
+
description?: string | undefined;
|
|
163
|
+
mimeType?: string | undefined;
|
|
164
|
+
_meta?: {
|
|
165
|
+
[x: string]: unknown;
|
|
166
|
+
} | undefined;
|
|
167
|
+
icons?: {
|
|
168
|
+
src: string;
|
|
169
|
+
mimeType?: string | undefined;
|
|
170
|
+
sizes?: string[] | undefined;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
title?: string | undefined;
|
|
173
|
+
}[];
|
|
174
|
+
_meta?: {
|
|
175
|
+
[x: string]: unknown;
|
|
176
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
177
|
+
[x: string]: unknown;
|
|
178
|
+
taskId: string;
|
|
179
|
+
} | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
nextCursor?: string | undefined;
|
|
182
|
+
}>;
|
|
183
|
+
/**
|
|
184
|
+
* Read a resource by URI.
|
|
185
|
+
*
|
|
186
|
+
* @param uri - URI of the resource to read
|
|
187
|
+
* @param options - Request options
|
|
188
|
+
* @returns Resource content
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```typescript
|
|
192
|
+
* const resource = await session.readResource("file:///path/to/file.txt");
|
|
193
|
+
* console.log(resource.contents);
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
readResource(uri: string, options?: RequestOptions): Promise<{
|
|
197
|
+
[x: string]: unknown;
|
|
198
|
+
contents: ({
|
|
199
|
+
uri: string;
|
|
200
|
+
text: string;
|
|
201
|
+
mimeType?: string | undefined;
|
|
202
|
+
_meta?: Record<string, unknown> | undefined;
|
|
203
|
+
} | {
|
|
204
|
+
uri: string;
|
|
205
|
+
blob: string;
|
|
206
|
+
mimeType?: string | undefined;
|
|
207
|
+
_meta?: Record<string, unknown> | undefined;
|
|
208
|
+
})[];
|
|
209
|
+
_meta?: {
|
|
210
|
+
[x: string]: unknown;
|
|
211
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
212
|
+
[x: string]: unknown;
|
|
213
|
+
taskId: string;
|
|
214
|
+
} | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
}>;
|
|
217
|
+
/**
|
|
218
|
+
* Subscribe to resource updates.
|
|
219
|
+
*
|
|
220
|
+
* @param uri - URI of the resource to subscribe to
|
|
221
|
+
* @param options - Request options
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```typescript
|
|
225
|
+
* await session.subscribeToResource("file:///path/to/file.txt");
|
|
226
|
+
* // Now you'll receive notifications when this resource changes
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
229
|
+
subscribeToResource(uri: string, options?: RequestOptions): Promise<{
|
|
230
|
+
_meta?: {
|
|
231
|
+
[x: string]: unknown;
|
|
232
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
233
|
+
[x: string]: unknown;
|
|
234
|
+
taskId: string;
|
|
235
|
+
} | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
}>;
|
|
238
|
+
/**
|
|
239
|
+
* Unsubscribe from resource updates.
|
|
240
|
+
*
|
|
241
|
+
* @param uri - URI of the resource to unsubscribe from
|
|
242
|
+
* @param options - Request options
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* ```typescript
|
|
246
|
+
* await session.unsubscribeFromResource("file:///path/to/file.txt");
|
|
247
|
+
* ```
|
|
248
|
+
*/
|
|
249
|
+
unsubscribeFromResource(uri: string, options?: RequestOptions): Promise<{
|
|
250
|
+
_meta?: {
|
|
251
|
+
[x: string]: unknown;
|
|
252
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
253
|
+
[x: string]: unknown;
|
|
254
|
+
taskId: string;
|
|
255
|
+
} | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
}>;
|
|
258
|
+
/**
|
|
259
|
+
* List available prompts from the server.
|
|
260
|
+
*
|
|
261
|
+
* @returns List of available prompts
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* ```typescript
|
|
265
|
+
* const result = await session.listPrompts();
|
|
266
|
+
* console.log(`Available prompts: ${result.prompts.length}`);
|
|
267
|
+
* ```
|
|
268
|
+
*/
|
|
269
|
+
listPrompts(): Promise<{
|
|
270
|
+
[x: string]: unknown;
|
|
271
|
+
prompts: {
|
|
272
|
+
name: string;
|
|
273
|
+
description?: string | undefined;
|
|
274
|
+
arguments?: {
|
|
275
|
+
name: string;
|
|
276
|
+
description?: string | undefined;
|
|
277
|
+
required?: boolean | undefined;
|
|
278
|
+
}[] | undefined;
|
|
279
|
+
_meta?: {
|
|
280
|
+
[x: string]: unknown;
|
|
281
|
+
} | undefined;
|
|
282
|
+
icons?: {
|
|
283
|
+
src: string;
|
|
284
|
+
mimeType?: string | undefined;
|
|
285
|
+
sizes?: string[] | undefined;
|
|
286
|
+
}[] | undefined;
|
|
287
|
+
title?: string | undefined;
|
|
288
|
+
}[];
|
|
289
|
+
_meta?: {
|
|
290
|
+
[x: string]: unknown;
|
|
291
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
292
|
+
[x: string]: unknown;
|
|
293
|
+
taskId: string;
|
|
294
|
+
} | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
nextCursor?: string | undefined;
|
|
297
|
+
}>;
|
|
298
|
+
/**
|
|
299
|
+
* Get a specific prompt with arguments.
|
|
300
|
+
*
|
|
301
|
+
* @param name - Name of the prompt to get
|
|
302
|
+
* @param args - Arguments for the prompt
|
|
303
|
+
* @returns Prompt result
|
|
304
|
+
*
|
|
305
|
+
* @example
|
|
306
|
+
* ```typescript
|
|
307
|
+
* const prompt = await session.getPrompt("greeting", { name: "Alice" });
|
|
308
|
+
* console.log(prompt.messages);
|
|
309
|
+
* ```
|
|
310
|
+
*/
|
|
311
|
+
getPrompt(name: string, args: Record<string, any>): Promise<{
|
|
312
|
+
[x: string]: unknown;
|
|
313
|
+
messages: {
|
|
314
|
+
role: "user" | "assistant";
|
|
315
|
+
content: {
|
|
316
|
+
type: "text";
|
|
317
|
+
text: string;
|
|
318
|
+
_meta?: Record<string, unknown> | undefined;
|
|
319
|
+
} | {
|
|
320
|
+
type: "image";
|
|
321
|
+
data: string;
|
|
322
|
+
mimeType: string;
|
|
323
|
+
_meta?: Record<string, unknown> | undefined;
|
|
324
|
+
} | {
|
|
325
|
+
type: "audio";
|
|
326
|
+
data: string;
|
|
327
|
+
mimeType: string;
|
|
328
|
+
_meta?: Record<string, unknown> | undefined;
|
|
329
|
+
} | {
|
|
330
|
+
type: "resource";
|
|
331
|
+
resource: {
|
|
332
|
+
uri: string;
|
|
333
|
+
text: string;
|
|
334
|
+
mimeType?: string | undefined;
|
|
335
|
+
_meta?: Record<string, unknown> | undefined;
|
|
336
|
+
} | {
|
|
337
|
+
uri: string;
|
|
338
|
+
blob: string;
|
|
339
|
+
mimeType?: string | undefined;
|
|
340
|
+
_meta?: Record<string, unknown> | undefined;
|
|
341
|
+
};
|
|
342
|
+
_meta?: Record<string, unknown> | undefined;
|
|
343
|
+
} | {
|
|
344
|
+
uri: string;
|
|
345
|
+
name: string;
|
|
346
|
+
type: "resource_link";
|
|
347
|
+
description?: string | undefined;
|
|
348
|
+
mimeType?: string | undefined;
|
|
349
|
+
_meta?: {
|
|
350
|
+
[x: string]: unknown;
|
|
351
|
+
} | undefined;
|
|
352
|
+
icons?: {
|
|
353
|
+
src: string;
|
|
354
|
+
mimeType?: string | undefined;
|
|
355
|
+
sizes?: string[] | undefined;
|
|
356
|
+
}[] | undefined;
|
|
357
|
+
title?: string | undefined;
|
|
358
|
+
};
|
|
359
|
+
}[];
|
|
360
|
+
_meta?: {
|
|
361
|
+
[x: string]: unknown;
|
|
362
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
363
|
+
[x: string]: unknown;
|
|
364
|
+
taskId: string;
|
|
365
|
+
} | undefined;
|
|
366
|
+
} | undefined;
|
|
367
|
+
description?: string | undefined;
|
|
368
|
+
}>;
|
|
369
|
+
/**
|
|
370
|
+
* Send a raw request through the client.
|
|
371
|
+
*
|
|
372
|
+
* @param method - MCP method name
|
|
373
|
+
* @param params - Request parameters
|
|
374
|
+
* @param options - Request options
|
|
375
|
+
* @returns Response from the server
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```typescript
|
|
379
|
+
* const result = await session.request("custom/method", { key: "value" });
|
|
380
|
+
* ```
|
|
381
|
+
*/
|
|
382
|
+
request(method: string, params?: Record<string, any> | null, options?: RequestOptions): Promise<any>;
|
|
48
383
|
}
|
|
49
|
-
export type { Notification, Root };
|
|
384
|
+
export type { CallToolResult, Notification, Root, Tool };
|
|
50
385
|
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,IAAI,EACJ,IAAI,EACL,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,qBAAa,UAAU;IACrB,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAClC,OAAO,CAAC,WAAW,CAAU;gBAEjB,SAAS,EAAE,aAAa,EAAE,WAAW,UAAO;IAKlD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAOjC,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,EAAE,CAAC,KAAK,EAAE,cAAc,EA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2
3
|
createElicitMethod,
|
|
3
4
|
createEnhancedContext,
|
|
4
5
|
createReportProgressMethod,
|
|
5
6
|
createSampleMethod,
|
|
6
7
|
findSessionContext,
|
|
8
|
+
isValidLogLevel,
|
|
7
9
|
parseElicitParams,
|
|
8
10
|
sendProgressNotification,
|
|
11
|
+
shouldLogMessage,
|
|
9
12
|
withTimeout
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Q3PFK7Y4.js";
|
|
11
14
|
import "./chunk-KUEVOU4M.js";
|
|
12
15
|
import "./chunk-MTHLLDCX.js";
|
|
13
16
|
import "./chunk-3GQAWCBQ.js";
|
|
14
17
|
export {
|
|
18
|
+
VALID_LOG_LEVELS,
|
|
15
19
|
createElicitMethod,
|
|
16
20
|
createEnhancedContext,
|
|
17
21
|
createReportProgressMethod,
|
|
18
22
|
createSampleMethod,
|
|
19
23
|
findSessionContext,
|
|
24
|
+
isValidLogLevel,
|
|
20
25
|
parseElicitParams,
|
|
21
26
|
sendProgressNotification,
|
|
27
|
+
shouldLogMessage,
|
|
22
28
|
withTimeout
|
|
23
29
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-use",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0-canary.2",
|
|
5
5
|
"description": "Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -113,8 +113,8 @@
|
|
|
113
113
|
"posthog-node": "^5.14.1",
|
|
114
114
|
"ws": "^8.18.3",
|
|
115
115
|
"zod": "^4.1.13",
|
|
116
|
-
"@mcp-use/cli": "2.
|
|
117
|
-
"@mcp-use/inspector": "0.
|
|
116
|
+
"@mcp-use/cli": "2.5.0-canary.2",
|
|
117
|
+
"@mcp-use/inspector": "0.12.0-canary.2"
|
|
118
118
|
},
|
|
119
119
|
"optionalDependencies": {
|
|
120
120
|
"chalk": "^5.6.2",
|