@yoonion/mimi-seed-mcp 0.21.8 → 0.23.0
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 +18 -2
- package/assets/agent-guide.md +1 -0
- package/dist/admob/tools.d.ts +1 -1
- package/dist/ai/client.d.ts +2 -2
- package/dist/ai/client.js +19 -3
- package/dist/ai/notes.js +1 -1
- package/dist/ai/review.js +1 -1
- package/dist/auth/drive-auth.d.ts +26 -0
- package/dist/auth/drive-auth.js +91 -0
- package/dist/auth/drive-setup-cli.d.ts +2 -0
- package/dist/auth/drive-setup-cli.js +157 -0
- package/dist/auth/scopes.d.ts +7 -0
- package/dist/auth/scopes.js +10 -0
- package/dist/core/ai.d.ts +2 -0
- package/dist/core/ai.js +7 -0
- package/dist/drive/tools.d.ts +122 -0
- package/dist/drive/tools.js +281 -0
- package/dist/firebase/tools.d.ts +11 -11
- package/dist/ga4/tools.d.ts +5 -5
- package/dist/gsc/tools.d.ts +5 -5
- package/dist/index.js +23 -9
- package/dist/lib/googleapis-lite.d.ts +20 -18
- package/dist/lib/googleapis-lite.js +45 -24
- package/dist/playstore/edits.d.ts +1 -1
- package/dist/playstore/images.d.ts +2 -2
- package/dist/playstore/listing.d.ts +4 -4
- package/dist/playstore/products.d.ts +5 -5
- package/dist/playstore/recovery.d.ts +2 -2
- package/dist/playstore/releases.d.ts +5 -5
- package/dist/playstore/reviews.d.ts +1 -1
- package/dist/registers/drive.d.ts +2 -0
- package/dist/registers/drive.js +108 -0
- package/dist/registers/video.js +4 -1
- package/dist/server.js +2 -0
- package/dist/video/project.js +1 -1
- package/dist/video/research.js +1 -1
- package/dist/video/youtube-publish.d.ts +14 -0
- package/dist/video/youtube-publish.js +6 -0
- package/dist/youtube/tools.d.ts +3 -1
- package/dist/youtube/tools.js +2 -0
- package/package.json +31 -15
- package/tool-manifest.json +37 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OAuth2Client, JWT } from 'google-auth-library';
|
|
2
2
|
export type PlayImageType = 'featureGraphic' | 'icon' | 'phoneScreenshots' | 'promoGraphic' | 'sevenInchScreenshots' | 'tenInchScreenshots' | 'tvBanner' | 'tvScreenshots' | 'wearScreenshots';
|
|
3
|
-
export declare function listImages(auth: OAuth2Client | JWT, packageName: string, language: string, imageType: PlayImageType): Promise<import("googleapis/
|
|
4
|
-
export declare function uploadImage(auth: OAuth2Client | JWT, packageName: string, language: string, imageType: PlayImageType, filePath: string): Promise<import("googleapis/
|
|
3
|
+
export declare function listImages(auth: OAuth2Client | JWT, packageName: string, language: string, imageType: PlayImageType): Promise<import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Image[]>;
|
|
4
|
+
export declare function uploadImage(auth: OAuth2Client | JWT, packageName: string, language: string, imageType: PlayImageType, filePath: string): Promise<import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Image | undefined>;
|
|
5
5
|
export declare function deleteAllImages(auth: OAuth2Client | JWT, packageName: string, language: string, imageType: PlayImageType): Promise<{
|
|
6
6
|
ok: boolean;
|
|
7
7
|
imageType: PlayImageType;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { OAuth2Client, JWT } from 'google-auth-library';
|
|
2
|
-
export declare function getAppDetails(auth: OAuth2Client | JWT, packageName: string): Promise<import("googleapis/
|
|
2
|
+
export declare function getAppDetails(auth: OAuth2Client | JWT, packageName: string): Promise<import("@googleapis/androidpublisher").androidpublisher_v3.Schema$AppDetails>;
|
|
3
3
|
export declare function updateAppDetails(auth: OAuth2Client | JWT, packageName: string, data: {
|
|
4
4
|
contactEmail?: string;
|
|
5
5
|
contactPhone?: string;
|
|
6
6
|
contactWebsite?: string;
|
|
7
7
|
defaultLanguage?: string;
|
|
8
|
-
}): Promise<import("googleapis/
|
|
9
|
-
export declare function getListing(auth: OAuth2Client | JWT, packageName: string, language?: string): Promise<import("googleapis/
|
|
8
|
+
}): Promise<import("@googleapis/androidpublisher").androidpublisher_v3.Schema$AppDetails>;
|
|
9
|
+
export declare function getListing(auth: OAuth2Client | JWT, packageName: string, language?: string): Promise<import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Listing>;
|
|
10
10
|
export declare function updateListing(auth: OAuth2Client | JWT, packageName: string, language: string, data: {
|
|
11
11
|
title?: string;
|
|
12
12
|
shortDescription?: string;
|
|
13
13
|
fullDescription?: string;
|
|
14
|
-
}): Promise<import("googleapis/
|
|
14
|
+
}): Promise<import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Listing>;
|
|
@@ -3,16 +3,16 @@ export declare function listInAppProducts(auth: OAuth2Client | JWT, packageName:
|
|
|
3
3
|
truncated: boolean;
|
|
4
4
|
items: {
|
|
5
5
|
productId: string | null | undefined;
|
|
6
|
-
listings: import("googleapis/
|
|
7
|
-
purchaseOptions: import("googleapis/
|
|
6
|
+
listings: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$OneTimeProductListing[] | undefined;
|
|
7
|
+
purchaseOptions: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$OneTimeProductPurchaseOption[] | undefined;
|
|
8
8
|
}[];
|
|
9
9
|
}>;
|
|
10
10
|
export declare function listSubscriptions(auth: OAuth2Client | JWT, packageName: string): Promise<{
|
|
11
11
|
truncated: boolean;
|
|
12
12
|
items: {
|
|
13
13
|
productId: string | null | undefined;
|
|
14
|
-
basePlans: import("googleapis/
|
|
15
|
-
listings: import("googleapis/
|
|
14
|
+
basePlans: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$BasePlan[] | undefined;
|
|
15
|
+
listings: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$SubscriptionListing[] | undefined;
|
|
16
16
|
}[];
|
|
17
17
|
}>;
|
|
18
18
|
export interface ProductListingInput {
|
|
@@ -38,7 +38,7 @@ export declare function updateSubscriptionListings(auth: OAuth2Client | JWT, pac
|
|
|
38
38
|
productId: string;
|
|
39
39
|
created: string[];
|
|
40
40
|
updated: string[];
|
|
41
|
-
listings: import("googleapis/
|
|
41
|
+
listings: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$SubscriptionListing[];
|
|
42
42
|
}>;
|
|
43
43
|
export declare function updatePurchaseOptionState(auth: OAuth2Client | JWT, packageName: string, productId: string, purchaseOptionId: string, action: 'activate' | 'deactivate'): Promise<{
|
|
44
44
|
productId: string;
|
|
@@ -21,13 +21,13 @@ export declare function listRecoveryActions(auth: OAuth2Client | JWT, packageNam
|
|
|
21
21
|
createTime: string | null | undefined;
|
|
22
22
|
deployTime: string | null | undefined;
|
|
23
23
|
cancelTime: string | null | undefined;
|
|
24
|
-
targeting: import("googleapis/
|
|
24
|
+
targeting: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Targeting | undefined;
|
|
25
25
|
}[]>;
|
|
26
26
|
/** DRAFT 상태로만 만든다 — 실제 배포는 deployRecoveryAction 이 별도로 한다. */
|
|
27
27
|
export declare function createRecoveryAction(auth: OAuth2Client | JWT, packageName: string, targeting: RecoveryTargeting): Promise<{
|
|
28
28
|
id: string | null | undefined;
|
|
29
29
|
status: string | null | undefined;
|
|
30
|
-
targeting: import("googleapis/
|
|
30
|
+
targeting: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Targeting | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
export declare function deployRecoveryAction(auth: OAuth2Client | JWT, packageName: string, appRecoveryId: string): Promise<{
|
|
33
33
|
appRecoveryId: string;
|
|
@@ -5,10 +5,10 @@ export declare function listTracks(auth: OAuth2Client | JWT, packageName: string
|
|
|
5
5
|
name: string | null | undefined;
|
|
6
6
|
status: string | null | undefined;
|
|
7
7
|
versionCodes: string[] | null | undefined;
|
|
8
|
-
releaseNotes: import("googleapis/
|
|
8
|
+
releaseNotes: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$LocalizedText[] | undefined;
|
|
9
9
|
}[];
|
|
10
10
|
}[]>;
|
|
11
|
-
export declare function updateReleaseNotes(auth: OAuth2Client | JWT, packageName: string, track: string, versionCode: string, language: string, text: string): Promise<import("googleapis/
|
|
11
|
+
export declare function updateReleaseNotes(auth: OAuth2Client | JWT, packageName: string, track: string, versionCode: string, language: string, text: string): Promise<import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Track>;
|
|
12
12
|
/**
|
|
13
13
|
* 최신 release (versionCode 최대값)의 releaseNotes[language]를 교체/추가.
|
|
14
14
|
* versionCode를 모를 때 편의용.
|
|
@@ -16,7 +16,7 @@ export declare function updateReleaseNotes(auth: OAuth2Client | JWT, packageName
|
|
|
16
16
|
export declare function updateLatestReleaseNotes(auth: OAuth2Client | JWT, packageName: string, track: string, language: string, text: string): Promise<{
|
|
17
17
|
updatedVersionCodes: string[] | null | undefined;
|
|
18
18
|
updatedReleaseName: string | null | undefined;
|
|
19
|
-
releases?: import("googleapis/
|
|
19
|
+
releases?: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$TrackRelease[];
|
|
20
20
|
track?: string | null;
|
|
21
21
|
}>;
|
|
22
22
|
export declare function submitRelease(auth: OAuth2Client | JWT, packageName: string, track: string, versionCode: string, status?: 'completed' | 'draft' | 'inProgress' | 'halted'): Promise<{
|
|
@@ -27,7 +27,7 @@ export declare function submitRelease(auth: OAuth2Client | JWT, packageName: str
|
|
|
27
27
|
previousStatus: string | null | undefined;
|
|
28
28
|
newStatus: "completed" | "draft" | "inProgress" | "halted";
|
|
29
29
|
committed: boolean;
|
|
30
|
-
result: import("googleapis/
|
|
30
|
+
result: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Track;
|
|
31
31
|
}>;
|
|
32
32
|
export interface PromoteReleaseOptions {
|
|
33
33
|
status?: 'completed' | 'draft' | 'inProgress' | 'halted';
|
|
@@ -52,5 +52,5 @@ export declare function promoteRelease(auth: OAuth2Client | JWT, packageName: st
|
|
|
52
52
|
releaseName: string | null | undefined;
|
|
53
53
|
releaseNotesLanguages: (string | null | undefined)[];
|
|
54
54
|
committed: boolean;
|
|
55
|
-
result: import("googleapis/
|
|
55
|
+
result: import("@googleapis/androidpublisher").androidpublisher_v3.Schema$Track;
|
|
56
56
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OAuth2Client, JWT } from 'google-auth-library';
|
|
2
|
-
import type { androidpublisher_v3 } from 'googleapis/
|
|
2
|
+
import type { androidpublisher_v3 } from '@googleapis/androidpublisher';
|
|
3
3
|
/** 리뷰 목록과, 목록이 잘렸다면 그 이유(아니면 null). 도구 응답은 이걸 쓴다. */
|
|
4
4
|
export declare function listReviewsWithStatus(auth: OAuth2Client | JWT, packageName: string): Promise<{
|
|
5
5
|
reviews: {
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { GOOGLE_PROFILE_ID, getStoredTokens } from '../auth/google-auth.js';
|
|
3
|
+
import { DRIVE_FILE_SCOPE } from '../auth/scopes.js';
|
|
4
|
+
import { DRIVE_AUTH_HINT, driveJwt, getDriveServiceAccount } from '../auth/drive-auth.js';
|
|
5
|
+
import { requireAuth } from '../helpers.js';
|
|
6
|
+
import { jsonResult, errorResult } from '../lib/mcp-response.js';
|
|
7
|
+
import * as drive from '../drive/tools.js';
|
|
8
|
+
/**
|
|
9
|
+
* Drive 인증 해석: Drive 서비스 계정(환경 변수 > 파일)이 있으면 그것, 없으면 Google OAuth(drive.file).
|
|
10
|
+
* 서비스 계정은 공유받은 기존 폴더·공유 드라이브를 다룰 수 있고, OAuth drive.file 은
|
|
11
|
+
* mimi-seed 가 만든 파일·폴더만 다룬다.
|
|
12
|
+
*/
|
|
13
|
+
async function resolveDriveAuth(profile) {
|
|
14
|
+
const sa = getDriveServiceAccount();
|
|
15
|
+
if (sa)
|
|
16
|
+
return { client: driveJwt(sa.key), source: sa.source, clientEmail: sa.key.client_email ?? null };
|
|
17
|
+
if (!getStoredTokens(profile))
|
|
18
|
+
throw new Error(DRIVE_AUTH_HINT);
|
|
19
|
+
return { client: await requireAuth(DRIVE_FILE_SCOPE, profile), source: 'user-oauth', clientEmail: null };
|
|
20
|
+
}
|
|
21
|
+
/** 인증 → 호출 → JSON. Drive 오류는 driveError 로 원인별 안내를 붙인다. */
|
|
22
|
+
async function withDrive(profile, run) {
|
|
23
|
+
let auth;
|
|
24
|
+
try {
|
|
25
|
+
auth = await resolveDriveAuth(profile);
|
|
26
|
+
}
|
|
27
|
+
catch (e) {
|
|
28
|
+
return errorResult(e instanceof Error ? e.message : String(e));
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
return jsonResult({ authSource: auth.source, ...(await run(auth.client)) });
|
|
32
|
+
}
|
|
33
|
+
catch (e) {
|
|
34
|
+
return errorResult(drive.driveError(e, auth.source, auth.clientEmail).message);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const profile = z.string().regex(GOOGLE_PROFILE_ID).optional()
|
|
38
|
+
.describe('Google 로그인 프로필 (OAuth 사용 시). Drive 서비스 계정이 설정돼 있으면 무시된다.');
|
|
39
|
+
const driveId = (what) => z.string().regex(drive.DRIVE_ID_RE).describe(what);
|
|
40
|
+
const absPath = z.string().min(1).describe('올릴 로컬 파일의 절대 경로');
|
|
41
|
+
export function registerDriveTools(server) {
|
|
42
|
+
server.tool('drive_auth_status', '현재 Google Drive 인증 상태 — Drive 서비스 계정(환경 변수/파일) 또는 Google OAuth(drive.file) 중 무엇이 쓰이는지 확인', { profile }, async ({ profile }) => {
|
|
43
|
+
try {
|
|
44
|
+
const sa = getDriveServiceAccount();
|
|
45
|
+
if (sa) {
|
|
46
|
+
return jsonResult({
|
|
47
|
+
authenticated: true,
|
|
48
|
+
source: sa.source,
|
|
49
|
+
clientEmail: sa.key.client_email,
|
|
50
|
+
note: '대상 폴더나 공유 드라이브를 이 이메일과 공유해야 접근할 수 있다.',
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
catch (e) {
|
|
55
|
+
return errorResult(e instanceof Error ? e.message : String(e));
|
|
56
|
+
}
|
|
57
|
+
const granted = getStoredTokens(profile)?.scope?.split(' ') ?? null;
|
|
58
|
+
if (granted?.includes(DRIVE_FILE_SCOPE)) {
|
|
59
|
+
return jsonResult({
|
|
60
|
+
authenticated: true,
|
|
61
|
+
source: 'user-oauth',
|
|
62
|
+
scope: DRIVE_FILE_SCOPE,
|
|
63
|
+
note: 'drive.file 권한은 mimi-seed 가 만든 파일·폴더만 다룬다. 기존 폴더는 Drive 서비스 계정을 쓴다.',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return jsonResult({ authenticated: false, hint: DRIVE_AUTH_HINT });
|
|
67
|
+
});
|
|
68
|
+
server.tool('drive_list_files', 'Google Drive 파일·폴더 목록 조회 — 폴더 ID, 이름 일부, MIME 형식으로 거른다. 공유 드라이브 포함, 기본으로 휴지통 제외.', {
|
|
69
|
+
folderId: driveId('이 폴더 바로 아래만 조회 (폴더 ID 또는 "root")').optional(),
|
|
70
|
+
nameContains: z.string().max(255).optional().describe('이름에 포함된 문자열'),
|
|
71
|
+
mimeType: z.string().max(255).optional().describe('MIME 형식 일치 (폴더는 application/vnd.google-apps.folder)'),
|
|
72
|
+
includeTrashed: z.boolean().optional().describe('휴지통 항목 포함 (기본 false)'),
|
|
73
|
+
pageSize: z.number().int().min(1).max(1000).optional().describe('페이지 크기 (기본 100)'),
|
|
74
|
+
pageToken: z.string().optional().describe('이전 응답의 nextPageToken'),
|
|
75
|
+
profile,
|
|
76
|
+
}, async ({ profile, ...input }) => withDrive(profile, (c) => drive.listFiles(c, input)));
|
|
77
|
+
server.tool('drive_get_file', 'Google Drive 파일·폴더 하나의 메타데이터(이름, MIME, 크기, MD5, 부모, 링크, 수정 시각) 조회', { fileId: driveId('파일 또는 폴더 ID'), profile }, async ({ fileId, profile }) => withDrive(profile, async (c) => ({ file: await drive.getFile(c, fileId) })));
|
|
78
|
+
server.tool('drive_create_folder', 'Google Drive 폴더 생성. 부모 안에 같은 이름의 폴더가 이미 있으면 새로 만들지 않고 그 폴더를 돌려준다(status=exists).', {
|
|
79
|
+
name: z.string().min(1).max(255).describe('폴더 이름'),
|
|
80
|
+
parentId: driveId('부모 폴더 ID (기본 "root" — 내 드라이브 최상위)').optional(),
|
|
81
|
+
reuseExisting: z.boolean().optional().describe('같은 이름 폴더 재사용 (기본 true). false 면 항상 새로 만든다.'),
|
|
82
|
+
profile,
|
|
83
|
+
}, async ({ profile, ...input }) => withDrive(profile, (c) => drive.createFolder(c, input)));
|
|
84
|
+
server.tool('drive_upload_file', '로컬 파일을 Google Drive 폴더에 새 파일로 업로드 (재개 가능 업로드, 완료 후 MD5 대조). ' +
|
|
85
|
+
'같은 폴더에 같은 이름이 있으면 기본으로 거부한다 — 내용 교체는 drive_update_file_content.', {
|
|
86
|
+
filePath: absPath,
|
|
87
|
+
parentId: driveId('올릴 폴더 ID (기본 "root")').optional(),
|
|
88
|
+
name: z.string().min(1).max(255).optional().describe('Drive 에서 쓸 이름 (기본: 로컬 파일 이름)'),
|
|
89
|
+
mimeType: z.string().max(255).optional().describe('MIME 형식 (기본: 확장자로 추정)'),
|
|
90
|
+
onConflict: z.enum(['error', 'create_new']).optional()
|
|
91
|
+
.describe('같은 이름이 있을 때: error(기본) 또는 create_new(하나 더 만든다)'),
|
|
92
|
+
profile,
|
|
93
|
+
}, async ({ profile, ...input }) => withDrive(profile, (c) => drive.uploadFile(c, input)));
|
|
94
|
+
server.tool('drive_update_file_content', '기존 Drive 파일의 내용을 로컬 파일로 교체 — 같은 fileId·공유 링크를 유지하고, Drive 가 이전 버전을 버전 기록에 보관한다. 완료 후 MD5 대조.', {
|
|
95
|
+
fileId: driveId('내용을 바꿀 파일 ID'),
|
|
96
|
+
filePath: absPath,
|
|
97
|
+
mimeType: z.string().max(255).optional().describe('MIME 형식 (기본: 확장자로 추정)'),
|
|
98
|
+
profile,
|
|
99
|
+
}, async ({ profile, ...input }) => withDrive(profile, (c) => drive.updateFileContent(c, input)));
|
|
100
|
+
server.tool('drive_update_file_metadata', 'Drive 파일·폴더의 이름·설명 변경 또는 다른 폴더로 이동. 하나 이상 지정해야 한다.', {
|
|
101
|
+
fileId: driveId('대상 파일 또는 폴더 ID'),
|
|
102
|
+
name: z.string().min(1).max(255).optional().describe('새 이름'),
|
|
103
|
+
description: z.string().max(4000).optional().describe('새 설명'),
|
|
104
|
+
moveToFolderId: driveId('옮겨 갈 폴더 ID').optional(),
|
|
105
|
+
profile,
|
|
106
|
+
}, async ({ profile, ...input }) => withDrive(profile, (c) => drive.updateFileMetadata(c, input)));
|
|
107
|
+
server.tool('drive_trash_file', 'Drive 파일·폴더를 휴지통으로 이동 (영구 삭제 아님 — Drive 휴지통에서 30일 안에 되살릴 수 있다).', { fileId: driveId('휴지통으로 보낼 파일 또는 폴더 ID'), profile }, async ({ fileId, profile }) => withDrive(profile, (c) => drive.trashFile(c, fileId)));
|
|
108
|
+
}
|
package/dist/registers/video.js
CHANGED
|
@@ -18,6 +18,7 @@ export function registerVideoTools(server) {
|
|
|
18
18
|
'로컬 영상 파일을 선택한 Google 로그인 프로필의 채널에 업로드합니다. expectedChannelId를 실제 인증 채널과 대조한 후 전송합니다.',
|
|
19
19
|
'기본 공개 상태는 private이며 public/unlisted는 같은 턴의 명시 승인 후 confirmVisible=true가 필요합니다.',
|
|
20
20
|
'업로드 후 youtube_get_video_status로 처리 완료 여부와 실제 공개 상태를 확인하세요.',
|
|
21
|
+
'Studio 업로드 기본값은 API 업로드에 적용되지 않습니다. 카테고리·제목/설명 언어·실제 음성 언어를 지정하세요. 댓글 검토 필터는 API로 설정하거나 확인할 수 없어 Studio 검증이 필요합니다.',
|
|
21
22
|
'요청이 타임아웃되면 업로드가 뒤늦게 완료될 수 있으므로 YouTube Studio를 먼저 확인하고 중복 재시도하지 마세요.',
|
|
22
23
|
'YouTube OAuth 권한이 없으면 mimi_seed_auth_start(domains=["youtube"])로 증분 연결하세요.',
|
|
23
24
|
].join(' '), {
|
|
@@ -28,6 +29,8 @@ export function registerVideoTools(server) {
|
|
|
28
29
|
description: z.string().max(5_000).optional().describe('영상 설명과 음원 출처/라이선스 표기'),
|
|
29
30
|
tags: z.array(z.string().min(1).max(500)).max(100).optional(),
|
|
30
31
|
categoryId: z.string().regex(/^\d+$/).default('24').describe('YouTube 카테고리 ID'),
|
|
32
|
+
defaultLanguage: z.string().min(2).max(35).optional().describe('제목·설명의 BCP-47 언어 코드 (예: ko, en). 음성 언어와 별개입니다.'),
|
|
33
|
+
defaultAudioLanguage: z.string().min(2).max(35).optional().describe('실제 음성의 BCP-47 언어 코드 (예: ko, en). 무대사는 생략하고 비공개 업로드 후 Studio에서 동영상 언어를 해당 사항 없음으로 저장·확인하세요. 제목으로 추정하지 않습니다.'),
|
|
31
34
|
privacyStatus: z.enum(['private', 'unlisted', 'public']).default('private'),
|
|
32
35
|
madeForKids: z.boolean().default(false),
|
|
33
36
|
containsSyntheticMedia: z.boolean().optional().describe('현실적으로 보이는 AI 생성·변형 콘텐츠 여부를 YouTube에 고지'),
|
|
@@ -38,7 +41,7 @@ export function registerVideoTools(server) {
|
|
|
38
41
|
const auth = await requireAuth(YOUTUBE_SCOPE, input.profile);
|
|
39
42
|
return jsonResult(await uploadYouTubeVideo(auth, input));
|
|
40
43
|
});
|
|
41
|
-
server.tool('youtube_get_video_status', '내 YouTube 영상의
|
|
44
|
+
server.tool('youtube_get_video_status', '내 YouTube 영상의 처리·공개 상태와 실제 반환된 카테고리·제목/설명 언어·음성 언어를 조회합니다. null은 미확인이며 무대사 판정이 아닙니다. 댓글 검토 필터는 Studio에서 별도로 확인해야 합니다.', {
|
|
42
45
|
profile: z.string().regex(GOOGLE_PROFILE_ID).optional().describe('영상 소유 채널의 Google 로그인 프로필'),
|
|
43
46
|
videoId: z.string().min(1).max(64).describe('YouTube video ID'),
|
|
44
47
|
}, async ({ videoId, profile }) => {
|
package/dist/server.js
CHANGED
|
@@ -22,6 +22,7 @@ import { registerAndroidTools } from './registers/android.js';
|
|
|
22
22
|
import { registerVideoTools } from './registers/video.js';
|
|
23
23
|
import { registerYouTubeTools } from './registers/youtube.js';
|
|
24
24
|
import { registerTikTokBusinessTools } from './registers/tiktok.js';
|
|
25
|
+
import { registerDriveTools } from './registers/drive.js';
|
|
25
26
|
import { registerPrompts } from './prompts.js';
|
|
26
27
|
import { registerResources } from './resources.js';
|
|
27
28
|
import { readToolManifest } from './lib/package-root.js';
|
|
@@ -71,6 +72,7 @@ export function buildServer(version, options = {}) {
|
|
|
71
72
|
registerVideoTools(registrar);
|
|
72
73
|
registerYouTubeTools(registrar);
|
|
73
74
|
registerTikTokBusinessTools(registrar);
|
|
75
|
+
registerDriveTools(registrar);
|
|
74
76
|
registerPrompts(server);
|
|
75
77
|
registerResources(server, { manifest, toolsets });
|
|
76
78
|
return server;
|
package/dist/video/project.js
CHANGED
|
@@ -44,7 +44,7 @@ export async function planStory(input) {
|
|
|
44
44
|
if (existsSync(projectPath) && !input.overwrite) {
|
|
45
45
|
throw new Error(`이미 영상 프로젝트가 있습니다: ${projectPath}\noverwrite=true로 명시해야 덮어씁니다.`);
|
|
46
46
|
}
|
|
47
|
-
const client = requireApiKey();
|
|
47
|
+
const client = await requireApiKey();
|
|
48
48
|
const response = await client.messages.create({
|
|
49
49
|
model: AI_MODEL,
|
|
50
50
|
max_tokens: 3000,
|
package/dist/video/research.js
CHANGED
|
@@ -56,7 +56,7 @@ export async function synthesizeResearch(input) {
|
|
|
56
56
|
throw new Error('종합할 리서치가 없습니다. 먼저 YouTube/Pexels 검색을 실행하거나 observations를 제공하세요.');
|
|
57
57
|
}
|
|
58
58
|
const data = JSON.stringify({ youtube, pexels, observations }).slice(0, 120_000);
|
|
59
|
-
const client = requireApiKey();
|
|
59
|
+
const client = await requireApiKey();
|
|
60
60
|
const response = await client.messages.create({
|
|
61
61
|
model: AI_MODEL,
|
|
62
62
|
max_tokens: 3500,
|
|
@@ -10,6 +10,8 @@ export interface UploadYouTubeVideoInput {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
tags?: string[];
|
|
12
12
|
categoryId?: string;
|
|
13
|
+
defaultLanguage?: string;
|
|
14
|
+
defaultAudioLanguage?: string;
|
|
13
15
|
privacyStatus?: YouTubePrivacyStatus;
|
|
14
16
|
madeForKids?: boolean;
|
|
15
17
|
containsSyntheticMedia?: boolean;
|
|
@@ -39,6 +41,10 @@ export declare function getYouTubeVideoStatus(auth: OAuth2Client, videoId: strin
|
|
|
39
41
|
title: string | null;
|
|
40
42
|
channelId: string | null;
|
|
41
43
|
channelTitle: string | null;
|
|
44
|
+
categoryId: string | null;
|
|
45
|
+
defaultLanguage: string | null;
|
|
46
|
+
defaultAudioLanguage: string | null;
|
|
47
|
+
commentModerationVerification: "requires_youtube_studio";
|
|
42
48
|
privacyStatus: string | null;
|
|
43
49
|
publishAt: string | null;
|
|
44
50
|
uploadStatus: string | null;
|
|
@@ -67,6 +73,10 @@ export declare function uploadYouTubeVideo(auth: OAuth2Client, input: UploadYouT
|
|
|
67
73
|
title: string | null;
|
|
68
74
|
channelId: string | null;
|
|
69
75
|
channelTitle: string | null;
|
|
76
|
+
categoryId: string | null;
|
|
77
|
+
defaultLanguage: string | null;
|
|
78
|
+
defaultAudioLanguage: string | null;
|
|
79
|
+
commentModerationVerification: "requires_youtube_studio";
|
|
70
80
|
privacyStatus: string | null;
|
|
71
81
|
publishAt: string | null;
|
|
72
82
|
uploadStatus: string | null;
|
|
@@ -82,6 +92,10 @@ export declare function updateYouTubeVideoPrivacy(auth: OAuth2Client, input: Upd
|
|
|
82
92
|
title: string | null;
|
|
83
93
|
channelId: string | null;
|
|
84
94
|
channelTitle: string | null;
|
|
95
|
+
categoryId: string | null;
|
|
96
|
+
defaultLanguage: string | null;
|
|
97
|
+
defaultAudioLanguage: string | null;
|
|
98
|
+
commentModerationVerification: "requires_youtube_studio";
|
|
85
99
|
privacyStatus: string | null;
|
|
86
100
|
publishAt: string | null;
|
|
87
101
|
uploadStatus: string | null;
|
|
@@ -62,6 +62,10 @@ function safeStatus(video) {
|
|
|
62
62
|
title: video.snippet?.title ?? null,
|
|
63
63
|
channelId: video.snippet?.channelId ?? null,
|
|
64
64
|
channelTitle: video.snippet?.channelTitle ?? null,
|
|
65
|
+
categoryId: video.snippet?.categoryId ?? null,
|
|
66
|
+
defaultLanguage: video.snippet?.defaultLanguage ?? null,
|
|
67
|
+
defaultAudioLanguage: video.snippet?.defaultAudioLanguage ?? null,
|
|
68
|
+
commentModerationVerification: 'requires_youtube_studio',
|
|
65
69
|
privacyStatus: video.status?.privacyStatus ?? null,
|
|
66
70
|
publishAt: video.status?.publishAt ?? null,
|
|
67
71
|
uploadStatus: video.status?.uploadStatus ?? null,
|
|
@@ -121,6 +125,8 @@ export async function uploadYouTubeVideo(auth, input) {
|
|
|
121
125
|
description: input.description ?? '',
|
|
122
126
|
tags: input.tags ?? [],
|
|
123
127
|
categoryId: input.categoryId ?? '24',
|
|
128
|
+
...(input.defaultLanguage ? { defaultLanguage: input.defaultLanguage } : {}),
|
|
129
|
+
...(input.defaultAudioLanguage ? { defaultAudioLanguage: input.defaultAudioLanguage } : {}),
|
|
124
130
|
},
|
|
125
131
|
status: {
|
|
126
132
|
privacyStatus,
|
package/dist/youtube/tools.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare function updateYouTubeVideoMetadata(auth: OAuth2Client, input: Up
|
|
|
22
22
|
tags: string[];
|
|
23
23
|
categoryId: string;
|
|
24
24
|
defaultLanguage: string | null;
|
|
25
|
+
defaultAudioLanguage: string | null;
|
|
25
26
|
};
|
|
26
27
|
after: youtube_v3.Schema$VideoSnippet;
|
|
27
28
|
status: "preview";
|
|
@@ -42,6 +43,7 @@ export declare function updateYouTubeVideoMetadata(auth: OAuth2Client, input: Up
|
|
|
42
43
|
tags: string[];
|
|
43
44
|
categoryId: string;
|
|
44
45
|
defaultLanguage: string | null;
|
|
46
|
+
defaultAudioLanguage: string | null;
|
|
45
47
|
};
|
|
46
48
|
after: youtube_v3.Schema$VideoSnippet;
|
|
47
49
|
status: "updated";
|
|
@@ -166,7 +168,7 @@ export declare function getYouTubeAnalyticsReport(auth: OAuth2Client, input: You
|
|
|
166
168
|
endDate: string;
|
|
167
169
|
};
|
|
168
170
|
dimension: AnalyticsDimension;
|
|
169
|
-
columnHeaders: import("googleapis/build/
|
|
171
|
+
columnHeaders: import("@googleapis/youtubeanalytics/build/v2.js").youtubeAnalytics_v2.Schema$ResultTableColumnHeader[];
|
|
170
172
|
rows: any[][];
|
|
171
173
|
startIndex: number;
|
|
172
174
|
maxResults: number;
|
package/dist/youtube/tools.js
CHANGED
|
@@ -51,11 +51,13 @@ export async function updateYouTubeVideoMetadata(auth, input) {
|
|
|
51
51
|
const snippet = {
|
|
52
52
|
title, description, categoryId: old.categoryId, tags,
|
|
53
53
|
...(old.defaultLanguage ? { defaultLanguage: old.defaultLanguage } : {}),
|
|
54
|
+
...(old.defaultAudioLanguage ? { defaultAudioLanguage: old.defaultAudioLanguage } : {}),
|
|
54
55
|
};
|
|
55
56
|
const preview = {
|
|
56
57
|
videoId: input.videoId, channel, before: {
|
|
57
58
|
title: old.title, description: old.description ?? '', tags: old.tags ?? [],
|
|
58
59
|
categoryId: old.categoryId, defaultLanguage: old.defaultLanguage ?? null,
|
|
60
|
+
defaultAudioLanguage: old.defaultAudioLanguage ?? null,
|
|
59
61
|
}, after: snippet,
|
|
60
62
|
};
|
|
61
63
|
if (input.confirm !== true)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoonion/mimi-seed-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Mimi Seed MCP server
|
|
3
|
+
"version": "0.23.0",
|
|
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": {
|
|
7
7
|
"#core/*": "./dist/core/*"
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"mimi-seed-appstore-auth": "dist/appstore/setup-cli.js",
|
|
13
13
|
"mimi-seed-playstore-auth": "dist/auth/playstore-setup-cli.js",
|
|
14
14
|
"mimi-seed-bigquery-auth": "dist/auth/bigquery-setup-cli.js",
|
|
15
|
+
"mimi-seed-drive-auth": "dist/auth/drive-setup-cli.js",
|
|
15
16
|
"mimi-seed-jenkins-auth": "dist/jenkins/setup-cli.js",
|
|
16
17
|
"mimi-seed-googleads-auth": "dist/googleads/setup-cli.js",
|
|
17
18
|
"mimi-seed-social-auth": "dist/social/setup-cli.js",
|
|
@@ -64,28 +65,43 @@
|
|
|
64
65
|
},
|
|
65
66
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
66
67
|
"engines": {
|
|
67
|
-
"node": ">=
|
|
68
|
-
},
|
|
69
|
-
"overrides": {
|
|
70
|
-
"gaxios": "7.1.5"
|
|
68
|
+
"node": ">=22"
|
|
71
69
|
},
|
|
72
70
|
"dependencies": {
|
|
73
|
-
"@
|
|
71
|
+
"@googleapis/admob": "^11.0.1",
|
|
72
|
+
"@googleapis/analyticsadmin": "^22.0.2",
|
|
73
|
+
"@googleapis/analyticsdata": "^10.1.1",
|
|
74
|
+
"@googleapis/androidpublisher": "^42.3.1",
|
|
75
|
+
"@googleapis/bigquery": "^27.2.0",
|
|
76
|
+
"@googleapis/billingbudgets": "^9.1.1",
|
|
77
|
+
"@googleapis/cloudbilling": "^14.0.1",
|
|
78
|
+
"@googleapis/cloudresourcemanager": "^11.4.0",
|
|
79
|
+
"@googleapis/drive": "^27.1.0",
|
|
80
|
+
"@googleapis/firebase": "^17.0.1",
|
|
81
|
+
"@googleapis/iam": "^42.4.0",
|
|
82
|
+
"@googleapis/monitoring": "^18.0.1",
|
|
83
|
+
"@googleapis/searchconsole": "^11.0.1",
|
|
84
|
+
"@googleapis/serviceusage": "^29.0.0",
|
|
85
|
+
"@googleapis/youtube": "^40.1.0",
|
|
86
|
+
"@googleapis/youtubeanalytics": "^11.0.1",
|
|
74
87
|
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
75
88
|
"@onesub/providers": "^0.5.0",
|
|
76
|
-
"
|
|
77
|
-
"jose": "^6.2.
|
|
89
|
+
"google-auth-library": "^11.3.4",
|
|
90
|
+
"jose": "^6.2.18",
|
|
78
91
|
"open": "^11.0.4",
|
|
79
92
|
"zod": "^4.6.7"
|
|
80
93
|
},
|
|
81
94
|
"devDependencies": {
|
|
82
95
|
"@eslint/js": "^10.0.1",
|
|
83
|
-
"@types/node": "^20.
|
|
84
|
-
"@vitest/coverage-v8": "^
|
|
85
|
-
"eslint": "^10.
|
|
96
|
+
"@types/node": "^22.20.5",
|
|
97
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
98
|
+
"eslint": "^10.15.0",
|
|
86
99
|
"tsx": "^4.23.15",
|
|
87
|
-
"typescript": "^
|
|
88
|
-
"typescript-eslint": "^8.
|
|
89
|
-
"vitest": "^
|
|
100
|
+
"typescript": "^6.0.3",
|
|
101
|
+
"typescript-eslint": "^8.73.0",
|
|
102
|
+
"vitest": "^5.1.1"
|
|
103
|
+
},
|
|
104
|
+
"optionalDependencies": {
|
|
105
|
+
"@anthropic-ai/sdk": "^1.12.0"
|
|
90
106
|
}
|
|
91
107
|
}
|
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": 255,
|
|
4
4
|
"alwaysOn": [
|
|
5
5
|
"auth",
|
|
6
6
|
"checks"
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"bigquery",
|
|
35
35
|
"ga4",
|
|
36
36
|
"gsc",
|
|
37
|
-
"googleads"
|
|
37
|
+
"googleads",
|
|
38
|
+
"drive"
|
|
38
39
|
],
|
|
39
40
|
"social": [
|
|
40
41
|
"facebook",
|
|
@@ -45,7 +46,8 @@
|
|
|
45
46
|
],
|
|
46
47
|
"media": [
|
|
47
48
|
"video",
|
|
48
|
-
"youtube"
|
|
49
|
+
"youtube",
|
|
50
|
+
"drive"
|
|
49
51
|
],
|
|
50
52
|
"build": [
|
|
51
53
|
"ci",
|
|
@@ -848,6 +850,38 @@
|
|
|
848
850
|
"youtube_set_thumbnail",
|
|
849
851
|
"youtube_schedule_video"
|
|
850
852
|
]
|
|
853
|
+
},
|
|
854
|
+
"drive": {
|
|
855
|
+
"label": "Google Drive",
|
|
856
|
+
"credential": "Drive 서비스 계정 (또는 Google OAuth drive.file)",
|
|
857
|
+
"summary": "폴더 생성·파일 업로드·내용 교체·이름 변경/이동·휴지통·목록 조회",
|
|
858
|
+
"tools": [
|
|
859
|
+
"drive_auth_status",
|
|
860
|
+
"drive_list_files",
|
|
861
|
+
"drive_get_file",
|
|
862
|
+
"drive_create_folder",
|
|
863
|
+
"drive_upload_file",
|
|
864
|
+
"drive_update_file_content",
|
|
865
|
+
"drive_update_file_metadata",
|
|
866
|
+
"drive_trash_file"
|
|
867
|
+
],
|
|
868
|
+
"write": [
|
|
869
|
+
"drive_create_folder",
|
|
870
|
+
"drive_upload_file",
|
|
871
|
+
"drive_update_file_metadata"
|
|
872
|
+
],
|
|
873
|
+
"destructive": [
|
|
874
|
+
"drive_update_file_content",
|
|
875
|
+
"drive_trash_file"
|
|
876
|
+
],
|
|
877
|
+
"ownGate": [],
|
|
878
|
+
"local": [
|
|
879
|
+
"drive_auth_status"
|
|
880
|
+
],
|
|
881
|
+
"idempotent": [
|
|
882
|
+
"drive_create_folder",
|
|
883
|
+
"drive_update_file_metadata"
|
|
884
|
+
]
|
|
851
885
|
}
|
|
852
886
|
}
|
|
853
887
|
}
|