@mcp-use/cli 2.5.6 → 2.6.0-canary.11
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/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/client.d.ts +95 -0
- package/dist/commands/client.d.ts.map +1 -0
- package/dist/index.cjs +4087 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +3101 -1029
- package/dist/index.js.map +1 -0
- package/dist/utils/format.d.ts +58 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/session-storage.d.ts +65 -0
- package/dist/utils/session-storage.d.ts.map +1 -0
- package/package.json +20 -8
- package/dist/index.mjs +0 -1976
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AA2PA;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CA2FlD;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CA8BnD;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AA2PA;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CA2FlD;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CA8BnD;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAgCnD"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
/**
|
|
3
|
+
* Connect command
|
|
4
|
+
*/
|
|
5
|
+
export declare function connectCommand(urlOrCommand: string, options: {
|
|
6
|
+
name?: string;
|
|
7
|
+
stdio?: boolean;
|
|
8
|
+
auth?: string;
|
|
9
|
+
}): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Disconnect command
|
|
12
|
+
*/
|
|
13
|
+
export declare function disconnectCommand(sessionName?: string, options?: {
|
|
14
|
+
all?: boolean;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* List sessions command
|
|
18
|
+
*/
|
|
19
|
+
export declare function listSessionsCommand(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Switch session command
|
|
22
|
+
*/
|
|
23
|
+
export declare function switchSessionCommand(name: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* List tools command
|
|
26
|
+
*/
|
|
27
|
+
export declare function listToolsCommand(options: {
|
|
28
|
+
session?: string;
|
|
29
|
+
json?: boolean;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Describe tool command
|
|
33
|
+
*/
|
|
34
|
+
export declare function describeToolCommand(toolName: string, options: {
|
|
35
|
+
session?: string;
|
|
36
|
+
}): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Call tool command
|
|
39
|
+
*/
|
|
40
|
+
export declare function callToolCommand(toolName: string, argsJson?: string, options?: {
|
|
41
|
+
session?: string;
|
|
42
|
+
timeout?: number;
|
|
43
|
+
json?: boolean;
|
|
44
|
+
}): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* List resources command
|
|
47
|
+
*/
|
|
48
|
+
export declare function listResourcesCommand(options: {
|
|
49
|
+
session?: string;
|
|
50
|
+
json?: boolean;
|
|
51
|
+
}): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Read resource command
|
|
54
|
+
*/
|
|
55
|
+
export declare function readResourceCommand(uri: string, options: {
|
|
56
|
+
session?: string;
|
|
57
|
+
json?: boolean;
|
|
58
|
+
}): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Subscribe to resource command
|
|
61
|
+
*/
|
|
62
|
+
export declare function subscribeResourceCommand(uri: string, options: {
|
|
63
|
+
session?: string;
|
|
64
|
+
}): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Unsubscribe from resource command
|
|
67
|
+
*/
|
|
68
|
+
export declare function unsubscribeResourceCommand(uri: string, options: {
|
|
69
|
+
session?: string;
|
|
70
|
+
}): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* List prompts command
|
|
73
|
+
*/
|
|
74
|
+
export declare function listPromptsCommand(options: {
|
|
75
|
+
session?: string;
|
|
76
|
+
json?: boolean;
|
|
77
|
+
}): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Get prompt command
|
|
80
|
+
*/
|
|
81
|
+
export declare function getPromptCommand(promptName: string, argsJson?: string, options?: {
|
|
82
|
+
session?: string;
|
|
83
|
+
json?: boolean;
|
|
84
|
+
}): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Interactive mode command
|
|
87
|
+
*/
|
|
88
|
+
export declare function interactiveCommand(options: {
|
|
89
|
+
session?: string;
|
|
90
|
+
}): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Create the client command group
|
|
93
|
+
*/
|
|
94
|
+
export declare function createClientCommand(): Command;
|
|
95
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/commands/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoGpC;;GAEG;AACH,wBAAsB,cAAc,CAClC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE;IACP,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GACA,OAAO,CAAC,IAAI,CAAC,CAiGf;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE;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