ucu-mcp 0.1.1 → 0.1.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.
File without changes
@@ -495,11 +495,9 @@ export class MacOSPlatform {
495
495
  const out = execFileSync("osascript", [
496
496
  "-l", "JavaScript",
497
497
  "-e",
498
- `ObjC.import('CoreGraphics');
499
- var event = $.CGEventCreate(null);
500
- var loc = $.CGEventGetLocation(event);
501
- $.CFRelease(event);
502
- JSON.stringify({x:Math.round(loc.x),y:Math.round(loc.y)})`,
498
+ `ObjC.import('AppKit');
499
+ var pt = $.NSEvent.mouseLocation;
500
+ JSON.stringify({x:Math.round(pt.x),y:Math.round($.NSScreen.mainScreen.frame.size.height - pt.y)});`,
503
501
  ], { encoding: "utf-8", timeout: 5000 }).trim();
504
502
  return JSON.parse(out);
505
503
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ucu-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "MCP server for Universal Computer Use — desktop automation for AI agents via Model Context Protocol",
5
5
  "type": "module",
6
6
  "bin": {