@ninebone/mcp 1.0.6 → 1.0.8

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.
@@ -2,7 +2,7 @@ module.exports = {
2
2
  apps: [{
3
3
  name: "nine-mcp",
4
4
  // 파일 경로를 적는 대신, 등록된 명령어(bin) 이름을 적습니다.
5
- script: "nine-mcp",
5
+ script: "node_modules/@ninebone/mcp/src/pm2-wrapper.js",
6
6
  // PM2에게 이 명령어는 'node'로 실행하라고 명시합니다.
7
7
  interpreter: "node",
8
8
  // 핵심 옵션
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ninebone/mcp",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "NineQuery AI Connector for Database",
5
5
  "main": "src/index.mjs",
6
6
  "type": "module",
@@ -0,0 +1,10 @@
1
+ // src/pm2-wrapper.js
2
+ import { spawn } from 'child_process';
3
+ import path from 'path';
4
+ import { fileURLToPath } from 'url';
5
+
6
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
+ // __dirname을 사용하므로, 누가 어디에 설치해도 경로가 자동으로 잡힙니다.
8
+ const indexPath = path.join(__dirname, 'index.mjs');
9
+
10
+ spawn('node', ['--input-type=module', indexPath], { stdio: 'inherit' });