seeu-computeruse 1.2.1 → 1.2.2

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 CHANGED
@@ -2,15 +2,19 @@
2
2
 
3
3
  A tiny launcher for **[SeeU](https://github.com/Mr-Bingoo/seeu-computeruse)** — background Computer Use for your Mac (Windows preview).
4
4
 
5
- Some AI apps only accept MCP servers started with `npx` (for example **Qwen / 千问** desktop 5.2+). This package lets them start the SeeU you have already installed. It has no dependencies and downloads nothing else.
5
+ Some AI apps only accept MCP servers started with `npx` (for example **Qwen / 千问** desktop 5.2+, on Mac and Windows). This package lets them start the SeeU you have already installed. It has no dependencies and downloads nothing else.
6
6
 
7
- 1. Install SeeU first (see the [README](https://github.com/Mr-Bingoo/seeu-computeruse#install)), then run once: `python3 -m seeu install qianwen`.
8
- 2. In the AI app, add an MCP server — name `seeu`, command:
7
+ 1. Install SeeU and [Node.js](https://nodejs.org) first (see the [README](https://github.com/Mr-Bingoo/seeu-computeruse/blob/main/README.en.md#install)), then run once: `python3 -m seeu install qianwen` (Windows: `python -m seeu install qianwen`).
8
+ 2. In the AI app, add an MCP server — name `seeu`, type STDIO, command:
9
9
 
10
10
  ```
11
11
  npx -y seeu-computeruse
12
12
  ```
13
13
 
14
- 在千问里:左上切到「工作」→「连接」→「+ 添加」→「手动填写配置」,名称填 `seeu`,命令填 `npx -y seeu-computeruse`。
14
+ 3. On the Mac, grant the AI app (e.g. 千问) Accessibility and Screen & System Audio Recording, then quit and reopen it.
15
+
16
+ Tips for Qwen: if the first try shows "connection failed" or nothing happens, restart Qwen and open the Connections page again. On Windows, the installer on Qwen's site is an older build: click "New version" at the top right (maybe twice) and restart until "Daily / Work" appears.
17
+
18
+ 在千问里:左上切到「工作」→「连接」→「+ 添加」→「手动填写配置」,名称填 `seeu`,类型选 STDIO,命令填 `npx -y seeu-computeruse`。第一次加常显示「连接失败」,重启千问再看就好;Windows 版要先在右上「新版本」升级到有「工作」页的版本。
15
19
 
16
20
  MIT · @Mr_Bingoo
@@ -27,12 +27,22 @@ function homes() {
27
27
  return out;
28
28
  }
29
29
 
30
+ // Only start what the note says if it really is a Python running SeeU's own MCP server
31
+ // (so a tampered note can't make this launcher run some other program).
32
+ function looksRight(d) {
33
+ if (!d || typeof d.python !== "string" || typeof d.server !== "string") return false;
34
+ if (!/^python(w)?(\d+(\.\d+)*)?(t|-intel64|-arm64|-x86_64|-universal2)?(\.exe)?$/i.test(path.basename(d.python))) return false; // python3, python3.13t, python3.12-intel64…
35
+ const s = d.server.replace(/\\/g, "/");
36
+ if (!/\/seeu\/(win\/)?mcp_server\.py$/i.test(s)) return false;
37
+ return fs.existsSync(d.python) && fs.existsSync(d.server);
38
+ }
39
+
30
40
  function findSeeU() {
31
41
  for (const h of homes()) {
32
42
  const f = path.join(h, "seeu_server.json");
33
43
  try {
34
44
  const d = JSON.parse(fs.readFileSync(f, "utf8"));
35
- if (d && d.python && d.server && fs.existsSync(d.server)) return d;
45
+ if (looksRight(d)) return d;
36
46
  } catch (e) { /* not there / unreadable: try the next one */ }
37
47
  }
38
48
  return null;
@@ -42,7 +52,7 @@ const d = findSeeU();
42
52
  if (!d) {
43
53
  process.stderr.write(
44
54
  "SeeU is not installed on this computer yet (or has never been set up).\n" +
45
- "Install it first: https://github.com/Mr-Bingoo/seeu-computeruse#install\n" +
55
+ "Install it first: https://github.com/Mr-Bingoo/seeu-computeruse/blob/main/README.en.md#install\n" +
46
56
  "then run once: python3 -m seeu install qianwen (on Windows: python -m seeu install qianwen)\n" +
47
57
  "还没装 SeeU(或还没接入过)。先按上面的链接安装,再运行一次 python3 -m seeu install qianwen。\n");
48
58
  process.exit(1);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "seeu-computeruse",
3
- "version": "1.2.1",
4
- "description": "Launcher for SeeU (background Computer Use for your Mac) — for AI apps that only accept `npx` MCP commands, such as Qwen (千问). Starts the SeeU you already installed.",
3
+ "version": "1.2.2",
4
+ "description": "Launcher for SeeU (background Computer Use for your Mac, Windows preview) — for AI apps that only accept `npx` MCP commands, such as Qwen (千问). Starts the SeeU you already installed.",
5
5
  "bin": {
6
6
  "seeu-computeruse": "bin/seeu-computeruse.js"
7
7
  },