@yoonion/mimi-seed-mcp 0.23.1 → 0.23.2
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 +1 -1
- package/assets/agent-guide.md +12 -2
- package/dist/appstore/app-info-policy.d.ts +27 -0
- package/dist/appstore/app-info-policy.js +104 -0
- package/dist/appstore/app-info.d.ts +19 -0
- package/dist/appstore/app-info.js +68 -0
- package/dist/appstore/apps.d.ts +1 -5
- package/dist/appstore/apps.js +11 -35
- package/dist/appstore/asset-library-write.d.ts +39 -0
- package/dist/appstore/asset-library-write.js +282 -0
- package/dist/appstore/asset-library.d.ts +28 -0
- package/dist/appstore/asset-library.js +204 -0
- package/dist/appstore/client.d.ts +4 -3
- package/dist/appstore/declarations.js +11 -14
- package/dist/appstore/previews.js +3 -29
- package/dist/appstore/read-response.d.ts +14 -0
- package/dist/appstore/read-response.js +20 -0
- package/dist/appstore/release-target.d.ts +49 -0
- package/dist/appstore/release-target.js +107 -0
- package/dist/appstore/review-submission.d.ts +1 -1
- package/dist/appstore/review-submission.js +12 -10
- package/dist/appstore/screenshots.d.ts +1 -0
- package/dist/appstore/screenshots.js +60 -4
- package/dist/appstore/upload-parts.d.ts +11 -0
- package/dist/appstore/upload-parts.js +29 -0
- package/dist/appstore/versions.js +13 -14
- package/dist/checks/plan.js +47 -57
- package/dist/checks/risks.d.ts +13 -3
- package/dist/checks/risks.js +254 -211
- package/dist/registers/appstore/media.js +69 -24
- package/package.json +1 -1
- package/tool-manifest.json +5 -2
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as appstoreScreenshots from '../../appstore/screenshots.js';
|
|
3
3
|
import * as previews from '../../appstore/previews.js';
|
|
4
|
+
import { listProductPageMedia } from '../../appstore/asset-library.js';
|
|
5
|
+
import { reorderMediaPlacements, uploadAndPlaceMedia } from '../../appstore/asset-library-write.js';
|
|
4
6
|
import { jsonResult, textResult } from '../../lib/mcp-response.js';
|
|
5
7
|
/** appstore_list_screenshots · appstore_upload_screenshot · appstore_delete_screenshot(_set) */
|
|
6
8
|
export function registerScreenshotTools(server) {
|
|
7
|
-
server.tool('appstore_list_screenshots',
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
server.tool('appstore_list_screenshots', [
|
|
10
|
+
'App Store 로케일의 스크린샷 목록과 처리 상태를 조회한다.',
|
|
11
|
+
'첫 JSON은 기존 세트 배열이다. App Asset Library 배치가 있으면 두 번째 JSON에 표시한다.',
|
|
12
|
+
].join(' '), { localizationId: z.string().describe('로컬라이제이션 ID (appstore_get_metadata 결과의 id)') }, async ({ localizationId }) => {
|
|
13
|
+
const { legacySets, placements } = await listProductPageMedia(localizationId, 'screenshots', appstoreScreenshots.listScreenshotSets);
|
|
14
|
+
const legacy = jsonResult(legacySets);
|
|
15
|
+
if (placements.length === 0)
|
|
16
|
+
return legacy;
|
|
17
|
+
const library = jsonResult({ source: 'app-asset-library', placements });
|
|
18
|
+
return { content: [...legacy.content, ...library.content] };
|
|
10
19
|
});
|
|
11
20
|
server.tool('appstore_upload_screenshot', [
|
|
12
|
-
|
|
13
|
-
|
|
21
|
+
'App Store 스크린샷을 업로드하거나 기존 Asset Library 에셋을 배치한다.',
|
|
22
|
+
'Asset Library 방식은 placementGroup과 filePath 또는 assetId를 사용한다. 파일 경로는 로컬 절대경로다.',
|
|
23
|
+
'Asset Library 결과가 processing이면 처리 완료 후 같은 assetId로 배치를 요청한다.',
|
|
24
|
+
'기존 세트 방식은 displayType과 filePath를 사용한다. displayType의 예:',
|
|
14
25
|
"APP_IPHONE_69 (6.9\", 1290x2796) / APP_IPHONE_67 (6.7\", 1290x2796) /",
|
|
15
26
|
"APP_IPHONE_65 (6.5\", 1242x2688) / APP_IPHONE_61 (6.1\", 1170x2532) /",
|
|
16
27
|
"APP_IPHONE_58 (5.8\") / APP_IPHONE_55 (5.5\", 1242x2208) /",
|
|
@@ -19,17 +30,26 @@ export function registerScreenshotTools(server) {
|
|
|
19
30
|
"해상도 틀리면 검수에서 리젝됨. 수정 가능한 버전 상태에서만 반영됨.",
|
|
20
31
|
].join(' '), {
|
|
21
32
|
localizationId: z.string().describe('로컬라이제이션 ID'),
|
|
22
|
-
displayType: z.string().describe('
|
|
23
|
-
|
|
24
|
-
|
|
33
|
+
displayType: z.string().optional().describe('기존 세트 디스플레이 타입 (예: APP_IPHONE_69)'),
|
|
34
|
+
placementGroup: z.string().min(1).optional().describe('Asset Library 배치 그룹 (예: IPHONE_DYNAMIC_ISLAND_LARGE_PROFILE)'),
|
|
35
|
+
filePath: z.string().optional().describe('업로드할 이미지 파일의 절대경로'),
|
|
36
|
+
assetId: z.string().min(1).optional().describe('재사용할 Asset Library 이미지 ID'),
|
|
37
|
+
}, async ({ localizationId, displayType, placementGroup, filePath, assetId }) => {
|
|
38
|
+
if (placementGroup) {
|
|
39
|
+
if (displayType !== undefined)
|
|
40
|
+
throw new Error('placementGroup과 displayType 중 하나만 지정하세요.');
|
|
41
|
+
return jsonResult(await uploadAndPlaceMedia({ localizationId, placementGroup, filePath, assetId, placementType: 'APP_SCREENSHOT' }));
|
|
42
|
+
}
|
|
43
|
+
if (!displayType || !filePath || assetId !== undefined)
|
|
44
|
+
throw new Error('기존 세트 업로드에는 displayType과 filePath가 필요합니다.');
|
|
25
45
|
const result = await appstoreScreenshots.uploadScreenshot(localizationId, displayType, filePath);
|
|
26
46
|
return textResult(`✅ 스크린샷 업로드 완료 (${displayType})\n\n${JSON.stringify(result, null, 2)}`);
|
|
27
47
|
});
|
|
28
|
-
server.tool('appstore_delete_screenshot', 'App Store 개별 스크린샷 삭제', { screenshotId: z.string().describe('스크린샷 ID (appstore_list_screenshots 결과)') }, async ({ screenshotId }) => {
|
|
48
|
+
server.tool('appstore_delete_screenshot', 'App Store 개별 스크린샷 삭제', { screenshotId: z.string().describe('기존 세트에 속한 스크린샷 ID (appstore_list_screenshots 첫 번째 결과)') }, async ({ screenshotId }) => {
|
|
29
49
|
const result = await appstoreScreenshots.deleteScreenshot(screenshotId);
|
|
30
50
|
return textResult(`✅ 스크린샷 삭제됨\n${JSON.stringify(result, null, 2)}`);
|
|
31
51
|
});
|
|
32
|
-
server.tool('appstore_delete_screenshot_set', 'App Store 스크린샷 셋 전체 삭제 (디스플레이 타입 교체 시 먼저 정리)', { setId: z.string().describe('스크린샷 셋 ID (appstore_list_screenshots 결과)') }, async ({ setId }) => {
|
|
52
|
+
server.tool('appstore_delete_screenshot_set', 'App Store 스크린샷 셋 전체 삭제 (디스플레이 타입 교체 시 먼저 정리)', { setId: z.string().describe('기존 스크린샷 셋 ID (appstore_list_screenshots 첫 번째 결과)') }, async ({ setId }) => {
|
|
33
53
|
const result = await appstoreScreenshots.deleteScreenshotSet(setId);
|
|
34
54
|
return textResult(`✅ 셋 삭제됨\n${JSON.stringify(result, null, 2)}`);
|
|
35
55
|
});
|
|
@@ -44,20 +64,20 @@ export function registerPreviewTools(server) {
|
|
|
44
64
|
'DESKTOP', 'APPLE_TV', 'APPLE_VISION_PRO',
|
|
45
65
|
];
|
|
46
66
|
server.tool('appstore_list_previews', [
|
|
47
|
-
'버전 로케일의 미리보기 동영상
|
|
48
|
-
'
|
|
67
|
+
'버전 로케일의 미리보기 동영상 목록. 기존 세트와 App Asset Library 배치를 조회한다.',
|
|
68
|
+
'각 동영상의 처리 상태와 포스터 프레임을 보여준다.',
|
|
49
69
|
'업로드 직후 인코딩이 끝났는지 확인할 때도 이걸 쓴다.',
|
|
50
70
|
].join(' '), {
|
|
51
71
|
localizationId: z
|
|
52
72
|
.string()
|
|
53
73
|
.describe('appStoreVersionLocalization ID (appstore_get_metadata 결과의 로케일별 id)'),
|
|
54
74
|
}, async ({ localizationId }) => {
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
75
|
+
const { legacySets, placements } = await listProductPageMedia(localizationId, 'previews', previews.listPreviewSets);
|
|
76
|
+
if (legacySets.length === 0 && placements.length === 0) {
|
|
57
77
|
return textResult('미리보기 세트 없음.');
|
|
58
78
|
}
|
|
59
79
|
const lines = [];
|
|
60
|
-
for (const s of
|
|
80
|
+
for (const s of legacySets) {
|
|
61
81
|
lines.push(`${s.previewType ?? '?'} (set ${s.id}) — ${s.previews.length}개`);
|
|
62
82
|
for (const p of s.previews) {
|
|
63
83
|
lines.push(` ${p.id}: ${p.fileName ?? '?'} · ${p.state ?? '상태 미상'}` +
|
|
@@ -65,24 +85,44 @@ export function registerPreviewTools(server) {
|
|
|
65
85
|
(p.videoUrl ? ' · 재생 가능' : ''));
|
|
66
86
|
}
|
|
67
87
|
}
|
|
88
|
+
if (placements.length > 0) {
|
|
89
|
+
lines.push('App Asset Library 배치');
|
|
90
|
+
for (const placement of placements) {
|
|
91
|
+
const { placementGroup, placementId, assetId, fileName, assetState, placementState, previewFrameTimeCode } = placement;
|
|
92
|
+
lines.push(`${placementGroup ?? '?'} (placement ${placementId}): ${fileName ?? '?'} · ${assetState ?? '에셋 상태 미상'} · ${placementState ?? '배치 상태 미상'}` +
|
|
93
|
+
(assetId ? ` · assetId ${assetId}` : '') +
|
|
94
|
+
(previewFrameTimeCode ? ` · 포스터 ${previewFrameTimeCode}` : ''));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
68
97
|
return textResult(lines.join('\n'));
|
|
69
98
|
});
|
|
70
99
|
server.tool('appstore_upload_preview', [
|
|
71
|
-
'제품 페이지 미리보기
|
|
72
|
-
'
|
|
73
|
-
'
|
|
100
|
+
'제품 페이지 미리보기 동영상을 업로드하거나 기존 Asset Library 동영상을 배치한다.',
|
|
101
|
+
'Asset Library 방식은 placementGroup과 filePath 또는 assetId를 사용한다. 기존 세트 방식은 previewType과 filePath를 사용한다.',
|
|
102
|
+
'Asset Library 결과가 processing이면 인코딩 완료 후 같은 assetId로 배치를 요청한다. 저장한 배치는 appstore_list_previews로 확인한다.',
|
|
74
103
|
'Apple 제약: 길이 15~30초, previewType 별 해상도 고정, 로케일·타입당 최대 3개. 어기면 인코딩 단계에서 거부된다.',
|
|
75
104
|
'previewFrameTimeCode(HH:MM:SS:FF)로 포스터 프레임을 지정할 수 있다.',
|
|
76
105
|
'파일은 절대경로로 넘긴다 (대용량이라 조각 업로드하며, 동영상 바이트는 대화에 싣지 않는다).',
|
|
77
106
|
].join(' '), {
|
|
78
107
|
localizationId: z.string().describe('appStoreVersionLocalization ID'),
|
|
79
|
-
previewType: z.enum(PREVIEW_TYPES).describe('미리보기 타입 (기기군)'),
|
|
80
|
-
|
|
108
|
+
previewType: z.enum(PREVIEW_TYPES).optional().describe('기존 미리보기 타입 (기기군)'),
|
|
109
|
+
placementGroup: z.string().min(1).optional().describe('Asset Library 배치 그룹 (예: IPHONE_DYNAMIC_ISLAND_LARGE_PROFILE)'),
|
|
110
|
+
filePath: z.string().optional().describe('동영상 파일 절대경로 (.mp4 / .mov / .m4v)'),
|
|
111
|
+
assetId: z.string().min(1).optional().describe('재사용할 Asset Library 동영상 ID'),
|
|
81
112
|
previewFrameTimeCode: z
|
|
82
113
|
.string()
|
|
83
114
|
.optional()
|
|
84
115
|
.describe('포스터 프레임 시각 HH:MM:SS:FF (예: 00:00:03:00)'),
|
|
85
|
-
}, async ({ localizationId, previewType, filePath, previewFrameTimeCode }) => {
|
|
116
|
+
}, async ({ localizationId, previewType, placementGroup, filePath, assetId, previewFrameTimeCode }) => {
|
|
117
|
+
if (placementGroup) {
|
|
118
|
+
if (previewType !== undefined)
|
|
119
|
+
throw new Error('placementGroup과 previewType 중 하나만 지정하세요.');
|
|
120
|
+
return jsonResult(await uploadAndPlaceMedia({
|
|
121
|
+
localizationId, placementGroup, filePath, assetId, previewFrameTimeCode, placementType: 'APP_PREVIEW',
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
if (!previewType || !filePath || assetId !== undefined)
|
|
125
|
+
throw new Error('기존 세트 업로드에는 previewType과 filePath가 필요합니다.');
|
|
86
126
|
const r = await previews.uploadPreview({ localizationId, previewType, filePath, previewFrameTimeCode });
|
|
87
127
|
return textResult([
|
|
88
128
|
'✅ 미리보기 업로드 완료 (인코딩 대기)',
|
|
@@ -94,11 +134,11 @@ export function registerPreviewTools(server) {
|
|
|
94
134
|
]);
|
|
95
135
|
});
|
|
96
136
|
server.tool('appstore_delete_preview', [
|
|
97
|
-
'미리보기 동영상 또는 세트를 삭제한다 — DELETE /v1/appPreviews/{id} 또는 /appPreviewSets/{id}.',
|
|
137
|
+
'기존 미리보기 동영상 또는 세트를 삭제한다 — DELETE /v1/appPreviews/{id} 또는 /appPreviewSets/{id}.',
|
|
98
138
|
'⚠️ 되돌릴 수 없다. 세트를 지우면 그 안의 동영상이 모두 사라진다. confirm 필요.',
|
|
99
139
|
].join(' '), {
|
|
100
|
-
previewId: z.string().optional().describe('
|
|
101
|
-
setId: z.string().optional().describe('
|
|
140
|
+
previewId: z.string().optional().describe('기존 미리보기 ID (set 과 둘 중 하나)'),
|
|
141
|
+
setId: z.string().optional().describe('기존 미리보기 세트 ID (안의 동영상 전부 삭제)'),
|
|
102
142
|
confirm: z.boolean().optional().describe('true 명시 시에만 삭제'),
|
|
103
143
|
}, async ({ previewId, setId, confirm }) => {
|
|
104
144
|
if (!previewId && !setId)
|
|
@@ -113,4 +153,9 @@ export function registerPreviewTools(server) {
|
|
|
113
153
|
: await previews.deletePreviewSet(setId);
|
|
114
154
|
return textResult(`✅ 삭제 완료 — ${r.id}`);
|
|
115
155
|
});
|
|
156
|
+
server.tool('appstore_reorder_media_placements', '한 버전 로케일과 Asset Library 배치 그룹의 미디어 순서를 변경하고 저장된 순서를 다시 확인한다.', {
|
|
157
|
+
localizationId: z.string().min(1).describe('appStoreVersionLocalization ID'),
|
|
158
|
+
placementGroup: z.string().min(1).describe('Asset Library 배치 그룹'),
|
|
159
|
+
placementIds: z.array(z.string().min(1)).min(1).describe('같은 그룹의 모든 placementId를 표시할 순서대로 지정'),
|
|
160
|
+
}, async (args) => jsonResult(await reorderMediaPlacements(args)));
|
|
116
161
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoonion/mimi-seed-mcp",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "Mimi Seed MCP server \u2014 Firebase + AdMob + Google Play + App Store management for Claude Code / Codex / Cursor / any MCP client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
package/tool-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "등록된 MCP 도구 + 도메인 메타데이터(label·credential·summary) + 도구 분류(write·destructive·local·idempotent → MCP annotations·confirm 가드) + toolset 그룹·폐기 별칭의 SSOT (src/lib/tool-registrar.ts 가 읽는다). src/__tests__/tool-manifest.test.ts 가 실제 서버 등록 목록과 diff 하고 메타데이터 정합성을 검사한다. 도구 추가/삭제/개명 시 이 파일을 함께 갱신할 것 — 산문 문서에는 정확한 개수를 쓰지 말고 이 파일을 가리킬 것. mimi-seed://tools/catalog 리소스가 이 파일을 그대로 서빙한다.",
|
|
3
|
-
"total":
|
|
3
|
+
"total": 256,
|
|
4
4
|
"alwaysOn": [
|
|
5
5
|
"auth",
|
|
6
6
|
"checks"
|
|
@@ -183,6 +183,7 @@
|
|
|
183
183
|
"appstore_list_previews",
|
|
184
184
|
"appstore_upload_preview",
|
|
185
185
|
"appstore_delete_preview",
|
|
186
|
+
"appstore_reorder_media_placements",
|
|
186
187
|
"appstore_get_sales_report",
|
|
187
188
|
"appstore_get_weekly_insight",
|
|
188
189
|
"appstore_get_finance_report"
|
|
@@ -211,6 +212,7 @@
|
|
|
211
212
|
"appstore_update_beta_test_info",
|
|
212
213
|
"appstore_update_whats_to_test",
|
|
213
214
|
"appstore_upload_preview",
|
|
215
|
+
"appstore_reorder_media_placements",
|
|
214
216
|
"appstore_get_weekly_insight"
|
|
215
217
|
],
|
|
216
218
|
"destructive": [
|
|
@@ -256,7 +258,8 @@
|
|
|
256
258
|
"appstore_update_age_rating",
|
|
257
259
|
"appstore_update_beta_review_detail",
|
|
258
260
|
"appstore_update_beta_test_info",
|
|
259
|
-
"appstore_update_whats_to_test"
|
|
261
|
+
"appstore_update_whats_to_test",
|
|
262
|
+
"appstore_reorder_media_placements"
|
|
260
263
|
]
|
|
261
264
|
},
|
|
262
265
|
"auth": {
|