@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 +1 -1
- package/src/core/init.js +20 -0
- package/ecosystem.config.js +0 -9
package/package.json
CHANGED
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 환경에 특화된 안내 문구 추가
|