@noob9527/dsh-mcp-oauth 0.2.0-rc.2 → 0.2.0-rc.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-rc.3 — 2026-11-27
4
+
5
+ - Negotiate modern MCP connections with legacy fallback and refresh registered tool descriptions and schemas when the server sends a tool-list change.
6
+
3
7
  ## 0.2.0-rc.2 — 2026-11-17
4
8
 
5
9
  - Report malformed MCP URLs as field validation errors. Exclude unused metadata URLs when saving DCR or pre-registered settings, and identify invalid fields in localized messages.
package/CONTRIBUTING.md CHANGED
@@ -10,7 +10,7 @@ pnpm run typecheck
10
10
  pnpm test
11
11
  pnpm run build
12
12
  pnpm pack --pack-destination artifacts
13
- node scripts/check-release.mjs --tarball artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.2.tgz
13
+ node scripts/check-release.mjs --tarball artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.3.tgz
14
14
  ```
15
15
 
16
16
  Describe the user-visible behavior, relevant tests and compatibility impact. Add regression tests for changes to authorization, refresh, retries or teardown. Use loopback fixtures, atomic port allocation and explicit lifecycle cleanup. Do not weaken TLS verification, log credentials or silently retry tools with unknown outcomes.
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # DSH MCP OAuth
2
2
 
3
+ [![npm latest](https://img.shields.io/npm/v/%40noob9527/dsh-mcp-oauth/latest?label=npm%20latest)](https://www.npmjs.com/package/@noob9527/dsh-mcp-oauth)
4
+ [![npm next](https://img.shields.io/npm/v/%40noob9527/dsh-mcp-oauth/next?label=npm%20next)](https://www.npmjs.com/package/@noob9527/dsh-mcp-oauth?activeTab=versions)
5
+ [![CI](https://github.com/noob9527/dsh-mcp-oauth/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/noob9527/dsh-mcp-oauth/actions/workflows/ci.yml)
6
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
7
+
3
8
  OAuth-protected MCP tools for an unmodified DeepSeek Harness installation. The plugin owns its MCP connections and uses the official tool registry, credential store, authorization service and plugin-page extension.
4
9
 
5
10
  [中文](README.zh.md)
@@ -18,11 +23,13 @@ Independent community plugin; not an official DeepSeek product. The npm 0.1.0 re
18
23
 
19
24
  Version 0.2.0-rc.2 requires DSH `>=0.2.1-alpha.3`. All 13 published versions at or above this floor in the [17-version compatibility matrix](docs/compatibility.md) passed automated checks. Later versions are admitted by the range but are not automatically certified. Version 0.1.0 retains its original rc.2 requirement.
20
25
 
26
+ The plugin probes each MCP server with `server/discover` and falls back to the legacy `initialize` handshake when the server does not recognize discovery. On modern connections it subscribes to advertised tool-list changes. On legacy connections the server can deliver those changes over SSE. Each notification refreshes the full tool catalog, including descriptions and input schemas.
27
+
21
28
  ## Install from npm
22
29
 
23
30
  Requires Node 24.9+ and an unmodified official DSH installation satisfying `>=0.2.1-alpha.3`. The public package name is `@noob9527/dsh-mcp-oauth`.
24
31
 
25
- Version `0.2.0-rc.2` is a release candidate distributed under `next`. Use `latest` for the stable release.
32
+ Version `0.2.0-rc.3` is a release candidate distributed under `next`. Use `latest` for the stable release.
26
33
 
27
34
  Install the published preview:
28
35
 
@@ -41,7 +48,7 @@ pnpm install --frozen-lockfile --ignore-scripts
41
48
  pnpm run typecheck
42
49
  pnpm test
43
50
  pnpm pack --pack-destination artifacts
44
- dsh plugin --profile web add "$(pwd)/artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.2.tgz"
51
+ dsh plugin --profile web add "$(pwd)/artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.3.tgz"
45
52
  ```
46
53
 
47
54
  Tests require OpenSSL supporting `req -addext`. No model API key or business MCP endpoint is needed for automated tests. Restart DSH when prompted. If DSH uses a custom `DSH_HOME`, use the same value for plugin installation and startup. For npm installation, check `npm config get registry` if the package cannot be resolved; the public registry is `https://registry.npmjs.org/`.
