sweetspot-remote-agent 1.1.0 → 1.2.0

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.
Files changed (2) hide show
  1. package/mcp-server.js +3 -2
  2. package/package.json +1 -1
package/mcp-server.js CHANGED
@@ -123,11 +123,12 @@ server.tool("sysinfo", "시스템 정보 조회 (OS, CPU, 메모리 등)", {}, a
123
123
 
124
124
  // ── 서버 시작 ──
125
125
  const args = process.argv.slice(2);
126
+ const isStdio = args.includes("--stdio");
126
127
  const portIdx = args.indexOf("--port");
127
- const port = portIdx !== -1 ? parseInt(args[portIdx + 1], 10) : null;
128
+ const port = portIdx !== -1 ? parseInt(args[portIdx + 1], 10) : 8080;
128
129
 
129
130
  async function main() {
130
- if (port) {
131
+ if (!isStdio) {
131
132
  // HTTP 모드: 원격 연결용
132
133
  const app = express();
133
134
  app.use(express.json());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sweetspot-remote-agent",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Sweetspot 원격 제어 MCP 서버 — 스크린샷, 마우스/키보드, 앱 제어, 셸 실행",
5
5
  "type": "module",
6
6
  "main": "mcp-server.js",