@yoonion/mimi-seed-mcp 0.6.2 → 0.6.3

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/README.md CHANGED
@@ -9,13 +9,13 @@
9
9
  Claude Code:
10
10
 
11
11
  ```bash
12
- claude mcp add mimi-seed -- npx -y @yoonion/mimi-seed-mcp
12
+ claude mcp add mimi-seed-local -- npx -y @yoonion/mimi-seed-mcp
13
13
  ```
14
14
 
15
15
  Codex (`~/.codex/config.toml`):
16
16
 
17
17
  ```toml
18
- [mcp_servers.mimi-seed]
18
+ [mcp_servers.mimi-seed-local]
19
19
  command = "npx"
20
20
  args = ["-y", "@yoonion/mimi-seed-mcp"]
21
21
  enabled = true
@@ -26,7 +26,7 @@ Claude Desktop (`claude_desktop_config.json`):
26
26
  ```json
27
27
  {
28
28
  "mcpServers": {
29
- "mimi-seed": {
29
+ "mimi-seed-local": {
30
30
  "command": "npx",
31
31
  "args": ["-y", "@yoonion/mimi-seed-mcp"]
32
32
  }
@@ -62,7 +62,7 @@ export ANTHROPIC_API_KEY=sk-ant-...
62
62
 
63
63
  ---
64
64
 
65
- ## 제공 도구 (148개 · 17개 영역)
65
+ ## 제공 도구 (150+ 개 · 17개 영역)
66
66
 
67
67
  | 영역 | 도구 수 | 주요 도구 |
68
68
  |------|---------|-----------|
@@ -71,7 +71,7 @@ export ANTHROPIC_API_KEY=sk-ant-...
71
71
  | Firebase | 20 | `firebase_create_project` / `firebase_create_android_app` / `firebase_get_android_config` / `firebase_create_ios_app` |
72
72
  | AdMob | 7 | `admob_list_apps` / `admob_create_ad_unit` / `admob_get_today_earnings` / `admob_get_report` |
73
73
  | CI/CD (GitHub Actions · GitLab) | 6 | `ci_trigger_build` / `ci_get_build_status` / `ci_list_workflows` / `ci_cancel_build` |
74
- | Jenkins (크리덴셜) | 6 | `jenkins_create_credential` / `jenkins_upload_keystore` / `jenkins_save_config` |
74
+ | Jenkins (크리덴셜 + 잡) | 10 | `jenkins_create_credential` / `jenkins_upload_keystore` / `jenkins_create_job` / `jenkins_update_job` |
75
75
  | GA4 | 6 | `ga4_create_property` / `ga4_create_data_stream` / `ga4_run_report` |
76
76
  | Search Console | 6 | `gsc_inspect_url` / `gsc_search_analytics` / `gsc_submit_sitemap` |
77
77
  | Google Ads | 6 | `googleads_list_campaigns` / `googleads_get_uac_report` / `googleads_get_campaign_report` |
package/dist/helpers.js CHANGED
@@ -4,12 +4,12 @@ import { getAppStoreCredentials } from './appstore/auth.js';
4
4
  export { ensureFreshAccessToken };
5
5
  const REAUTH_CMD = ' npx -y @yoonion/mimi-seed-mcp mimi-seed-auth';
6
6
  function formatAuthError(p) {
7
+ // 재로그인 안내는 needsReauth 인 경우에만 — CONFIG_FETCH_FAILED 처럼 재로그인이
8
+ // 해법이 아닌 에러에 무조건 붙이면 같은 실패를 반복하게 만든다.
7
9
  return [
8
10
  `❌ [${p.code}] ${p.message}`,
9
11
  p.hint ? `→ ${p.hint}` : '',
10
- '',
11
- '터미널에서 재로그인:',
12
- REAUTH_CMD,
12
+ ...(p.needsReauth ? ['', '터미널에서 재로그인:', REAUTH_CMD] : []),
13
13
  ]
14
14
  .filter((l) => l !== '')
15
15
  .join('\n');
@@ -1,4 +1,6 @@
1
+ import { readFileSync } from 'node:fs';
1
2
  import { getMcpOAuthClient } from '../auth/constants.js';
3
+ import { classifyError } from '../auth/errors.js';
2
4
  import { startAuth, ensureFreshAccessToken, getTokensLastRefreshMs } from '../auth/google-auth.js';
3
5
  import { listRegisteredServiceAccounts } from '../auth/playstore-auth.js';
4
6
  import { getAppStoreCredentials } from '../appstore/auth.js';
@@ -43,8 +45,11 @@ const MANIFEST_FIX = {
43
45
  ? `setup_playstore_connection(packageName="${svc.packageName}")`
44
46
  : 'setup_playstore_connection(packageName=...)',
45
47
  appstore: () => 'npx -y @yoonion/mimi-seed-mcp mimi-seed-appstore-auth',
46
- jenkins: () => 'claude mcp add virgm-jenkins -s user (개인 자격증명 — .mcp.json 금지)',
48
+ jenkins: () => 'claude mcp add <your-jenkins-mcp> -s user (개인 자격증명 — .mcp.json 금지)',
47
49
  };
50
+ // 두 MCP 가 모두 'mimi-seed' 로 등록되는 환경에서 에이전트가 프로그램적으로
51
+ // 어느 서버인지 판별할 수 있도록 status 첫 줄에 자기소개를 넣는다.
52
+ const { version: PKG_VERSION } = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url), 'utf8'));
48
53
  /** 서비스별 식별자를 한 줄 detail 로 (예: "ads-coffee / analytics_530080532"). */
49
54
  function manifestServiceDetail(id, svc) {
50
55
  const parts = [];
@@ -91,7 +96,10 @@ export function registerAuthTools(server) {
91
96
  '설정 상태를 한 번에 스캔해 ✅ / ❌ 트래픽 라이트 리포트와 번호 매긴 다음 단계를 반환합니다.',
92
97
  '미설정 서비스마다 어떤 도구를 호출하면 되는지 구체적으로 알려줍니다.',
93
98
  ].join(' '), {}, async () => {
94
- const lines = ['🌱 Mimi Seed 연결 상태', ''];
99
+ const lines = [
100
+ `🌱 Mimi Seed 연결 상태 — local-stdio (@yoonion/mimi-seed-mcp v${PKG_VERSION})`,
101
+ '',
102
+ ];
95
103
  // 1. Google OAuth
96
104
  const oauthResult = await ensureFreshAccessToken();
97
105
  if (oauthResult.status === 'fresh' || oauthResult.status === 'refreshed') {
@@ -121,7 +129,7 @@ export function registerAuthTools(server) {
121
129
  lines.push(`✅ App Store Connect — 연결됨 (keyId: ${asc.keyId})`);
122
130
  }
123
131
  else {
124
- lines.push('❌ App Store Connect — 미설정 → npx @yoonion/mimi-seed-mcp mimi-seed-appstore-auth');
132
+ lines.push('❌ App Store Connect — 미설정 → npx -y @yoonion/mimi-seed-mcp mimi-seed-appstore-auth');
125
133
  }
126
134
  // 4. Jenkins
127
135
  const jenkins = loadJenkinsConfig();
@@ -173,7 +181,7 @@ export function registerAuthTools(server) {
173
181
  lines.push('⚠️ BigQuery — OAuth fallback (Workspace 재인증 정책 시 끊길 수 있음 → 서비스 계정 권장: mimi-seed-bigquery-auth)');
174
182
  }
175
183
  else {
176
- lines.push('❌ BigQuery — 미설정 → npx @yoonion/mimi-seed-mcp mimi-seed-bigquery-auth (선택)');
184
+ lines.push('❌ BigQuery — 미설정 → npx -y @yoonion/mimi-seed-mcp mimi-seed-bigquery-auth (선택)');
177
185
  }
178
186
  // 다음 단계 안내
179
187
  const missing = [];
@@ -184,7 +192,7 @@ export function registerAuthTools(server) {
184
192
  missing.push(' 2. setup_playstore_connection(packageName=..., projectId=...) (Play Store 배포 필수)');
185
193
  }
186
194
  if (!asc) {
187
- missing.push(' 3. npx @yoonion/mimi-seed-mcp mimi-seed-appstore-auth (App Store 배포 필수)');
195
+ missing.push(' 3. npx -y @yoonion/mimi-seed-mcp mimi-seed-appstore-auth (App Store 배포 필수)');
188
196
  }
189
197
  if (missing.length > 0) {
190
198
  lines.push('', '── 다음 단계 (필수) ─────────────────────────────', ...missing);
@@ -230,7 +238,21 @@ export function registerAuthTools(server) {
230
238
  '이후 playstore_*, firebase_*, admob_* 등 다른 MCP 도구 바로 호출 가능.',
231
239
  '토큰 만료(invalid_rapt) / 재인증 필요 시 사용. 10분 내 완료해야 함.',
232
240
  ].join(' '), {}, async () => {
233
- const { clientId, clientSecret } = await getMcpOAuthClient();
241
+ // 설정 조회 실패를 분류된 안내로 raw throw 는 MCP 클라이언트에 마커 문자열만 노출된다.
242
+ let clientId;
243
+ let clientSecret;
244
+ try {
245
+ ({ clientId, clientSecret } = await getMcpOAuthClient());
246
+ }
247
+ catch (e) {
248
+ const p = classifyError(e, { phase: 'login' });
249
+ return {
250
+ content: [{
251
+ type: 'text',
252
+ text: `❌ [${p.code}] ${p.message}${p.hint ? `\n→ ${p.hint}` : ''}`,
253
+ }],
254
+ };
255
+ }
234
256
  const { url, wait } = startAuth(clientId, clientSecret);
235
257
  // fire-and-forget — 토큰은 콜백 서버가 자동 저장
236
258
  wait.then(() => { }, (err) => { console.error('[mimi-seed auth]', err.message); });
@@ -290,8 +312,11 @@ export function registerAuthTools(server) {
290
312
  ` 코드: ${r.error.code}\n` +
291
313
  ` ${r.error.message}\n` +
292
314
  (r.error.hint ? ` → ${r.error.hint}\n` : '') +
293
- `${refreshLine}\n` +
294
- '\n터미널에서 재로그인:\n npx -y @yoonion/mimi-seed-mcp mimi-seed-auth',
315
+ `${refreshLine}` +
316
+ // 재로그인 안내는 그것이 실제 해법일 때만 (네트워크/설정 조회 실패엔 무의미)
317
+ (r.error.needsReauth
318
+ ? '\n\n터미널에서 재로그인:\n npx -y @yoonion/mimi-seed-mcp mimi-seed-auth'
319
+ : ''),
295
320
  }],
296
321
  };
297
322
  }
package/dist/resources.js CHANGED
@@ -25,7 +25,7 @@ export function registerResources(server) {
25
25
  '# Mimi Seed — 앱 출시·운영 Agent',
26
26
  '',
27
27
  '당신은 Mimi Seed MCP를 통해 인디 개발자의 앱 출시와 운영을 돕는 에이전트입니다.',
28
- 'Google Play · App Store · Firebase · AdMob · CI/CD · BigQuery를 직접 제어하는 110+ 도구를 사용할 수 있습니다.',
28
+ 'Google Play · App Store · Firebase · AdMob · CI/CD · BigQuery를 직접 제어하는 150+ 도구를 사용할 수 있습니다.',
29
29
  '',
30
30
  '## 출시 요청 처리 순서',
31
31
  '',
package/dist/server.js CHANGED
@@ -24,8 +24,11 @@ import { registerResources } from './resources.js';
24
24
  * 여기(index.ts 가 아니라)에 추가해야 테스트가 tool-manifest.json 과의 드리프트를 잡는다.
25
25
  */
26
26
  export function buildServer(version) {
27
+ // serverInfo.name 은 'mimi-seed-local' — 웹 콘솔의 Remote HTTP MCP(mimi-seed-web)와
28
+ // 핸드셰이크 수준에서 구분한다. 클라이언트 표시명/도구 네임스페이스(mcp__mimi-seed__*)는
29
+ // 등록 키(.mcp.json / claude mcp add 의 이름)에서 오므로 이 값 변경은 호환성에 영향 없음.
27
30
  const server = new McpServer({
28
- name: 'mimi-seed',
31
+ name: 'mimi-seed-local',
29
32
  version,
30
33
  });
31
34
  registerFirebaseTools(server);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoonion/mimi-seed-mcp",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Mimi Seed MCP server — Firebase + AdMob + Google Play + App Store management for Claude Code / Codex / Cursor / any MCP client.",
5
5
  "type": "module",
6
6
  "bin": {