@modootoday/datalab-extension-mcp 1.8.23 → 1.8.24

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 saved command names an exact bootstrap version. At startup and while idle, the connector checks the canonical release and promotes itself to the current secure, compatible version. Diagnostic environments can opt out with `--no-self-update`.
62
62
 
63
63
  ```
64
- npx -y @modootoday/datalab-extension-mcp@1.8.23 install
64
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 install
65
65
  ```
66
66
 
67
67
  Lines of English scrolling by is normal. This only downloads and runs the connector — it touches nothing else.
@@ -145,10 +145,10 @@ Registration is once per browser. The connection itself lives only while the sid
145
145
  Installing also places the bundled **writing skills**. An AI app reads the name and description of every installed skill on every start, so the more are installed the less room the conversation has. The default therefore places only the ones that work right away.
146
146
 
147
147
  ```
148
- npx -y @modootoday/datalab-extension-mcp@1.8.23 skills list
149
- npx -y @modootoday/datalab-extension-mcp@1.8.23 skills status
150
- npx -y @modootoday/datalab-extension-mcp@1.8.23 skills attach <name>
151
- npx -y @modootoday/datalab-extension-mcp@1.8.23 skills detach <name>
148
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 skills list
149
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 skills status
150
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 skills attach <name>
151
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 skills detach <name>
152
152
  ```
153
153
 
154
154
  - `list` shows everything in this version, name and description.
@@ -167,10 +167,10 @@ The **workbench** is this computer, where the connector runs. If you use more th
167
167
  Make the code in extension settings → **다른 AI 앱에 연결 (MCP)** → expand **[다른 브라우저 추가 (선택)]** (add another browser, optional) below box 3 → [등록 코드 만들기]. Or from the terminal.
168
168
 
169
169
  ```
170
- npx -y @modootoday/datalab-extension-mcp@1.8.23 browsers add "Work Chrome"
171
- npx -y @modootoday/datalab-extension-mcp@1.8.23 browsers list
172
- npx -y @modootoday/datalab-extension-mcp@1.8.23 browsers revoke <handle>
173
- npx -y @modootoday/datalab-extension-mcp@1.8.23 browsers repair
170
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 browsers add "Work Chrome"
171
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 browsers list
172
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 browsers revoke <handle>
173
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 browsers repair
174
174
  ```
175
175
 
176
176
  `add` **asks you to paste the install key** — the same value you used to
@@ -272,7 +272,7 @@ Start it again after a full quit and it picks the tools up. If they still aren't
272
272
  - **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.)
273
273
 
274
274
  ```
275
- npx -y @modootoday/datalab-extension-mcp@1.8.23 install
275
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 install
276
276
  ```
277
277
 
278
278
  - **`'npx' is not recognized...`** — Node.js isn't installed. The "No Node.js?" one-liner in Step 2 is the simplest fix.
@@ -302,7 +302,7 @@ Start it again after a full quit and it picks the tools up. If they still aren't
302
302
  1. Run this in a terminal (it removes the entries registered in your AI apps).
303
303
 
304
304
  ```
305
- npx -y @modootoday/datalab-extension-mcp@1.8.23 uninstall
305
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 uninstall
306
306
  ```
307
307
 
308
308
  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를 눌러요.** 저장되는 명령은 정확한 시작 버전을 적습니다. 연결 프로그램은 시작할 때와 유휴 상태에서 정본 릴리스를 확인해 현재의 안전하고 호환되는 버전으로 승격합니다. 진단 환경에서는 `--no-self-update`로 승격을 끌 수 있어요.
56
56
 
57
57
  ```
58
- npx -y @modootoday/datalab-extension-mcp@1.8.23 install
58
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 install
59
59
  ```
60
60
 
61
61
  영어 글자가 여러 줄 올라오는 건 정상이에요. 이 명령은 연결 프로그램을 다운로드해 실행할 뿐, 다른 건 건드리지 않아요.
@@ -133,10 +133,10 @@ Claude 같은 AI 앱을 데이터랩툴즈에 연결해 주는 작은 무료 프
133
133
  설치할 때 **글쓰기 도움말(스킬)** 도 함께 놓입니다. AI 앱은 켜질 때마다 설치된 도움말의 이름과 설명을 전부 읽기 때문에, 많이 깔수록 대화에 쓸 자리가 줄어들어요. 그래서 기본은 **바로 쓸 수 있는 것만** 놓습니다.
