@debugelectron/debug-electron-mcp 1.6.8 → 1.6.10
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 +29 -14
- package/dist/handlers.d.ts +2 -3
- package/dist/index.js +3523 -823
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +11 -8
- package/dist/screenshot.d.ts +10 -1
- package/dist/utils/electron-enhanced-commands.d.ts +6 -0
- package/package.json +4 -2
package/dist/schemas.d.ts
CHANGED
|
@@ -7,17 +7,17 @@ export declare const CommandArgsSchema: z.ZodObject<{
|
|
|
7
7
|
message: z.ZodOptional<z.ZodString>;
|
|
8
8
|
code: z.ZodOptional<z.ZodString>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
text?: string | undefined;
|
|
10
11
|
value?: string | undefined;
|
|
11
12
|
code?: string | undefined;
|
|
12
13
|
message?: string | undefined;
|
|
13
|
-
text?: string | undefined;
|
|
14
14
|
selector?: string | undefined;
|
|
15
15
|
placeholder?: string | undefined;
|
|
16
16
|
}, {
|
|
17
|
+
text?: string | undefined;
|
|
17
18
|
value?: string | undefined;
|
|
18
19
|
code?: string | undefined;
|
|
19
20
|
message?: string | undefined;
|
|
20
|
-
text?: string | undefined;
|
|
21
21
|
selector?: string | undefined;
|
|
22
22
|
placeholder?: string | undefined;
|
|
23
23
|
}>;
|
|
@@ -31,17 +31,17 @@ export declare const SendCommandToElectronSchema: z.ZodObject<{
|
|
|
31
31
|
message: z.ZodOptional<z.ZodString>;
|
|
32
32
|
code: z.ZodOptional<z.ZodString>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
text?: string | undefined;
|
|
34
35
|
value?: string | undefined;
|
|
35
36
|
code?: string | undefined;
|
|
36
37
|
message?: string | undefined;
|
|
37
|
-
text?: string | undefined;
|
|
38
38
|
selector?: string | undefined;
|
|
39
39
|
placeholder?: string | undefined;
|
|
40
40
|
}, {
|
|
41
|
+
text?: string | undefined;
|
|
41
42
|
value?: string | undefined;
|
|
42
43
|
code?: string | undefined;
|
|
43
44
|
message?: string | undefined;
|
|
44
|
-
text?: string | undefined;
|
|
45
45
|
selector?: string | undefined;
|
|
46
46
|
placeholder?: string | undefined;
|
|
47
47
|
}>>;
|
|
@@ -49,37 +49,40 @@ export declare const SendCommandToElectronSchema: z.ZodObject<{
|
|
|
49
49
|
windowTitle: z.ZodOptional<z.ZodString>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
51
|
command: string;
|
|
52
|
+
targetId?: string | undefined;
|
|
52
53
|
windowTitle?: string | undefined;
|
|
53
54
|
args?: {
|
|
55
|
+
text?: string | undefined;
|
|
54
56
|
value?: string | undefined;
|
|
55
57
|
code?: string | undefined;
|
|
56
58
|
message?: string | undefined;
|
|
57
|
-
text?: string | undefined;
|
|
58
59
|
selector?: string | undefined;
|
|
59
60
|
placeholder?: string | undefined;
|
|
60
61
|
} | undefined;
|
|
61
|
-
targetId?: string | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
command: string;
|
|
64
|
+
targetId?: string | undefined;
|
|
64
65
|
windowTitle?: string | undefined;
|
|
65
66
|
args?: {
|
|
67
|
+
text?: string | undefined;
|
|
66
68
|
value?: string | undefined;
|
|
67
69
|
code?: string | undefined;
|
|
68
70
|
message?: string | undefined;
|
|
69
|
-
text?: string | undefined;
|
|
70
71
|
selector?: string | undefined;
|
|
71
72
|
placeholder?: string | undefined;
|
|
72
73
|
} | undefined;
|
|
73
|
-
targetId?: string | undefined;
|
|
74
74
|
}>;
|
|
75
75
|
export declare const TakeScreenshotSchema: z.ZodObject<{
|
|
76
76
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
77
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
77
78
|
windowTitle: z.ZodOptional<z.ZodString>;
|
|
78
79
|
}, "strip", z.ZodTypeAny, {
|
|
79
80
|
outputPath?: string | undefined;
|
|
81
|
+
targetId?: string | undefined;
|
|
80
82
|
windowTitle?: string | undefined;
|
|
81
83
|
}, {
|
|
82
84
|
outputPath?: string | undefined;
|
|
85
|
+
targetId?: string | undefined;
|
|
83
86
|
windowTitle?: string | undefined;
|
|
84
87
|
}>;
|
|
85
88
|
export declare const ReadElectronLogsSchema: z.ZodObject<{
|
package/dist/screenshot.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
/** Options for taking a screenshot */
|
|
2
|
+
export interface ScreenshotOptions {
|
|
3
|
+
/** Path to save the screenshot (optional, defaults to in-memory only) */
|
|
4
|
+
outputPath?: string;
|
|
5
|
+
/** CDP target ID to screenshot a specific window (exact match, takes priority over windowTitle) */
|
|
6
|
+
targetId?: string;
|
|
7
|
+
/** Window title to screenshot (case-insensitive partial match) */
|
|
8
|
+
windowTitle?: string;
|
|
9
|
+
}
|
|
1
10
|
/**
|
|
2
11
|
* Take a screenshot of the running Electron application using Chrome DevTools Protocol
|
|
3
12
|
*/
|
|
4
|
-
export declare function takeScreenshot(
|
|
13
|
+
export declare function takeScreenshot(options?: ScreenshotOptions): Promise<{
|
|
5
14
|
filePath?: string;
|
|
6
15
|
base64: string;
|
|
7
16
|
data: string;
|
|
@@ -6,6 +6,12 @@ export interface CommandArgs {
|
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
message?: string;
|
|
8
8
|
code?: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
startSelector?: string;
|
|
12
|
+
endSelector?: string;
|
|
13
|
+
attribute?: string;
|
|
14
|
+
slowly?: boolean;
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
17
|
* Enhanced command executor with improved React support.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debugelectron/debug-electron-mcp",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.10",
|
|
4
4
|
"description": "MCP server for Electron application automation and management. See MCP_USAGE_GUIDE.md for proper argument structure examples.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
55
55
|
"@types/ws": "^8.18.1",
|
|
56
|
+
"ajv": "^8.17.1",
|
|
57
|
+
"ajv-formats": "^3.0.1",
|
|
56
58
|
"electron": "^28.0.0",
|
|
57
59
|
"playwright": "^1.54.1",
|
|
58
60
|
"ws": "^8.18.3",
|
|
@@ -100,4 +102,4 @@
|
|
|
100
102
|
"url": "https://github.com/TheDarkSkyXD/debug-electron-mcp/issues"
|
|
101
103
|
},
|
|
102
104
|
"homepage": "https://github.com/TheDarkSkyXD/debug-electron-mcp#readme"
|
|
103
|
-
}
|
|
105
|
+
}
|