@yoonion/mimi-seed-mcp 0.3.17 → 0.3.18
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/LICENSE +75 -0
- package/dist/auth/cli.js +3 -2
- package/dist/auth/constants.d.ts +4 -2
- package/dist/auth/constants.js +17 -11
- package/dist/auth/google-auth.js +5 -4
- package/dist/index.js +3 -2
- package/package.json +4 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
Required Notice: Copyright 2026 Pryzm GG (https://mimi-seed.pryzm.gg)
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
14
|
+
|
|
15
|
+
## Distribution License
|
|
16
|
+
|
|
17
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Notices
|
|
20
|
+
|
|
21
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
22
|
+
|
|
23
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
24
|
+
|
|
25
|
+
## Changes and New Works License
|
|
26
|
+
|
|
27
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
28
|
+
|
|
29
|
+
## Patent License
|
|
30
|
+
|
|
31
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Noncommercial Purposes
|
|
34
|
+
|
|
35
|
+
Any noncommercial purpose is a permitted purpose.
|
|
36
|
+
|
|
37
|
+
## Personal Uses
|
|
38
|
+
|
|
39
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
40
|
+
|
|
41
|
+
## Noncommercial Organizations
|
|
42
|
+
|
|
43
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
44
|
+
|
|
45
|
+
## Fair Use
|
|
46
|
+
|
|
47
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
48
|
+
|
|
49
|
+
## No Other Rights
|
|
50
|
+
|
|
51
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
52
|
+
|
|
53
|
+
## Patent Defense
|
|
54
|
+
|
|
55
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
56
|
+
|
|
57
|
+
## Violations
|
|
58
|
+
|
|
59
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
60
|
+
|
|
61
|
+
## No Liability
|
|
62
|
+
|
|
63
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
64
|
+
|
|
65
|
+
## Definitions
|
|
66
|
+
|
|
67
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
68
|
+
|
|
69
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
70
|
+
|
|
71
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
72
|
+
|
|
73
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
74
|
+
|
|
75
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/dist/auth/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import readline from 'node:readline';
|
|
|
3
3
|
import open from 'open';
|
|
4
4
|
import { startAuth, getStoredTokens, ensureFreshAccessToken, } from './google-auth.js';
|
|
5
5
|
import { AuthError, classifyError } from './errors.js';
|
|
6
|
-
import {
|
|
6
|
+
import { getMcpOAuthClient } from './constants.js';
|
|
7
7
|
const args = process.argv.slice(2);
|
|
8
8
|
const hasFlag = (name) => args.includes(`--${name}`);
|
|
9
9
|
const flagValue = (name) => {
|
|
@@ -158,7 +158,8 @@ async function cmdLogin() {
|
|
|
158
158
|
let url;
|
|
159
159
|
let wait;
|
|
160
160
|
try {
|
|
161
|
-
const
|
|
161
|
+
const { clientId, clientSecret } = await getMcpOAuthClient();
|
|
162
|
+
const r = startAuth(clientId, clientSecret, {
|
|
162
163
|
timeoutMs: timeoutSec * 1000,
|
|
163
164
|
});
|
|
164
165
|
url = r.url;
|
package/dist/auth/constants.d.ts
CHANGED
package/dist/auth/constants.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
const WEB_BASE = process.env.MIMI_SEED_WEB_BASE ?? 'https://mimi-seed.pryzm.gg';
|
|
2
|
+
let _cached = null;
|
|
3
|
+
export async function getMcpOAuthClient() {
|
|
4
|
+
const id = process.env.MIMI_SEED_GOOGLE_CLIENT_ID ??
|
|
5
|
+
process.env.PRESEED_GOOGLE_CLIENT_ID;
|
|
6
|
+
const secret = process.env.MIMI_SEED_GOOGLE_CLIENT_SECRET ??
|
|
7
|
+
process.env.PRESEED_GOOGLE_CLIENT_SECRET;
|
|
8
|
+
if (id && secret)
|
|
9
|
+
return { clientId: id, clientSecret: secret };
|
|
10
|
+
if (_cached)
|
|
11
|
+
return _cached;
|
|
12
|
+
const res = await fetch(`${WEB_BASE}/api/mcp-auth-config`);
|
|
13
|
+
if (!res.ok)
|
|
14
|
+
throw new Error(`mcp-auth-config fetch failed (${res.status})`);
|
|
15
|
+
_cached = (await res.json());
|
|
16
|
+
return _cached;
|
|
17
|
+
}
|
package/dist/auth/google-auth.js
CHANGED
|
@@ -4,7 +4,7 @@ import open from 'open';
|
|
|
4
4
|
import fs from 'node:fs';
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
import os from 'node:os';
|
|
7
|
-
import {
|
|
7
|
+
import { getMcpOAuthClient } from './constants.js';
|
|
8
8
|
import { AuthError, classifyError } from './errors.js';
|
|
9
9
|
const SCOPES = [
|
|
10
10
|
'https://www.googleapis.com/auth/firebase',
|
|
@@ -285,10 +285,11 @@ export async function ensureFreshAccessToken(marginMs = 60_000) {
|
|
|
285
285
|
},
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
// refresh 시도 — credentials.json 우선, 없으면
|
|
288
|
+
// refresh 시도 — credentials.json 우선, 없으면 원격에서 클라이언트 조회
|
|
289
289
|
const stored = getStoredCredentials();
|
|
290
|
-
const clientId =
|
|
291
|
-
const
|
|
290
|
+
const { clientId: defaultId, clientSecret: defaultSecret } = await getMcpOAuthClient();
|
|
291
|
+
const clientId = stored?.clientId ?? defaultId;
|
|
292
|
+
const clientSecret = stored?.clientSecret ?? defaultSecret;
|
|
292
293
|
const client = createOAuth2Client(clientId, clientSecret);
|
|
293
294
|
client.setCredentials({ refresh_token: tokens.refresh_token });
|
|
294
295
|
try {
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getAuthenticatedClient, startAuth, ensureFreshAccessToken } from './aut
|
|
|
6
6
|
import { getServiceAccountClient, getServiceAccountJson, saveServiceAccountJsonForPackage, listRegisteredServiceAccounts, deleteServiceAccountJsonForPackage, } from './auth/playstore-auth.js';
|
|
7
7
|
import { getAppStoreCredentials } from './appstore/auth.js';
|
|
8
8
|
import { createGoogleOneTimePurchase, createGoogleSubscription, updateGoogleProduct, deleteGoogleProduct, listGoogleProducts, createAppleOneTimePurchase, createAppleSubscription, updateAppleProduct, deleteAppleProduct, listAppleProducts, } from '@onesub/providers';
|
|
9
|
-
import {
|
|
9
|
+
import { getMcpOAuthClient } from './auth/constants.js';
|
|
10
10
|
import * as firebase from './firebase/tools.js';
|
|
11
11
|
import * as admob from './admob/tools.js';
|
|
12
12
|
import * as playstore from './playstore/tools.js';
|
|
@@ -1360,7 +1360,8 @@ server.tool('mimi_seed_auth_start', [
|
|
|
1360
1360
|
'이후 playstore_*, firebase_*, admob_* 등 다른 MCP 도구 바로 호출 가능.',
|
|
1361
1361
|
'토큰 만료(invalid_rapt) / 재인증 필요 시 사용. 10분 내 완료해야 함.',
|
|
1362
1362
|
].join(' '), {}, async () => {
|
|
1363
|
-
const {
|
|
1363
|
+
const { clientId, clientSecret } = await getMcpOAuthClient();
|
|
1364
|
+
const { url, wait } = startAuth(clientId, clientSecret);
|
|
1364
1365
|
// fire-and-forget — 토큰은 콜백 서버가 자동 저장
|
|
1365
1366
|
wait.then(() => { }, (err) => { console.error('[mimi-seed auth]', err.message); });
|
|
1366
1367
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoonion/mimi-seed-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "Mimi Seed MCP server — Firebase + AdMob + Google Play + App Store management for Claude Code / Cursor / any MCP client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"mimi-seed-playstore-auth": "dist/auth/playstore-setup-cli.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"LICENSE"
|
|
14
15
|
],
|
|
15
16
|
"scripts": {
|
|
16
17
|
"build": "tsc",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"publishConfig": {
|
|
39
40
|
"access": "public"
|
|
40
41
|
},
|
|
41
|
-
"license": "
|
|
42
|
+
"license": "PolyForm-Noncommercial-1.0.0",
|
|
42
43
|
"engines": {
|
|
43
44
|
"node": ">=20"
|
|
44
45
|
},
|