134
134
 
135
135
  ```
136
- npx -y @modootoday/datalab-extension-mcp@1.8.23 skills list
137
- npx -y @modootoday/datalab-extension-mcp@1.8.23 skills status
138
- npx -y @modootoday/datalab-extension-mcp@1.8.23 skills attach <이름>
139
- npx -y @modootoday/datalab-extension-mcp@1.8.23 skills detach <이름>
136
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 skills list
137
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 skills status
138
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 skills attach <이름>
139
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 skills detach <이름>
140
140
  ```
141
141
 
142
142
  - `list` 는 이 버전에 들어 있는 전부를 이름과 설명으로 보여 줘요.
@@ -155,10 +155,10 @@ npx -y @modootoday/datalab-extension-mcp@1.8.23 skills detach <이름>
155
155
  확장 설정 → **다른 AI 앱에 연결 (MCP)** → 3번 아래의 **[다른 브라우저 추가 (선택)]** 를 펼쳐 [등록 코드 만들기]를 눌러도 되고, 터미널을 쓰셔도 돼요.
156
156
 
157
157
  ```
158
- npx -y @modootoday/datalab-extension-mcp@1.8.23 browsers add "회사 크롬"
159
- npx -y @modootoday/datalab-extension-mcp@1.8.23 browsers list
160
- npx -y @modootoday/datalab-extension-mcp@1.8.23 browsers revoke <handle>
161
- npx -y @modootoday/datalab-extension-mcp@1.8.23 browsers repair
158
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 browsers add "회사 크롬"
159
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 browsers list
160
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 browsers revoke <handle>
161
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 browsers repair
162
162
  ```
163
163
 
164
164
  `add` 를 실행하면 **설치 인증키를 붙여넣으라고 물어봐요** — 설치할 때와 같은 값이고, 설정 화면 1번의 `복사` 버튼으로 얻습니다. 그러면 브라우저 등록 코드가 **한 번만** 출력돼요. 연결 프로그램은 그 코드를 저장하지 않고 지문만 남기므로 다시 보여 줄 수 없어요.
@@ -237,7 +237,7 @@ AI가 "그런 기능은 없다" 고 답하면, **"도구 목록을 확인해 보
237
237
  - **연결이 사라졌을 때** — 처음 실행했던 그 명령을 한 번 더 실행하면 안전하게 다시 등록돼요. (일부 AI 앱이 설정 파일을 정리하며 연결을 지우기도 해요.)
238
238
 
239
239
  ```
240
- npx -y @modootoday/datalab-extension-mcp@1.8.23 install
240
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 install
241
241
  ```
242
242
 
243
243
  - **`'npx'을(는) 내부 또는 외부 명령...`** — Node.js가 없는 거예요. 위 2단계의 "Node.js가 없다면" 한 줄 설치가 가장 간단해요.
@@ -267,7 +267,7 @@ AI가 "그런 기능은 없다" 고 답하면, **"도구 목록을 확인해 보
267
267
  1. 터미널에서 아래 명령을 실행해요(AI 앱에 등록된 설정을 지워 줘요).
268
268
 
269
269
  ```
270
- npx -y @modootoday/datalab-extension-mcp@1.8.23 uninstall
270
+ npx -y @modootoday/datalab-extension-mcp@1.8.24 uninstall
271
271
  ```
272
272
 
273
273
  2. 확장 설정에서 **MCP 연결을 꺼요.** 패널이 브릿지라, 꺼 두면 어딘가 설정 줄이 남아 있어도 AI 앱이 아무것도 조회할 수 없어요.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_HOST,
3
3
  DEFAULT_PORT
4
- } from "./chunk-EGSZC33X.js";
4
+ } from "./chunk-KAEK57JP.js";
5
5
  import {
6
6
  TOKEN_PROMPT_GUIDE,
7
7
  TOKEN_PROMPT_QUESTION,
@@ -6,7 +6,7 @@ import {
6
6
  readTakeoverSecret,
7
7
  spawnDaemon,
8
8
  tryConnect
9
- } from "./chunk-EGSZC33X.js";
9
+ } from "./chunk-KAEK57JP.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-MLKGABMK.js";
@@ -1,4 +1,4 @@
1
- // ../mcp-server/dist/chunk-5F4SKHY3.js
1
+ // ../mcp-server/dist/chunk-6LCDUQNO.js
2
2
  import { createHash } from "crypto";
