@modootoday/datalab-extension-mcp 1.12.0 → 1.12.1

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 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.12.0 install
64
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 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).
@@ -151,10 +151,10 @@ diagnosis, Place reputation, Pumasi, photo/video production, and automatic tool
151
151
  discovery. Press Enter to keep the recommended set.
152
152
 
153
153
  ```
154
- npx -y @modootoday/datalab-extension-mcp@1.12.0 skills list
155
- npx -y @modootoday/datalab-extension-mcp@1.12.0 skills status
156
- npx -y @modootoday/datalab-extension-mcp@1.12.0 skills attach <name>
157
- npx -y @modootoday/datalab-extension-mcp@1.12.0 skills detach <name>
154
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 skills list
155
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 skills status
156
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 skills attach <name>
157
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 skills detach <name>
158
158
  ```
159
159
 
160
160
  - `list` shows everything in this version, name and description.
@@ -275,7 +275,7 @@ Start it again after a full quit and it picks the tools up. If they still aren't
275
275
  - **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
276
 
277
277
  ```
278
- npx -y @modootoday/datalab-extension-mcp@1.12.0 install
278
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 install
279
279
  ```
280
280
 
281
281
  - **`'npx' is not recognized...`** — Node.js isn't installed. Follow "No Node.js?" in Step 2, then run the command again.
@@ -305,7 +305,7 @@ Start it again after a full quit and it picks the tools up. If they still aren't
305
305
  1. Run this in a terminal (it removes the entries registered in your AI apps).
306
306
 
307
307
  ```
308
- npx -y @modootoday/datalab-extension-mcp@1.12.0 uninstall
308
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 uninstall
309
309
  ```
310
310
 
311
311
  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.12.0 install
58
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 install
59
59
  ```
60
60
 
61
61
  영어 글자가 여러 줄 올라오는 건 정상이에요. 이 명령은 연결 프로그램을 설치하고 AI 앱 설정에 우리 항목만 더할 뿐, 다른 건 건드리지 않아요. npm 전역 설치 권한이 없으면 예전처럼 AI 앱이 시작할 때마다 내려받아 실행하도록 연결해요(시작이 조금 느려요).
@@ -137,10 +137,10 @@ Claude 같은 AI 앱을 데이터랩툴즈에 연결해 주는 작은 무료 프
137
137
  도움말을 번호로 여러 개 고를 수 있어요. Enter를 누르면 추천 구성만 설치됩니다.
138
138
 
139
139
  ```
140
- npx -y @modootoday/datalab-extension-mcp@1.12.0 skills list
141
- npx -y @modootoday/datalab-extension-mcp@1.12.0 skills status
142
- npx -y @modootoday/datalab-extension-mcp@1.12.0 skills attach <이름>
143
- npx -y @modootoday/datalab-extension-mcp@1.12.0 skills detach <이름>
140
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 skills list
141
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 skills status
142
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 skills attach <이름>
143
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 skills detach <이름>
144
144
  ```
145
145
 
146
146
  - `list` 는 이 버전에 들어 있는 전부를 이름과 설명으로 보여 줘요.
@@ -242,7 +242,7 @@ AI가 "그런 기능은 없다" 고 답하면, **"숨은 도구를 찾아보고
242
242
  - **연결이 사라졌을 때** — 처음 실행했던 그 명령을 한 번 더 실행하면 안전하게 다시 등록돼요. (일부 AI 앱이 설정 파일을 정리하며 연결을 지우기도 해요.)
243
243
 
244
244
  ```
245
- npx -y @modootoday/datalab-extension-mcp@1.12.0 install
245
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 install
246
246
  ```
247
247
 
248
248
  - **`'npx'을(는) 내부 또는 외부 명령...`** — Node.js가 없는 거예요. 위 2단계의 "Node.js가 없다면"을 따라 설치한 뒤 다시 실행해요.
@@ -272,7 +272,7 @@ AI가 "그런 기능은 없다" 고 답하면, **"숨은 도구를 찾아보고
272
272
  1. 터미널에서 아래 명령을 실행해요(AI 앱에 등록된 설정을 지워 줘요).
273
273
 
274
274
  ```
275
- npx -y @modootoday/datalab-extension-mcp@1.12.0 uninstall
275
+ npx -y @modootoday/datalab-extension-mcp@1.12.1 uninstall
276
276
  ```
277
277
 
278
278
  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
- await deps.ready;
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,6 +43716,7 @@ 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
  }
@@ -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) return;
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) return;
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;
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  resolveConfig,
5
5
  runAdapter,
6
6
  runDaemon
7
- } from "./chunk-OOT6JOYE.js";
7
+ } from "./chunk-PTB3TF6U.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
 
10
10
  // src/cli.ts
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  dispatchCli,
4
4
  ensureDaemonRunning,
5
5
  runAdapter
6
- } from "./chunk-OOT6JOYE.js";
6
+ } from "./chunk-PTB3TF6U.js";
7
7
  import "./chunk-MLKGABMK.js";
8
8
  export {
9
9
  createAdapterServer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modootoday/datalab-extension-mcp",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",