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.
- package/mcp-server.js +3 -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) :
|
|
128
|
+
const port = portIdx !== -1 ? parseInt(args[portIdx + 1], 10) : 8080;
|
|
128
129
|
|
|
129
130
|
async function main() {
|
|
130
|
-
if (
|
|
131
|
+
if (!isStdio) {
|
|
131
132
|
// HTTP 모드: 원격 연결용
|
|
132
133
|
const app = express();
|
|
133
134
|
app.use(express.json());
|