@ninebone/mcp 1.0.9 → 1.0.11

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.11",
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,22 @@ 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
+
108
127
  /**
109
128
  * 메인 실행 함수
110
129
  */
@@ -120,6 +139,7 @@ export async function runInit() {
120
139
  const success = await createEnvFile(rl);
121
140
  if (success) {
122
141
  createPromptFiles();
142
+ createEcosystemFile();
123
143
  console.log('\n✅ 모든 초기화 작업이 완료되었습니다.');
124
144
 
125
145
  // MCP 환경에 특화된 안내 문구 추가
@@ -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
- }