minode-mcp-setup 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/bin/cli.js +20 -4
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -30,7 +30,13 @@ function getDesktopPath() {
30
30
  }
31
31
 
32
32
  const DESKTOP = getDesktopPath();
33
- const DEST = path.join(DESKTOP, 'cheatengine-mcp-bridge');
33
+ const DEST = path.join(process.env.USERPROFILE, 'Desktop', 'cheatengine-mcp-bridge'); // 바탕화면의 특정 폴더로 고정
34
+
35
+ function checkInstalled() {
36
+ // 바탕화면 전체가 아니라, 우리가 정한 폴더 안의 핵심 파일(예: main.py 또는 server.py)을 확인
37
+ const pyScript = path.join(DEST, 'main.py');
38
+ return fs.existsSync(pyScript);
39
+ }
34
40
 
35
41
  /* ── 컬러 출력 */
36
42
  const c = {
@@ -136,13 +142,22 @@ async function installCE() {
136
142
  ok(`Python: ${execSync('python --version', { encoding: 'utf8' }).trim()}`);
137
143
 
138
144
  const pyScript = path.join(DEST, 'MCP_Server', 'mcp_cheatengine.py');
145
+
146
+ // 파일이 없으면 설치 진행
139
147
  if (!fs.existsSync(pyScript)) {
140
148
  info(`다운로드 중: ${ZIP_URL}`);
141
149
  await download(ZIP_URL, ZIP_TMP);
142
150
  ok('다운로드 완료');
151
+
143
152
  info('압축 해제 중...');
144
- fs.mkdirSync(DEST, { recursive: true });
145
- extractZip(ZIP_TMP, DESKTOP);
153
+ // 폴더를 확실히 생성하고
154
+ if (!fs.existsSync(DEST)) {
155
+ fs.mkdirSync(DEST, { recursive: true });
156
+ }
157
+
158
+ // [수정] 압축 해제 경로를 DESKTOP이 아닌 DEST로 변경
159
+ extractZip(ZIP_TMP, DEST);
160
+
146
161
  ok('압축 해제 완료');
147
162
  } else {
148
163
  ok('패키지 이미 설치됨');
@@ -151,7 +166,8 @@ async function installCE() {
151
166
  const req = path.join(DEST, 'MCP_Server', 'requirements.txt');
152
167
  if (fs.existsSync(req)) {
153
168
  info('Python 의존성 설치 중...');
154
- run(`pip install -r "${req}"`);
169
+ // 권장: python -m pip 사용
170
+ run(`python -m pip install -r "${req}"`);
155
171
  ok('설치 완료');
156
172
  }
157
173
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minode-mcp-setup",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Minode AI - MCP 서버 자동 설치 및 실행 도구",
5
5
  "bin": {
6
6
  "minode-mcp-setup": "./bin/cli.js"