3
3
  import {
4
4
  appendFileSync,
@@ -15802,6 +15802,31 @@ var Bridge = class {
15802
15802
  verifyRootToken(presented) {
15803
15803
  return checkToken(presented ?? void 0, this.#deps.token).ok;
15804
15804
  }
15805
+ /**
15806
+ * May this credential add a browser to this machine?
15807
+ *
15808
+ * The root token, or a browser already registered here. Binding this to the
15809
+ * root alone tied the right to add a browser to whoever installed last, so
15810
+ * the second browser's only offered path was to install again -- which moved
15811
+ * the right away from the first one, which then had the same problem.
15812
+ *
15813
+ * Deliberately NOT the same predicate as verifyRootToken: that one also
15814
+ * authorises shutdown, and a browser must not be able to end another's
15815
+ * unattended run. Widening is limited to adding and listing; revoking still
15816
+ * needs the root, because taking a browser off is the destructive half.
15817
+ */
15818
+ verifyBrowserAddToken(presented) {
15819
+ if (presented === void 0 || presented === null || presented === "") {
15820
+ return false;
15821
+ }
15822
+ if (this.verifyRootToken(presented)) return true;
15823
+ const hash2 = digestToken(presented);
15824
+ if (this.#deps.wasRevoked(hash2)) return false;
15825
+ for (const current of this.#deps.claimedBrowsers.values()) {
15826
+ if (timingSafeEqual(hash2, current)) return true;
15827
+ }
15828
+ return false;
15829
+ }
15805
15830
  /**
15806
15831
  * Does the presented value belong to somebody currently holding the bridge?
15807
15832
  *
@@ -17669,13 +17694,13 @@ function createHttpBridge(opts) {
17669
17694
  res.setHeader("cache-control", "no-store");
17670
17695
  void readJson(req, MAX_BODY_BYTES).then(async (body) => {
17671
17696
  const b = body;
17672
- if (!opts.bridge.verifyRootToken(
17673
- typeof b?.["token"] === "string" ? b["token"] : ""
17674
- )) {
17697
+ const presented = typeof b?.["token"] === "string" ? b["token"] : "";
17698
+ const action = b?.["action"];
17699
+ const mayAdd = action === "add" || action === "list" ? opts.bridge.verifyBrowserAddToken(presented) : opts.bridge.verifyRootToken(presented);
17700
+ if (!mayAdd) {
17675
17701
  json2(res, 403, { error: "unauthorized" });
17676
17702
  return;
17677
17703
  }
17678
- const action = b?.["action"];
17679
17704
  if (action === "list") {
17680
17705
  const active = new Set(
17681
17706
  opts.bridge.connectedBrowsers().map((row) => row.id)
package/dist/cli.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  dispatchCli,
4
4
  runAdapter
5
- } from "./chunk-KE5ZJQKG.js";
5
+ } from "./chunk-4EOWBJT2.js";
6
6
  import {
7
7
  runDaemon
8
- } from "./chunk-EGSZC33X.js";
8
+ } from "./chunk-KAEK57JP.js";
9
9
  import "./chunk-MLKGABMK.js";
10
10
 
11
11
  // src/cli.ts
@@ -62,7 +62,7 @@ async function main() {
62
62
  // Loaded lazily, like the installer: the adapter path is what an MCP host
63
63
  // spawns and must not pay for a command only an operator types.
64
64
  browsers: async (argv) => {
65
- const { runBrowsers } = await import("./browsers-T6B6IUYR.js");
65
+ const { runBrowsers } = await import("./browsers-WRKF6F25.js");
66
66
  const { createNodeIo } = await import("./dist-VANK7DDE.js");
67
67
  const io = createNodeIo();
68
68
  const code = await runBrowsers(argv, {
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  dispatchCli,
4
4
  ensureDaemonRunning,
5
5
  runAdapter
6
- } from "./chunk-KE5ZJQKG.js";
7
- import "./chunk-EGSZC33X.js";
6
+ } from "./chunk-4EOWBJT2.js";
7
+ import "./chunk-KAEK57JP.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
  export {
10
10
  createAdapterServer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modootoday/datalab-extension-mcp",
3
- "version": "1.8.23",
3
+ "version": "1.8.24",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",