package/README.zh.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # DSH MCP OAuth
2
2
 
3
+ [![npm latest](https://img.shields.io/npm/v/%40noob9527/dsh-mcp-oauth/latest?label=npm%20latest)](https://www.npmjs.com/package/@noob9527/dsh-mcp-oauth)
4
+ [![npm next](https://img.shields.io/npm/v/%40noob9527/dsh-mcp-oauth/next?label=npm%20next)](https://www.npmjs.com/package/@noob9527/dsh-mcp-oauth?activeTab=versions)
5
+ [![CI](https://github.com/noob9527/dsh-mcp-oauth/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/noob9527/dsh-mcp-oauth/actions/workflows/ci.yml)
6
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
7
+
3
8
  为未经修改的官方 DeepSeek Harness 提供 OAuth MCP 工具接入。插件自行管理 MCP 连接,通过官方工具、凭据、授权及插件页面接口集成。
4
9
 
5
10
  [English](README.md)
@@ -18,11 +23,13 @@
18
23
 
19
24
  0.2.0-rc.2 要求 DSH `>=0.2.1-alpha.3`。[17 版本兼容矩阵](docs/compatibility.md)中满足下限的 13 个已发布版本均通过自动化检查。范围允许安装后续版本,但不代表后续版本自动通过验收。0.1.0 保留原 rc.2 限制。
20
25
 
26
+ 插件连接每个 MCP 服务时先尝试 `server/discover`。旧服务无法识别该方法时,插件会回退到 `initialize` 握手。现代连接会订阅服务端声明支持的工具列表变更;旧版连接可通过服务端的 SSE 流接收变更。每次收到通知,插件都会重新拉取完整工具目录,包括描述和输入 schema。
27
+
21
28
  ## 从 npm 安装
22
29
 
23
30
  需要 Node 24.9+ 和满足 `>=0.2.1-alpha.3` 的未经修改官方 DSH。公开包名为 `@noob9527/dsh-mcp-oauth`。
24
31
 
25
- `0.2.0-rc.2` 为通过 `next` 分发的候选版本;`latest` 用于安装稳定版。
32
+ `0.2.0-rc.3` 为通过 `next` 分发的候选版本;`latest` 用于安装稳定版。
26
33
 
27
34
  安装已发布的预览版:
28
35
 
@@ -41,7 +48,7 @@ pnpm install --frozen-lockfile --ignore-scripts
41
48
  pnpm run typecheck
42
49
  pnpm test
43
50
  pnpm pack --pack-destination artifacts
44
- dsh plugin --profile web add "$(pwd)/artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.2.tgz"
51
+ dsh plugin --profile web add "$(pwd)/artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.3.tgz"
45
52
  ```
46
53
 
47
54
  测试需要支持 `req -addext` 的 OpenSSL;自动化测试不需要模型 API Key 或业务 MCP 服务。DSH 提示需要重启时,重启后继续。如果使用自定义 `DSH_HOME`,安装插件和启动 DSH 时必须使用相同值。通过 npm 安装时,如无法解析包名,请检查 `npm config get registry`;公开 registry 为 `https://registry.npmjs.org/`。
package/docs/releasing.md CHANGED
@@ -25,20 +25,20 @@ pnpm run check:release
25
25
  pnpm run typecheck
26
26
  pnpm test
27
27
  pnpm pack --pack-destination artifacts
28
- node scripts/check-release.mjs --tarball artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.2.tgz
28
+ node scripts/check-release.mjs --tarball artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.3.tgz
29
29
  ```
30
30
 
31
31
  Manually create a GitHub prerelease and attach the reviewed tarball if preview distribution is desired. A source release and an npm release are distinct operations.
32
32
 
33
- Version `0.2.0-rc.2` is a release candidate. Publishing requires acceptance and explicit release approval. Publish release candidates under `next`, leaving the stable `latest` tag unchanged.
33
+ Version `0.2.0-rc.3` is a release candidate. Publishing requires acceptance and explicit release approval. Publish release candidates under `next`, leaving the stable `latest` tag unchanged.
34
34
 
35
- The distribution target is the public npm registry under `@noob9527/dsh-mcp-oauth`. Package metadata fixes the registry and public access. Authenticate as an account permitted to publish under the `noob9527` scope; keep credentials outside this repository. Review the exact tarball with `npm publish ./artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.2.tgz --dry-run`, then publish that same file with `npm publish ./artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.2.tgz --access public --tag next`. Verify the registry version and install the published package into a clean official DSH profile before announcing it. No workflow automatically publishes npm packages.
35
+ The distribution target is the public npm registry under `@noob9527/dsh-mcp-oauth`. Package metadata fixes the registry and public access. Authenticate as an account permitted to publish under the `noob9527` scope; keep credentials outside this repository. Review the exact tarball with `npm publish ./artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.3.tgz --dry-run`, then publish that same file with `npm publish ./artifacts/noob9527-dsh-mcp-oauth-0.2.0-rc.3.tgz --access public --tag next`. Verify the registry version and install the published package into a clean official DSH profile before announcing it. No workflow automatically publishes npm packages.
36
36
 
37
37
  ## Authentication and post-publication checks
38
38
 
39
39
  Before publishing, check `npm config get registry` and `npm whoami --registry=https://registry.npmjs.org/`. The expected registry is `https://registry.npmjs.org/` and the account must have access to the package scope. A successful login alone does not satisfy npm's publishing authentication requirements. Complete the account's 2FA/browser verification when requested; do not put tokens, one-time codes or verification URLs in repository files or CI logs.
40
40
 
41
- An exit code of zero can mean the upload was accepted while npm still processes the package. If the CLI reports processing and public lookup returns 404, wait and check again; do not repeatedly publish the same version. Confirm `npm view @noob9527/dsh-mcp-oauth@0.2.0-rc.2 version dist.shasum --registry=https://registry.npmjs.org/`, compare the package digest, and install by registry package name in a clean official DSH profile. Only then mark registry installation as verified and remove any pending-availability notice from the READMEs and acceptance record.
41
+ An exit code of zero can mean the upload was accepted while npm still processes the package. If the CLI reports processing and public lookup returns 404, wait and check again; do not repeatedly publish the same version. Confirm `npm view @noob9527/dsh-mcp-oauth@0.2.0-rc.3 version dist.shasum --registry=https://registry.npmjs.org/`, compare the package digest, and install by registry package name in a clean official DSH profile. Only then mark registry installation as verified and remove any pending-availability notice from the READMEs and acceptance record.
42
42
 
43
43
  Published name/version pairs cannot be overwritten. Repository documentation fixes after publication do not update the README bundled in that tarball; include them in a subsequent package version when needed. Keep the reviewed release tarball intact for digest comparison.
44
44
 
package/lib/index.js CHANGED
@@ -554,7 +554,17 @@ var Connection = class {
554
554
  this.timer = void 0;
555
555
  this.status.connection = "connecting";
556
556
  this.status.error = "";
557
- const client = new Client({ name: "@noob9527/dsh-mcp-oauth", version: "0.2.0-rc.1" });
557
+ const client = new Client({ name: "@noob9527/dsh-mcp-oauth", version: "0.2.0-rc.3" }, {
558
+ versionNegotiation: { mode: "auto" },
559
+ listChanged: { tools: {
560
+ autoRefresh: false,
561
+ debounceMs: 0,
562
+ onChanged: () => {
563
+ if (client !== this.client || this.disposed) return;
564
+ void this.synchronize(client).catch(() => this.retire(client, "MCP_TOOL_LIST_FAILED", true));
565
+ }
566
+ } }
567
+ });
558
568
  const abort = new AbortController();
559
569
  this.client = client;
560
570
  this.abort = abort;
@@ -566,13 +576,6 @@ var Connection = class {
566
576
  client.onclose = lost;
567
577
  client.onerror = () => {
568
578
  };
569
- client.setNotificationHandler("notifications/tools/list_changed", async () => {
570
- try {
571
- await this.synchronize(client);
572
- } catch {
573
- await this.retire(client, "MCP_TOOL_LIST_FAILED", true);
574
- }
575
- });
576
579
  try {
577
580
  await client.connect(transport, { timeout: config.connectTimeoutMs, signal: abort.signal });
578
581
  await this.synchronize(client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noob9527/dsh-mcp-oauth",
3
- "version": "0.2.0-rc.2",
3
+ "version": "0.2.0-rc.3",
4
4
  "description": "OAuth MCP tools for unmodified DeepSeek Harness",
5
5
  "type": "module",
6
6
  "license": "MIT",