@fnrhombus/winforms-mcp 1.5.8 → 1.5.9
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/bin/winforms-mcp.js +41 -1
- package/dist/Rhombus.WinFormsMcp.Rendering.dll +0 -0
- package/dist/rendererhost/net48/Rhombus.WinFormsMcp.RendererHost.exe +0 -0
- package/dist/rendererhost/net48/Rhombus.WinFormsMcp.RendererHost.pdb +0 -0
- package/dist/rendererhost/net48/Rhombus.WinFormsMcp.Rendering.dll +0 -0
- package/dist/rendererhost/net48/Rhombus.WinFormsMcp.Rendering.pdb +0 -0
- package/dist/rendererhost/net8.0-windows/Rhombus.WinFormsMcp.RendererHost.dll +0 -0
- package/dist/rendererhost/net8.0-windows/Rhombus.WinFormsMcp.RendererHost.exe +0 -0
- package/dist/rendererhost/net8.0-windows/Rhombus.WinFormsMcp.RendererHost.pdb +0 -0
- package/dist/rendererhost/net8.0-windows/Rhombus.WinFormsMcp.Rendering.dll +0 -0
- package/dist/rendererhost/net8.0-windows/Rhombus.WinFormsMcp.Rendering.pdb +0 -0
- package/dist/rendererhost/netcoreapp3.1/Rhombus.WinFormsMcp.RendererHost.dll +0 -0
- package/dist/rendererhost/netcoreapp3.1/Rhombus.WinFormsMcp.RendererHost.exe +0 -0
- package/dist/rendererhost/netcoreapp3.1/Rhombus.WinFormsMcp.RendererHost.pdb +0 -0
- package/dist/rendererhost/netcoreapp3.1/Rhombus.WinFormsMcp.Rendering.dll +0 -0
- package/dist/rendererhost/netcoreapp3.1/Rhombus.WinFormsMcp.Rendering.pdb +0 -0
- package/dist/winformsmcp.deps.json +2 -2
- package/dist/winformsmcp.dll +0 -0
- package/dist/winformsmcp.exe +0 -0
- package/package.json +1 -2
- package/index.js +0 -61
package/bin/winforms-mcp.js
CHANGED
|
@@ -1,2 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
const { spawn } = require('child_process');
|
|
7
|
+
|
|
8
|
+
if (os.platform() !== 'win32') {
|
|
9
|
+
console.error('Error: @fnrhombus/winforms-mcp requires Windows (x64)');
|
|
10
|
+
console.error(`Detected platform: ${os.platform()} ${os.arch()}`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if (os.arch() !== 'x64') {
|
|
15
|
+
console.error('Error: @fnrhombus/winforms-mcp requires Windows x64');
|
|
16
|
+
console.error(`Detected architecture: ${os.arch()}`);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const distDir = path.join(__dirname, '..', 'dist');
|
|
21
|
+
const exePath = path.join(distDir, 'winformsmcp.exe');
|
|
22
|
+
|
|
23
|
+
if (!fs.existsSync(exePath)) {
|
|
24
|
+
console.error('Error: winformsmcp executable not found');
|
|
25
|
+
console.error(`Expected at: ${exePath}`);
|
|
26
|
+
console.error('\nTry reinstalling: npm install @fnrhombus/winforms-mcp');
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const child = spawn(exePath, process.argv.slice(2), {
|
|
31
|
+
stdio: 'inherit',
|
|
32
|
+
windowsHide: true,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
child.on('error', (err) => {
|
|
36
|
+
console.error('Failed to start winformsmcp:', err);
|
|
37
|
+
process.exit(1);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
child.on('exit', (code) => {
|
|
41
|
+
process.exit(code);
|
|
42
|
+
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v8.0": {
|
|
9
|
-
"winformsmcp/1.5.
|
|
9
|
+
"winformsmcp/1.5.9": {
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"FlaUI.Core": "4.0.0",
|
|
12
12
|
"FlaUI.UIA2": "4.0.0",
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
}
|
|
663
663
|
},
|
|
664
664
|
"libraries": {
|
|
665
|
-
"winformsmcp/1.5.
|
|
665
|
+
"winformsmcp/1.5.9": {
|
|
666
666
|
"type": "project",
|
|
667
667
|
"serviceable": false,
|
|
668
668
|
"sha512": ""
|
package/dist/winformsmcp.dll
CHANGED
|
Binary file
|
package/dist/winformsmcp.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/index.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Rhombus.WinFormsMcp NPM Wrapper
|
|
5
|
-
*
|
|
6
|
-
* This module provides a Node.js wrapper for the .NET-based WinForms automation MCP server.
|
|
7
|
-
* It handles downloading platform-specific binaries and exposing the executable for npx usage.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
const path = require('path');
|
|
11
|
-
const fs = require('fs');
|
|
12
|
-
const os = require('os');
|
|
13
|
-
|
|
14
|
-
// Verify we're on Windows
|
|
15
|
-
if (os.platform() !== 'win32') {
|
|
16
|
-
console.error('Error: @fnrhombus/winforms-mcp requires Windows (x64)');
|
|
17
|
-
console.error(`Detected platform: ${os.platform()} ${os.arch()}`);
|
|
18
|
-
process.exit(1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Verify we're on x64
|
|
22
|
-
if (os.arch() !== 'x64') {
|
|
23
|
-
console.error('Error: @fnrhombus/winforms-mcp requires Windows x64');
|
|
24
|
-
console.error(`Detected architecture: ${os.arch()}`);
|
|
25
|
-
process.exit(1);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const distDir = path.join(__dirname, 'dist');
|
|
29
|
-
const exePath = path.join(distDir, 'winformsmcp.exe');
|
|
30
|
-
|
|
31
|
-
// Check if executable exists
|
|
32
|
-
if (!fs.existsSync(exePath)) {
|
|
33
|
-
console.error('Error: winformsmcp executable not found');
|
|
34
|
-
console.error(`Expected at: ${exePath}`);
|
|
35
|
-
console.error('\nTry reinstalling: npm install @fnrhombus/winforms-mcp');
|
|
36
|
-
process.exit(1);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Export the executable path for use in other modules
|
|
40
|
-
module.exports = {
|
|
41
|
-
executablePath: exePath,
|
|
42
|
-
distDirectory: distDir,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
// If called directly from command line, spawn the executable
|
|
46
|
-
if (require.main === module) {
|
|
47
|
-
const { spawn } = require('child_process');
|
|
48
|
-
const child = spawn(exePath, process.argv.slice(2), {
|
|
49
|
-
stdio: 'inherit',
|
|
50
|
-
windowsHide: true,
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
child.on('error', (err) => {
|
|
54
|
-
console.error('Failed to start winformsmcp:', err);
|
|
55
|
-
process.exit(1);
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
child.on('exit', (code) => {
|
|
59
|
-
process.exit(code);
|
|
60
|
-
});
|
|
61
|
-
}
|