@yoonion/mimi-seed-mcp 0.6.4 → 0.6.5
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.
|
@@ -25,6 +25,12 @@ export interface PlayStatisticsQuery {
|
|
|
25
25
|
export declare function withEdit<T>(auth: OAuth2Client | JWT, packageName: string, fn: (editId: string) => Promise<T>, commit?: boolean): Promise<T>;
|
|
26
26
|
export declare function getStatistics(auth: OAuth2Client | JWT, packageName: string, query: PlayStatisticsQuery): Promise<unknown>;
|
|
27
27
|
export declare function getAppDetails(auth: OAuth2Client | JWT, packageName: string): Promise<import("googleapis").androidpublisher_v3.Schema$AppDetails>;
|
|
28
|
+
export declare function updateAppDetails(auth: OAuth2Client | JWT, packageName: string, data: {
|
|
29
|
+
contactEmail?: string;
|
|
30
|
+
contactPhone?: string;
|
|
31
|
+
contactWebsite?: string;
|
|
32
|
+
defaultLanguage?: string;
|
|
33
|
+
}): Promise<import("googleapis").androidpublisher_v3.Schema$AppDetails>;
|
|
28
34
|
export declare function getListing(auth: OAuth2Client | JWT, packageName: string, language?: string): Promise<import("googleapis").androidpublisher_v3.Schema$Listing>;
|
|
29
35
|
export declare function updateListing(auth: OAuth2Client | JWT, packageName: string, language: string, data: {
|
|
30
36
|
title?: string;
|
package/dist/playstore/tools.js
CHANGED
|
@@ -111,6 +111,22 @@ export async function getAppDetails(auth, packageName) {
|
|
|
111
111
|
return details.data;
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
+
// ─── 앱 세부정보(개발자 연락처·기본 언어) 수정 ───
|
|
115
|
+
//
|
|
116
|
+
// edits.details = 스토어 리스팅(제목·설명)과 별개인 개발자 연락처(이메일/전화/웹사이트)
|
|
117
|
+
// 와 기본 언어. patch 로 부분 갱신 — 넘긴 필드만 교체하고 나머지 연락처는 보존한다
|
|
118
|
+
// (update=PUT 은 전체 치환이라 미지정 필드가 지워질 수 있어 patch 사용). edit → commit.
|
|
119
|
+
export async function updateAppDetails(auth, packageName, data) {
|
|
120
|
+
return withEdit(auth, packageName, async (editId) => {
|
|
121
|
+
const updated = await publisher().edits.details.patch({
|
|
122
|
+
auth,
|
|
123
|
+
packageName,
|
|
124
|
+
editId,
|
|
125
|
+
requestBody: data,
|
|
126
|
+
});
|
|
127
|
+
return updated.data;
|
|
128
|
+
}, true);
|
|
129
|
+
}
|
|
114
130
|
// ─── 스토어 리스팅 조회 ───
|
|
115
131
|
export async function getListing(auth, packageName, language = 'ko-KR') {
|
|
116
132
|
return withEdit(auth, packageName, async (editId) => {
|
|
@@ -33,11 +33,24 @@ const playstore = new Proxy(playstoreRaw, {
|
|
|
33
33
|
},
|
|
34
34
|
});
|
|
35
35
|
export function registerPlaystoreTools(server) {
|
|
36
|
-
server.tool('playstore_get_app', 'Google Play 앱
|
|
36
|
+
server.tool('playstore_get_app', 'Google Play 앱 세부정보 조회 — 개발자 연락처(이메일·전화·웹사이트)·기본 언어 등 (edits.details). 수정은 playstore_update_details.', { packageName: z.string().describe('패키지명 (예: com.findthem.app)') }, async ({ packageName }) => {
|
|
37
37
|
const auth = requirePlayStoreAuth(packageName);
|
|
38
38
|
const details = await playstore.getAppDetails(auth, packageName);
|
|
39
39
|
return { content: [{ type: 'text', text: JSON.stringify(details, null, 2) }] };
|
|
40
40
|
});
|
|
41
|
+
server.tool('playstore_update_details', 'Google Play 앱 세부정보(개발자 연락처·기본 언어) 수정 — 연락처 이메일/전화/웹사이트, 기본 언어. 스토어 리스팅(제목·설명)과는 별개이며, 넘긴 필드만 부분 갱신(edits.details.patch). ⚠️ Console 에서 같은 앱을 편집·미게시 중이면 충돌할 수 있음.', {
|
|
42
|
+
packageName: z.string().describe('패키지명 (예: gg.pryzm.penguinrun)'),
|
|
43
|
+
contactEmail: z.string().optional().describe('개발자 연락처 이메일 (스토어 등록정보에 공개)'),
|
|
44
|
+
contactPhone: z.string().optional().describe('개발자 연락처 전화번호 (선택)'),
|
|
45
|
+
contactWebsite: z.string().optional().describe('개발자 웹사이트 URL (예: https://penguin.pryzm.gg)'),
|
|
46
|
+
defaultLanguage: z.string().optional().describe('기본 언어 코드 (예: ko-KR, en-US)'),
|
|
47
|
+
}, async ({ packageName, contactEmail, contactPhone, contactWebsite, defaultLanguage }) => {
|
|
48
|
+
const auth = requirePlayStoreAuth(packageName);
|
|
49
|
+
const result = await playstore.updateAppDetails(auth, packageName, {
|
|
50
|
+
contactEmail, contactPhone, contactWebsite, defaultLanguage,
|
|
51
|
+
});
|
|
52
|
+
return { content: [{ type: 'text', text: `수정 완료:\n${JSON.stringify(result, null, 2)}` }] };
|
|
53
|
+
});
|
|
41
54
|
server.tool('playstore_get_listing', 'Google Play 스토어 리스팅 조회 (제목, 설명문 등)', {
|
|
42
55
|
packageName: z.string().describe('패키지명'),
|
|
43
56
|
language: z.string().default('ko-KR').describe('언어 코드 (기본: ko-KR)'),
|
package/package.json
CHANGED