@ninebone/mcp 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ninebone/mcp",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "NineQuery AI Connector for Database",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/core/init.js CHANGED
@@ -54,6 +54,9 @@ async function createEnvFile(rl) {
54
54
  return true;
55
55
  }
56
56
 
57
+
58
+
59
+
57
60
  /**
58
61
  * 2. 프롬프트 파일(.md) 자동 복사 함수 (개선됨)
59
62
  */
@@ -105,6 +108,33 @@ function createPromptFiles() {
105
108
  }
106
109
  }
107
110
 
111
+
112
+ function createEcosystemFile() {
113
+ const filePath = path.join(process.cwd(), 'ecosystem.config.js');
114
+ const content = `module.exports = {
115
+ apps: [{
116
+ name: "nine-mcp",
117
+ script: "./src/index.js",
118
+ interpreter: "node",
119
+ node_args: "--input-type=module"
120
+ }]
121
+ };
122
+ `;
123
+ fs.writeFileSync(filePath, content);
124
+ console.log(' └⚙️ ecosystem.config.js 생성 완료 (PM2 실행용)');
125
+ }
126
+
127
+ // 2. runInit 함수 내부에서 createPromptFiles() 실행 후 바로 호출하세요.
128
+ export async function runInit() {
129
+ // ...
130
+ if (success) {
131
+ createPromptFiles();
132
+ createEcosystemFile(); // <--- 여기 추가!
133
+ createEcosystemFile();
134
+ console.log('\n✅ 모든 초기화 작업이 완료되었습니다.');
135
+ // ...
136
+ }
137
+ }
108
138
  /**
109
139
  * 메인 실행 함수
110
140
  */
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- apps: [{
3
- name: "nine-mcp",
4
- // npm은 설치 시 설치 경로를 알기 때문에, node_modules 내 경로를 활용합니다.
5
- script: "./node_modules/@ninebone/mcp/src/index.js",
6
- interpreter: "node",
7
- node_args: "--input-type=module"
8
- }]
9
- }