@modootoday/datalab-extension-mcp 1.12.0 → 1.13.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.en.md +12 -25
- package/README.md +12 -24
- package/dist/{chunk-OOT6JOYE.js → chunk-C6TR4AD5.js} +39 -9
- package/dist/cli.js +5 -36
- package/dist/{dist-H4FFG2Z2.js → dist-ME5TF3Z7.js} +1090 -1146
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -1
- package/package.json +2 -3
- package/dist/skills-5JDMNON3.js +0 -101
- package/skills/datalab-ad-budget-review/SKILL.md +0 -37
- package/skills/datalab-ad-disclosure-check/SKILL.md +0 -86
- package/skills/datalab-ad-disclosure-check/references/ad-disclosure-rules.md +0 -98
- package/skills/datalab-ad-disclosure-check/references/naver-terms-excerpt.md +0 -28
- package/skills/datalab-blog-diagnosis/SKILL.md +0 -39
- package/skills/datalab-blog-widget/SKILL.md +0 -76
- package/skills/datalab-blog-widget/references/naver-constraints.md +0 -51
- package/skills/datalab-blog-widget/references/templates.md +0 -123
- package/skills/datalab-card-news/SKILL.md +0 -105
- package/skills/datalab-card-news/references/slide-structure.md +0 -48
- package/skills/datalab-comment-reaction/SKILL.md +0 -37
- package/skills/datalab-commerce-health/SKILL.md +0 -37
- package/skills/datalab-cta-rewrite/SKILL.md +0 -66
- package/skills/datalab-cta-rewrite/references/output-format.md +0 -24
- package/skills/datalab-cta-rewrite/references/principles.md +0 -36
- package/skills/datalab-material-suggestion/SKILL.md +0 -81
- package/skills/datalab-material-suggestion/references/discovery.md +0 -47
- package/skills/datalab-material-suggestion/references/output-format.md +0 -41
- package/skills/datalab-naver-workbench/SKILL.md +0 -37
- package/skills/datalab-place-reputation/SKILL.md +0 -38
- package/skills/datalab-pumasi/SKILL.md +0 -36
- package/skills/datalab-reader-simulation/SKILL.md +0 -94
- package/skills/datalab-reader-simulation/references/checklist-format.md +0 -36
- package/skills/datalab-research-brief/SKILL.md +0 -88
- package/skills/datalab-research-brief/references/brief-format.md +0 -39
- package/skills/datalab-shopping-demand/SKILL.md +0 -37
- package/skills/datalab-social-repurpose/SKILL.md +0 -81
- package/skills/datalab-social-repurpose/references/output-format.md +0 -43
- package/skills/datalab-social-repurpose/references/platform-specs.md +0 -44
- package/skills/datalab-tone-manner/SKILL.md +0 -70
- package/skills/datalab-tone-manner/references/analysis-dimensions.md +0 -51
- package/skills/datalab-tone-manner/references/spec-format.md +0 -58
- package/skills/datalab-tutorial-post/SKILL.md +0 -72
- package/skills/datalab-tutorial-post/references/analogy-and-case-templates.md +0 -37
- package/skills/datalab-tutorial-post/references/structure-and-length.md +0 -22
- package/skills/datalab-tutorial-post/references/tone-and-hooks.md +0 -26
- package/skills/datalab-video-script/SKILL.md +0 -96
- package/skills/datalab-video-script/references/scene-structure.md +0 -41
- package/skills/datalab-video-script/references/writing-for-the-ear.md +0 -22
package/README.en.md
CHANGED
|
@@ -61,7 +61,7 @@ One command finds **every** AI app on your computer and connects them automatica
|
|
|
61
61
|
2. **Paste this command and press Enter.** The helper installs this version of the connector on your computer (`npm install -g`) and registers that installed copy with your AI apps, so an app does not download the connector again each time it starts. Once connected, the connector checks the canonical release and installs a newer version for the next start. Diagnostic environments can opt out with `--no-self-update`.
|
|
62
62
|
|
|
63
63
|
```
|
|
64
|
-
npx -y @modootoday/datalab-extension-mcp@1.
|
|
64
|
+
npx -y @modootoday/datalab-extension-mcp@1.13.0 install
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
Lines of English scrolling by is normal. This installs the connector and adds only our entry to your AI apps' settings — it touches nothing else. Without permission for global npm installs, it falls back to having each app download and run the connector at start (a slower start).
|
|
@@ -143,30 +143,17 @@ The connection itself lives only while the side panel is open.
|
|
|
143
143
|
- The connector is only a bridge — it stores no logins or passwords and doesn't work outside your computer.
|
|
144
144
|
- UI-only extension updates apply after a hard refresh. Releases that change MCP tools or skills require reinstalling the connector from the extension card.
|
|
145
145
|
|
|
146
|
-
##
|
|
146
|
+
## Skill catalog
|
|
147
147
|
|
|
148
|
-
Installing also
|
|
149
|
-
|
|
150
|
-
diagnosis, Place reputation, Pumasi, photo/video production, and automatic tool
|
|
151
|
-
discovery. Press Enter to keep the recommended set.
|
|
148
|
+
Installing also connects the **skill catalog** (skills.modoo.today). No skill files are
|
|
149
|
+
copied to your machine; the AI app fetches them from the catalog when it needs them.
|
|
152
150
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
- `list` shows everything in this version, name and description.
|
|
161
|
-
- `status` shows which folder on this machine holds what.
|
|
162
|
-
- `attach` / `detach` take one in or out.
|
|
163
|
-
- For automation, repeat `--skill <name>` to add selected skills, use
|
|
164
|
-
`--all-skills` for all MCP skills, or `--no-skills` for none.
|
|
165
|
-
|
|
166
|
-
The AI photo generation skill is panel-only so an MCP host is never taught a tool
|
|
167
|
-
it cannot call.
|
|
168
|
-
|
|
169
|
-
If another tool installed a skill of the same name, it is left alone and said so. Removal deletes only the files we wrote.
|
|
151
|
+
- Claude Code and Codex are connected automatically. For other apps, follow the card shown
|
|
152
|
+
at the end of the install and add `https://skills.modoo.today/mcp` as a remote (HTTP) server.
|
|
153
|
+
- The first use opens a modoo.today sign-in window once.
|
|
154
|
+
- `--no-skills` connects the extension only, without the catalog.
|
|
155
|
+
- Skill files copied by earlier versions are cleaned up during install. Only files carrying
|
|
156
|
+
our install marker are removed; anything another tool placed is left alone.
|
|
170
157
|
|
|
171
158
|
## Putting another browser on this computer
|
|
172
159
|
|
|
@@ -275,7 +262,7 @@ Start it again after a full quit and it picks the tools up. If they still aren't
|
|
|
275
262
|
- **When the connection disappears** — run the very command you used at the start once more; it safely re-registers. (Some AI apps clean up their settings file and drop the connection.)
|
|
276
263
|
|
|
277
264
|
```
|
|
278
|
-
npx -y @modootoday/datalab-extension-mcp@1.
|
|
265
|
+
npx -y @modootoday/datalab-extension-mcp@1.13.0 install
|
|
279
266
|
```
|
|
280
267
|
|
|
281
268
|
- **`'npx' is not recognized...`** — Node.js isn't installed. Follow "No Node.js?" in Step 2, then run the command again.
|
|
@@ -305,7 +292,7 @@ Start it again after a full quit and it picks the tools up. If they still aren't
|
|
|
305
292
|
1. Run this in a terminal (it removes the entries registered in your AI apps).
|
|
306
293
|
|
|
307
294
|
```
|
|
308
|
-
npx -y @modootoday/datalab-extension-mcp@1.
|
|
295
|
+
npx -y @modootoday/datalab-extension-mcp@1.13.0 uninstall
|
|
309
296
|
```
|
|
310
297
|
|
|
311
298
|
2. Turn **MCP 연결** off in the extension settings. The panel is the bridge, so with it off a leftover config line can look nothing up.
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ Claude 같은 AI 앱을 데이터랩툴즈에 연결해 주는 작은 무료 프
|
|
|
55
55
|
2. **아래 명령을 붙여넣고 Enter를 눌러요.** 도우미는 이 버전의 연결 프로그램을 이 컴퓨터에 설치(`npm install -g`)하고, AI 앱이 그 설치본을 바로 실행하도록 등록해요. 그래서 AI 앱이 시작할 때 연결 프로그램을 다시 내려받지 않아요. 연결이 열린 뒤 정본 릴리스를 확인해 새 버전이 있으면 설치해 두고, 다음 시작부터 그 버전을 써요. 진단 환경에서는 `--no-self-update`로 이 업데이트를 끌 수 있어요.
|
|
56
56
|
|
|
57
57
|
```
|
|
58
|
-
npx -y @modootoday/datalab-extension-mcp@1.
|
|
58
|
+
npx -y @modootoday/datalab-extension-mcp@1.13.0 install
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
영어 글자가 여러 줄 올라오는 건 정상이에요. 이 명령은 연결 프로그램을 설치하고 AI 앱 설정에 우리 항목만 더할 뿐, 다른 건 건드리지 않아요. npm 전역 설치 권한이 없으면 예전처럼 AI 앱이 시작할 때마다 내려받아 실행하도록 연결해요(시작이 조금 느려요).
|
|
@@ -130,29 +130,17 @@ Claude 같은 AI 앱을 데이터랩툴즈에 연결해 주는 작은 무료 프
|
|
|
130
130
|
- 화면 기능만 바뀐 업데이트는 강력 새로고침으로 적용됩니다. MCP 도구·스킬이 바뀐 버전은
|
|
131
131
|
확장 카드의 업데이트 안내에 따라 연결 프로그램을 다시 설치해야 해요.
|
|
132
132
|
|
|
133
|
-
##
|
|
133
|
+
## 스킬 카탈로그
|
|
134
134
|
|
|
135
|
-
설치할 때
|
|
136
|
-
|
|
137
|
-
도움말을 번호로 여러 개 고를 수 있어요. Enter를 누르면 추천 구성만 설치됩니다.
|
|
135
|
+
설치할 때 **스킬 카탈로그**(skills.modoo.today)도 함께 연결됩니다. 스킬 파일을 컴퓨터에
|
|
136
|
+
복사하지 않고, AI 프로그램이 필요할 때 카탈로그에서 받아 써요.
|
|
138
137
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
- `list` 는 이 버전에 들어 있는 전부를 이름과 설명으로 보여 줘요.
|
|
147
|
-
- `status` 는 지금 내 컴퓨터의 어느 폴더에 무엇이 들어가 있는지 보여 줘요.
|
|
148
|
-
- `attach` / `detach` 로 하나씩 넣고 뺍니다.
|
|
149
|
-
- 자동 설치에서는 `--skill <이름>`을 반복해 추가하거나 `--all-skills`로 전부, `--no-skills`로
|
|
150
|
-
도움말 없이 설치할 수 있어요.
|
|
151
|
-
|
|
152
|
-
AI 사진 생성 전용 도움말은 확장 패널에만 표시됩니다. MCP에서 실제로 사용할 수 없는 도구를
|
|
153
|
-
가르치지 않기 위한 구분입니다.
|
|
154
|
-
|
|
155
|
-
다른 도구로 설치한 같은 이름의 도움말이 있으면 **건드리지 않고 그렇게 말해요.** 뺄 때도 우리가 넣은 파일만 지웁니다.
|
|
138
|
+
- Claude Code·Codex 는 자동으로 연결돼요. 다른 프로그램은 설치가 끝날 때 보여 주는 안내대로
|
|
139
|
+
원격(HTTP) 서버 `https://skills.modoo.today/mcp` 를 추가해 주세요.
|
|
140
|
+
- 처음 쓸 때 modoo.today 로그인 창이 한 번 열려요.
|
|
141
|
+
- `--no-skills` 로 카탈로그 없이 확장만 연결할 수 있어요.
|
|
142
|
+
- 예전 버전이 복사해 둔 데이터랩툴즈 스킬 파일은 설치할 때 정리돼요. 우리가 넣었다는 표시가
|
|
143
|
+
있는 파일만 지우고, 다른 도구가 넣은 것은 건드리지 않아요.
|
|
156
144
|
|
|
157
145
|
## 이 컴퓨터에 브라우저 하나 더 올리기
|
|
158
146
|
|
|
@@ -242,7 +230,7 @@ AI가 "그런 기능은 없다" 고 답하면, **"숨은 도구를 찾아보고
|
|
|
242
230
|
- **연결이 사라졌을 때** — 처음 실행했던 그 명령을 한 번 더 실행하면 안전하게 다시 등록돼요. (일부 AI 앱이 설정 파일을 정리하며 연결을 지우기도 해요.)
|
|
243
231
|
|
|
244
232
|
```
|
|
245
|
-
npx -y @modootoday/datalab-extension-mcp@1.
|
|
233
|
+
npx -y @modootoday/datalab-extension-mcp@1.13.0 install
|
|
246
234
|
```
|
|
247
235
|
|
|
248
236
|
- **`'npx'을(는) 내부 또는 외부 명령...`** — Node.js가 없는 거예요. 위 2단계의 "Node.js가 없다면"을 따라 설치한 뒤 다시 실행해요.
|
|
@@ -272,7 +260,7 @@ AI가 "그런 기능은 없다" 고 답하면, **"숨은 도구를 찾아보고
|
|
|
272
260
|
1. 터미널에서 아래 명령을 실행해요(AI 앱에 등록된 설정을 지워 줘요).
|
|
273
261
|
|
|
274
262
|
```
|
|
275
|
-
npx -y @modootoday/datalab-extension-mcp@1.
|
|
263
|
+
npx -y @modootoday/datalab-extension-mcp@1.13.0 uninstall
|
|
276
264
|
```
|
|
277
265
|
|
|
278
266
|
2. 확장 설정에서 **MCP 연결을 꺼요.** 패널이 브릿지라, 꺼 두면 어딘가 설정 줄이 남아 있어도 AI 앱이 아무것도 조회할 수 없어요.
|
|
@@ -43314,6 +43314,9 @@ function isTimeout(err) {
|
|
|
43314
43314
|
if (!(err instanceof Error)) return false;
|
|
43315
43315
|
return err.name === "TimeoutError" || err.name === "AbortError";
|
|
43316
43316
|
}
|
|
43317
|
+
function startupMark(label, log) {
|
|
43318
|
+
log(`startup: ${label} at ${String(Math.round(performance.now()))}ms`);
|
|
43319
|
+
}
|
|
43317
43320
|
function realSleep(ms) {
|
|
43318
43321
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
43319
43322
|
}
|
|
@@ -43430,6 +43433,7 @@ async function ensureDaemonRunning(deps = {}) {
|
|
|
43430
43433
|
};
|
|
43431
43434
|
const spawnAndWait = async () => {
|
|
43432
43435
|
spawn2(daemonEntry, ["serve"]);
|
|
43436
|
+
startupMark("connector service started", log);
|
|
43433
43437
|
for (let i = 0; i < attempts; i += 1) {
|
|
43434
43438
|
await sleep(intervalMs);
|
|
43435
43439
|
const socket = await connect(host, port, PROBE_TIMEOUT_MS);
|
|
@@ -43496,6 +43500,16 @@ function createAdapterServer(deps = {}) {
|
|
|
43496
43500
|
// re-fetch the catalog without a restart.
|
|
43497
43501
|
{ capabilities: { tools: { listChanged: true } } }
|
|
43498
43502
|
);
|
|
43503
|
+
let daemonReady = deps.ready === void 0;
|
|
43504
|
+
let servedEarly = false;
|
|
43505
|
+
void deps.ready?.then(() => {
|
|
43506
|
+
daemonReady = true;
|
|
43507
|
+
startupMark("connector service ready", log);
|
|
43508
|
+
if (servedEarly) {
|
|
43509
|
+
void server.notification({ method: "notifications/tools/list_changed" }).catch(() => {
|
|
43510
|
+
});
|
|
43511
|
+
}
|
|
43512
|
+
});
|
|
43499
43513
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
43500
43514
|
deps.onActivity?.(1);
|
|
43501
43515
|
try {
|
|
@@ -43505,7 +43519,13 @@ function createAdapterServer(deps = {}) {
|
|
|
43505
43519
|
}
|
|
43506
43520
|
});
|
|
43507
43521
|
async function handleToolList() {
|
|
43508
|
-
|
|
43522
|
+
if (!daemonReady) {
|
|
43523
|
+
servedEarly = true;
|
|
43524
|
+
startupMark("tools/list answered from the fa\xE7ade", log);
|
|
43525
|
+
return {
|
|
43526
|
+
tools: [...staticDiscoveryCatalog2(), ...mediaToolDescriptors()]
|
|
43527
|
+
};
|
|
43528
|
+
}
|
|
43509
43529
|
let resp;
|
|
43510
43530
|
try {
|
|
43511
43531
|
resp = await postMcp(fetchImpl, mcpUrl, "tools/list");
|
|
@@ -43696,11 +43716,12 @@ async function updateInstalledCopy(selfVersion, log, deps = {}) {
|
|
|
43696
43716
|
log(`connector ${version3} is installed; the next start uses it`);
|
|
43697
43717
|
return "installed";
|
|
43698
43718
|
}
|
|
43719
|
+
log(`connector ${version3} is installed; moving host entries onto it`);
|
|
43699
43720
|
await (deps.relink ?? defaultRelink)(version3);
|
|
43700
43721
|
return "migrated";
|
|
43701
43722
|
}
|
|
43702
43723
|
async function quietInstallerIo() {
|
|
43703
|
-
const installer = await import("./dist-
|
|
43724
|
+
const installer = await import("./dist-ME5TF3Z7.js");
|
|
43704
43725
|
const io = installer.createNodeIo();
|
|
43705
43726
|
io.out = (line) => defaultLog(line);
|
|
43706
43727
|
return { installer, io };
|
|
@@ -43717,7 +43738,12 @@ async function defaultInstall(version3) {
|
|
|
43717
43738
|
async function defaultRelink(version3) {
|
|
43718
43739
|
const { installer, io } = await quietInstallerIo();
|
|
43719
43740
|
const resolved = await installer.resolveGlobalLaunch(io, version3);
|
|
43720
|
-
if (!resolved.ok)
|
|
43741
|
+
if (!resolved.ok) {
|
|
43742
|
+
defaultLog(
|
|
43743
|
+
`relink skipped: installed copy not usable (${resolved.reason})`
|
|
43744
|
+
);
|
|
43745
|
+
return;
|
|
43746
|
+
}
|
|
43721
43747
|
const env = process.env;
|
|
43722
43748
|
const opts = {
|
|
43723
43749
|
version: version3,
|
|
@@ -43725,13 +43751,19 @@ async function defaultRelink(version3) {
|
|
|
43725
43751
|
extensionId: env["DATALAB_MCP_EXTENSION_ID"]?.trim() ?? "",
|
|
43726
43752
|
port: env["DATALAB_MCP_PORT"]?.trim() || void 0
|
|
43727
43753
|
};
|
|
43728
|
-
if (installer.validateInstallOptions(opts) !== null)
|
|
43754
|
+
if (installer.validateInstallOptions(opts) !== null) {
|
|
43755
|
+
defaultLog("relink skipped: the session's pairing values did not validate");
|
|
43756
|
+
return;
|
|
43757
|
+
}
|
|
43729
43758
|
const results = await installer.relinkInstalledHosts(io, {
|
|
43730
43759
|
...opts,
|
|
43731
43760
|
launch: resolved.launch
|
|
43732
43761
|
});
|
|
43762
|
+
if (results.length === 0) {
|
|
43763
|
+
defaultLog("relink: no host entry used the package runner");
|
|
43764
|
+
}
|
|
43733
43765
|
for (const r of results) {
|
|
43734
|
-
defaultLog(`relink ${r.hostId}: ${r.status}`);
|
|
43766
|
+
defaultLog(`relink ${r.hostId}: ${r.status} (${r.message})`);
|
|
43735
43767
|
}
|
|
43736
43768
|
}
|
|
43737
43769
|
function countRequests(flight, passthrough) {
|
|
@@ -43743,6 +43775,7 @@ function countRequests(flight, passthrough) {
|
|
|
43743
43775
|
async function runAdapter(deps = {}) {
|
|
43744
43776
|
const ensure = deps.ensure ?? ensureDaemonRunning;
|
|
43745
43777
|
const log = deps.log ?? defaultLog;
|
|
43778
|
+
startupMark("adapter loaded", log);
|
|
43746
43779
|
const ready = ensure({
|
|
43747
43780
|
host: deps.host,
|
|
43748
43781
|
port: deps.port,
|
|
@@ -43785,6 +43818,7 @@ async function runAdapter(deps = {}) {
|
|
|
43785
43818
|
transport = new StdioServerTransport();
|
|
43786
43819
|
}
|
|
43787
43820
|
await server.connect(transport);
|
|
43821
|
+
startupMark("transport connected", log);
|
|
43788
43822
|
if (deps.selfUpdate !== false) checkForUpdate();
|
|
43789
43823
|
const host = deps.host ?? DEFAULT_HOST;
|
|
43790
43824
|
const port = deps.port ?? DEFAULT_PORT;
|
|
@@ -43827,10 +43861,6 @@ async function dispatchCli(argv, handlers) {
|
|
|
43827
43861
|
handlers.serve();
|
|
43828
43862
|
return;
|
|
43829
43863
|
}
|
|
43830
|
-
if (sub === "skills") {
|
|
43831
|
-
await handlers.skills(argv.slice(3));
|
|
43832
|
-
return;
|
|
43833
|
-
}
|
|
43834
43864
|
if (sub !== void 0 && !sub.startsWith("-")) {
|
|
43835
43865
|
handlers.unknown(sub);
|
|
43836
43866
|
return;
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
resolveConfig,
|
|
5
5
|
runAdapter,
|
|
6
6
|
runDaemon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C6TR4AD5.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
|
|
10
10
|
// src/cli.ts
|
|
@@ -16,7 +16,7 @@ function log(message) {
|
|
|
16
16
|
`);
|
|
17
17
|
}
|
|
18
18
|
async function runInstaller(sub, argv) {
|
|
19
|
-
const { createNodeIo, runInstall, runUninstall } = await import("./dist-
|
|
19
|
+
const { createNodeIo, runInstall, runUninstall } = await import("./dist-ME5TF3Z7.js");
|
|
20
20
|
const opts = { version: VERSION };
|
|
21
21
|
for (let i = 0; i < argv.length; i += 1) {
|
|
22
22
|
const flag = argv[i];
|
|
@@ -26,12 +26,8 @@ async function runInstaller(sub, argv) {
|
|
|
26
26
|
else if (flag === "--yes" || flag === "-y") opts.yes = true;
|
|
27
27
|
else if (flag === "--no-skills") opts.skills = false;
|
|
28
28
|
else if (flag === "--skills") opts.skills = true;
|
|
29
|
-
else if (flag === "--
|
|
30
|
-
else if (flag === "--
|
|
31
|
-
opts.skillSlugs = opts.skillSlugs ?? [];
|
|
32
|
-
const slug = argv[i += 1];
|
|
33
|
-
if (slug) opts.skillSlugs.push(slug);
|
|
34
|
-
} else if (flag === "--host") {
|
|
29
|
+
else if (flag === "--verbose") opts.verbose = true;
|
|
30
|
+
else if (flag === "--host") {
|
|
35
31
|
opts.hosts = opts.hosts ?? [];
|
|
36
32
|
const host = argv[i += 1];
|
|
37
33
|
if (host) opts.hosts.push(host);
|
|
@@ -67,39 +63,12 @@ async function main() {
|
|
|
67
63
|
selfUpdate: !process.argv.slice(2).includes("--no-self-update")
|
|
68
64
|
});
|
|
69
65
|
},
|
|
70
|
-
// Loaded lazily, like the installer: an MCP host spawning the adapter must
|
|
71
|
-
// not pay to resolve a command only an operator types.
|
|
72
|
-
skills: async (argv) => {
|
|
73
|
-
const { runSkills } = await import("./skills-5JDMNON3.js");
|
|
74
|
-
const {
|
|
75
|
-
createNodeIo,
|
|
76
|
-
listSkills,
|
|
77
|
-
skillStatus,
|
|
78
|
-
attachSkill,
|
|
79
|
-
detachSkill,
|
|
80
|
-
skillsPayloadRoot
|
|
81
|
-
} = await import("./dist-H4FFG2Z2.js");
|
|
82
|
-
const io = createNodeIo();
|
|
83
|
-
const root = skillsPayloadRoot();
|
|
84
|
-
const code = await runSkills(argv, {
|
|
85
|
-
out: (line) => process.stdout.write(`${line}
|
|
86
|
-
`),
|
|
87
|
-
list: () => listSkills(io, root),
|
|
88
|
-
status: () => skillStatus(io, root),
|
|
89
|
-
// The marker records the version that placed it, so this must be the
|
|
90
|
-
// build doing the placing — not whatever the host config once pinned.
|
|
91
|
-
attach: (slug) => attachSkill(io, root, slug, VERSION),
|
|
92
|
-
detach: (slug) => detachSkill(io, root, slug)
|
|
93
|
-
});
|
|
94
|
-
process.exit(code);
|
|
95
|
-
},
|
|
96
66
|
// Said out loud and refused. Left to fall through, a typo would speak
|
|
97
67
|
// the MCP protocol at the terminal — nothing on screen, since diagnostics
|
|
98
68
|
// go to stderr — and start a connector on the way.
|
|
99
69
|
unknown: (sub) => {
|
|
100
70
|
log(`unknown command "${sub}".`);
|
|
101
|
-
log(`usage: ${NAME} [install|uninstall|serve
|
|
102
|
-
log(` skills [list|status|attach <slug>|detach <slug>]`);
|
|
71
|
+
log(`usage: ${NAME} [install|uninstall|serve]`);
|
|
103
72
|
log(`run with no command to serve an MCP host over stdio.`);
|
|
104
73
|
process.exit(2);
|
|
105
74
|
}
|