sweetspot-remote-agent 1.8.0 → 1.8.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/bin/cli.js CHANGED
@@ -1,3 +1,11 @@
1
1
  #!/usr/bin/env node
2
- // MCP 서버 실행 (stdio 모드)
3
- import("../mcp-server.js");
2
+ // CLI 진입점 인자를 그대로 mcp-server.js에 전달
3
+ import { fileURLToPath } from "url";
4
+ import { dirname, join } from "path";
5
+ import { fork } from "child_process";
6
+
7
+ const __dirname = dirname(fileURLToPath(import.meta.url));
8
+ const serverPath = join(__dirname, "..", "mcp-server.js");
9
+
10
+ const child = fork(serverPath, process.argv.slice(2), { stdio: "inherit" });
11
+ child.on("exit", (code) => process.exit(code ?? 0));
package/mcp-server.js CHANGED
@@ -258,7 +258,7 @@ const port = portIdx !== -1 ? parseInt(args[portIdx + 1], 10) : 8080;
258
258
 
259
259
  import os from "os";
260
260
 
261
- const BOT_SERVER = "https://moonless-unexpeditiously-elvina.ngrok-free.dev";
261
+ const BOT_SERVER = process.env.BOT_SERVER || "http://34.50.31.218:3000";
262
262
 
263
263
  // --name "슬랙아이디" 필수
264
264
  const nameIdx = args.indexOf("--name");
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "sweetspot-remote-agent",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Sweetspot 원격 제어 MCP 서버 — 스크린샷, 마우스/키보드, 앱 제어, 파일 탐색, 셸 실행",
5
5
  "type": "module",
6
6
  "main": "mcp-server.js",
7
7
  "bin": {
8
- "sweetspot-agent": "bin/cli.js"
8
+ "sweetspot-remote-agent": "bin/cli.js"
9
9
  },
10
10
  "scripts": {
11
11
  "start": "node mcp-server.js"