@team-semicolon/semo-cli 3.7.3 → 3.7.4

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/dist/index.js +80 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3179,8 +3179,86 @@ program
3179
3179
  }
3180
3180
  }
3181
3181
  }
3182
- // 5. 전체 설치 검증
3183
- console.log(chalk_1.default.cyan("\n5. 전체 설치 검증"));
3182
+ // 5. semo-mcp (MCP 서버) 상태 확인
3183
+ console.log(chalk_1.default.cyan("\n5. semo-mcp (MCP 서버)"));
3184
+ const userHomeDir = process.env.HOME || process.env.USERPROFILE || "";
3185
+ const claudeSettingsPath = path.join(userHomeDir, ".claude", "settings.local.json");
3186
+ // MCP 서버 설정 확인
3187
+ if (!fs.existsSync(claudeSettingsPath)) {
3188
+ console.log(chalk_1.default.yellow(" ⚠️ settings.local.json 없음"));
3189
+ console.log(chalk_1.default.gray(" 💡 MCP 서버 설정이 필요합니다"));
3190
+ }
3191
+ else {
3192
+ try {
3193
+ const settings = JSON.parse(fs.readFileSync(claudeSettingsPath, "utf-8"));
3194
+ const mcpServers = settings.mcpServers || {};
3195
+ // semo-integrations MCP 서버 확인
3196
+ const semoMcp = mcpServers["semo-integrations"];
3197
+ if (!semoMcp) {
3198
+ console.log(chalk_1.default.yellow(" ⚠️ semo-integrations MCP 서버 미등록"));
3199
+ console.log(chalk_1.default.gray(" 💡 .claude/settings.json에 MCP 서버 추가 필요"));
3200
+ }
3201
+ else {
3202
+ console.log(chalk_1.default.green(" ✅ semo-integrations MCP 서버 등록됨"));
3203
+ // 명령어 경로 확인
3204
+ const mcpCommand = semoMcp.command || "";
3205
+ const mcpArgs = semoMcp.args || [];
3206
+ if (mcpCommand === "npx") {
3207
+ console.log(chalk_1.default.green(" ✅ npx 방식 실행 (자동 업데이트)"));
3208
+ }
3209
+ else if (mcpCommand === "node") {
3210
+ const scriptPath = mcpArgs[0] || "";
3211
+ if (scriptPath && fs.existsSync(scriptPath)) {
3212
+ console.log(chalk_1.default.green(` ✅ 로컬 스크립트: ${scriptPath}`));
3213
+ }
3214
+ else if (scriptPath) {
3215
+ console.log(chalk_1.default.red(` ❌ 스크립트 경로 없음: ${scriptPath}`));
3216
+ }
3217
+ }
3218
+ // 환경변수 확인
3219
+ const env = semoMcp.env || {};
3220
+ const requiredEnvVars = ["SLACK_BOT_TOKEN", "GITHUB_TOKEN"];
3221
+ const missingEnvVars = [];
3222
+ const configuredEnvVars = [];
3223
+ for (const envVar of requiredEnvVars) {
3224
+ if (env[envVar]) {
3225
+ configuredEnvVars.push(envVar);
3226
+ }
3227
+ else {
3228
+ missingEnvVars.push(envVar);
3229
+ }
3230
+ }
3231
+ if (configuredEnvVars.length > 0) {
3232
+ console.log(chalk_1.default.green(` ✅ 환경변수: ${configuredEnvVars.join(", ")}`));
3233
+ }
3234
+ if (missingEnvVars.length > 0) {
3235
+ console.log(chalk_1.default.yellow(` ⚠️ 미설정 환경변수: ${missingEnvVars.join(", ")}`));
3236
+ console.log(chalk_1.default.gray(" 💡 일부 기능이 제한될 수 있습니다"));
3237
+ }
3238
+ // 도구 목록 (알려진 도구)
3239
+ const knownTools = [
3240
+ "slack_send_message",
3241
+ "slack_lookup_user",
3242
+ "slack_list_channels",
3243
+ "slack_find_channel",
3244
+ "github_create_issue",
3245
+ "github_create_pr",
3246
+ "supabase_query",
3247
+ ];
3248
+ console.log(chalk_1.default.gray(` 📦 제공 도구: ${knownTools.length}개`));
3249
+ }
3250
+ // 다른 MCP 서버 확인
3251
+ const otherServers = Object.keys(mcpServers).filter(k => k !== "semo-integrations");
3252
+ if (otherServers.length > 0) {
3253
+ console.log(chalk_1.default.gray(` 📡 기타 MCP 서버: ${otherServers.join(", ")}`));
3254
+ }
3255
+ }
3256
+ catch {
3257
+ console.log(chalk_1.default.red(" ❌ settings.local.json 파싱 오류"));
3258
+ }
3259
+ }
3260
+ // 6. 전체 설치 검증
3261
+ console.log(chalk_1.default.cyan("\n6. 전체 설치 검증"));
3184
3262
  const verificationResult = verifyInstallation(cwd, []);
3185
3263
  if (verificationResult.success) {
3186
3264
  console.log(chalk_1.default.green(" ✅ 설치 상태 정상"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-semicolon/semo-cli",
3
- "version": "3.7.3",
3
+ "version": "3.7.4",
4
4
  "description": "SEMO CLI - AI Agent Orchestration Framework Installer",
5
5
  "main": "dist/index.js",
6
6
  "bin": {