@mcp-use/cli 3.2.1-canary.1 → 3.2.1-canary.3
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/client.d.ts +0 -35
- package/dist/commands/client.d.ts.map +1 -1
- package/dist/commands/screenshot.d.ts +3 -24
- package/dist/commands/screenshot.d.ts.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/api.d.ts +12 -11
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/cdp-screenshot.d.ts +2 -1
- package/dist/utils/cdp-screenshot.d.ts.map +1 -1
- package/dist/utils/cloud-urls.d.ts +0 -1
- package/dist/utils/cloud-urls.d.ts.map +1 -1
- package/dist/utils/config.d.ts +2 -1
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/format.d.ts +3 -2
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/git.d.ts +2 -28
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/project-link.d.ts +2 -4
- package/dist/utils/project-link.d.ts.map +1 -1
- package/dist/utils/session-storage.d.ts +2 -1
- package/dist/utils/session-storage.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -13,41 +13,6 @@ export declare const RESERVED_CLIENT_SUBCOMMANDS: Set<string>;
|
|
|
13
13
|
* name — route to a tailored error instead of "unknown command".
|
|
14
14
|
*/
|
|
15
15
|
export declare const PER_CLIENT_SCOPES: Set<string>;
|
|
16
|
-
export declare function connectCommand(name: string | undefined, urlOrCommand: string | undefined, options: {
|
|
17
|
-
stdio?: boolean;
|
|
18
|
-
auth?: string;
|
|
19
|
-
oauth?: boolean;
|
|
20
|
-
authTimeout?: string;
|
|
21
|
-
}): Promise<void>;
|
|
22
|
-
export declare function disconnectCommand(name: string): Promise<void>;
|
|
23
|
-
export declare function removeClientCommand(name: string): Promise<void>;
|
|
24
|
-
export declare function listClientsCommand(): Promise<void>;
|
|
25
|
-
export declare function listToolsCommand(name: string, options: {
|
|
26
|
-
json?: boolean;
|
|
27
|
-
}): Promise<void>;
|
|
28
|
-
export declare function describeToolCommand(name: string, toolName: string): Promise<void>;
|
|
29
|
-
export declare function callToolCommand(name: string, toolName: string, argsList?: string[], options?: {
|
|
30
|
-
timeout?: number;
|
|
31
|
-
json?: boolean;
|
|
32
|
-
screenshot?: boolean;
|
|
33
|
-
screenshotOutput?: string;
|
|
34
|
-
screenshotDeviceScaleFactor?: string;
|
|
35
|
-
}): Promise<void>;
|
|
36
|
-
export declare function listResourcesCommand(name: string, options: {
|
|
37
|
-
json?: boolean;
|
|
38
|
-
}): Promise<void>;
|
|
39
|
-
export declare function readResourceCommand(name: string, uri: string, options: {
|
|
40
|
-
json?: boolean;
|
|
41
|
-
}): Promise<void>;
|
|
42
|
-
export declare function subscribeResourceCommand(name: string, uri: string): Promise<void>;
|
|
43
|
-
export declare function unsubscribeResourceCommand(name: string, uri: string): Promise<void>;
|
|
44
|
-
export declare function listPromptsCommand(name: string, options: {
|
|
45
|
-
json?: boolean;
|
|
46
|
-
}): Promise<void>;
|
|
47
|
-
export declare function getPromptCommand(name: string, promptName: string, argsList?: string[], options?: {
|
|
48
|
-
json?: boolean;
|
|
49
|
-
}): Promise<void>;
|
|
50
|
-
export declare function interactiveCommand(name: string): Promise<void>;
|
|
51
16
|
/**
|
|
52
17
|
* Top-level `client` command. Exposes only commands that do not target an
|
|
53
18
|
* existing saved server: `connect` (which creates one) and `list`. Per-server
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/commands/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqDpC;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,aAMtC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,aAQ5B,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/commands/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqDpC;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,aAMtC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,aAQ5B,CAAC;AAqhCH;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAyC7C;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA2H5D"}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import type { MCPSession } from "mcp-use/client";
|
|
3
|
-
interface ScreenshotOptions {
|
|
4
|
-
tool?: string;
|
|
5
|
-
width: string;
|
|
6
|
-
height: string;
|
|
7
|
-
inspector?: string;
|
|
8
|
-
mcp?: string;
|
|
9
|
-
theme: "light" | "dark";
|
|
10
|
-
output?: string;
|
|
11
|
-
waitFor?: string;
|
|
12
|
-
delay?: string;
|
|
13
|
-
quiet?: boolean;
|
|
14
|
-
timeout: string;
|
|
15
|
-
cdpUrl?: string;
|
|
16
|
-
header?: string[];
|
|
17
|
-
deviceScaleFactor?: string;
|
|
18
|
-
}
|
|
19
|
-
interface ScreenshotContext {
|
|
20
|
-
sessionName?: string;
|
|
21
|
-
usagePrefix: string;
|
|
22
|
-
}
|
|
23
3
|
/**
|
|
24
4
|
* Curl-style `Key: Value` parser. Splits on the first `:` so values may
|
|
25
5
|
* contain colons, and trims both sides so `Authorization:Bearer xyz` and
|
|
@@ -34,14 +14,14 @@ export declare function parseHeaderArgs(args: string[]): Record<string, string>;
|
|
|
34
14
|
export declare function detectToolResourceUri(tool: {
|
|
35
15
|
_meta?: Record<string, unknown>;
|
|
36
16
|
} | undefined | null): string | null;
|
|
37
|
-
|
|
17
|
+
interface CaptureToolScreenshotInputs {
|
|
38
18
|
session: MCPSession;
|
|
39
19
|
toolName: string;
|
|
40
20
|
toolArgs: Record<string, unknown>;
|
|
41
21
|
toolOutput: unknown;
|
|
42
22
|
resourceUri: string;
|
|
43
23
|
}
|
|
44
|
-
|
|
24
|
+
interface CaptureToolScreenshotOptions {
|
|
45
25
|
width?: number;
|
|
46
26
|
height?: number;
|
|
47
27
|
theme?: "light" | "dark";
|
|
@@ -64,7 +44,7 @@ export interface CaptureToolScreenshotOptions {
|
|
|
64
44
|
*/
|
|
65
45
|
deviceScaleFactor?: number;
|
|
66
46
|
}
|
|
67
|
-
|
|
47
|
+
interface CaptureToolScreenshotResult {
|
|
68
48
|
outputPath: string;
|
|
69
49
|
width: number;
|
|
70
50
|
height: number;
|
|
@@ -90,7 +70,6 @@ export declare function parseDimension(raw: string, name: string): number;
|
|
|
90
70
|
*/
|
|
91
71
|
export declare function parseDeviceScaleFactor(raw: string): number;
|
|
92
72
|
export declare function requiresArguments(inputSchema: unknown): boolean;
|
|
93
|
-
export declare function screenshotCommand(options: ScreenshotOptions, argsList: string[] | undefined, context: ScreenshotContext): Promise<void>;
|
|
94
73
|
/**
|
|
95
74
|
* Top-level ad-hoc form: `mcp-use client screenshot --mcp <url> --tool <name>`.
|
|
96
75
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/commands/screenshot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/commands/screenshot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAwCjD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAa5D;AAED,wBAAgB,eAA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