dsh-connectors 0.0.0-stage → 0.1.4

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Johannes Tebbert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,114 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/JoblessJoe/dsh-connectors/main/.github/assets/banner.svg" alt="dsh-connectors: Claude-style connectors for DeepSeek Harness, plug any MCP server into your agents" width="100%">
3
+ </p>
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ <p align="center">
6
+ <a href="https://www.npmjs.com/package/dsh-connectors"><img src="https://img.shields.io/npm/v/dsh-connectors?color=34d399&label=npm" alt="npm version"></a>
7
+ <a href="https://www.npmjs.com/package/dsh-connectors"><img src="https://img.shields.io/npm/dm/dsh-connectors?color=34d399" alt="npm downloads"></a>
8
+ <img src="https://img.shields.io/badge/MCP-OAuth%202.1%20%2B%20PKCE-34d399" alt="MCP OAuth 2.1 with PKCE">
9
+ <a href="LICENSE"><img src="https://img.shields.io/github/license/JoblessJoe/dsh-connectors?color=34d399" alt="MIT license"></a>
10
+ <a href="https://github.com/awesome-dsh-plugin/awesome-dsh-plugin"><img src="https://img.shields.io/badge/awesome-dsh--plugin-fc60a8" alt="awesome-dsh-plugin"></a>
11
+ </p>
12
+
13
+ A [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (dsh) plugin that brings **Claude-style connectors** to your agents: add any MCP server from a page in the sidebar, sign in once, and its tools show up in every chat. Hosted servers with an OAuth login, servers that want a token, and local programs all work the same way. No YAML, no restart per server.
14
+
15
+ ```bash
16
+ npx @deepseek-ai/dsh plugin --profile web add dsh-connectors
17
+ ```
18
+
19
+ Reload the browser tab. **Connectors** appears in the sidebar, right below Projects. Full details under [Install](#install).
20
+
21
+ <p align="center">
22
+ <img src="https://raw.githubusercontent.com/JoblessJoe/dsh-connectors/main/.github/assets/connectors-panel.png?v=2" alt="The Connectors page: a connected Linear server with its tool list, Notion waiting for sign-in, a local filesystem server" width="100%">
23
+ </p>
24
+
25
+ <p align="center">
26
+ <img src="https://raw.githubusercontent.com/JoblessJoe/dsh-connectors/main/.github/assets/add-dialog.png?v=2" alt="The Add connector dialog" width="520">
27
+ <br><sub>Add a connector: paste the URL, pick how it signs in. A new OAuth connector opens its sign-in page right away.</sub>
28
+ </p>
29
+
30
+ ## What it does
31
+
32
+ - **Any MCP server.** Remote (Streamable HTTP, with automatic fallback to the older SSE transport) or a local command over stdio (`npx`, `uvx`, `docker`, anything).
33
+ - **Real sign-in.** OAuth 2.1 with PKCE, server discovery (RFC 9728 / RFC 8414) and dynamic client registration, done by the official MCP SDK. Works with hosted connectors like Linear, Notion, Sentry or your own FastMCP server behind GitHub login.
34
+ - **Sign-in finishes by itself, anywhere.** The provider sends you back to the dsh address you're using, so it works on a headless server too. No setup. See [Signing in](#signing-in).
35
+ - **Stays signed in.** Tokens live in dsh's own credential store, survive restarts and refresh on their own.
36
+ - **Heals itself.** Dropped connections reconnect with backoff. A tool call during a hiccup waits a few seconds for the server instead of failing.
37
+ - **You decide what agents see.** Turn a whole connector off, or switch single tools off (say, `delete_issue`).
38
+ - **Import.** Paste an `mcpServers` block from Claude Desktop, Cursor, VS Code or a server's README. Tokens in an `Authorization` header move to the credential store.
39
+ - **Fits in.** Built from dsh's own buttons, switches, tags and dialogs, so it follows your theme in light and dark mode.
40
+
41
+ Tools appear as `mcp__<id>__<tool>`, the same names dsh's built-in MCP client uses.
42
+
43
+ ## Where it shows up
44
+
45
+ - **Sidebar → Connectors**, just below Projects. It is a normal dsh panel, so the shell's **More** menu can hide or show it.
46
+ - **Settings → Connectors**: the same page, for people who look there first.
47
+
48
+ Nothing in dsh is patched. Both entries are registered by the plugin through dsh's slot system.
49
+
50
+ ## Signing in
51
+
52
+ 1. Click **Sign in** on a connector. The provider's login page opens in a new tab.
53
+ 2. Log in and accept. The provider sends you back to dsh at `<your dsh address>/plugins/dsh-connectors/callback`, the tab closes, and the connector turns **Connected**. That's it, on any device, whether dsh runs on your laptop or a server.
54
+
55
+ No setup and no fixed address: the plugin uses whatever address your browser opened dsh at (`http://localhost:3080`, `https://dsh.example.com`, a LAN IP). If you open dsh at a new address, the next sign-in registers it by itself.
56
+
57
+ **How dsh-connectors identifies itself**, best first:
58
+
59
+ 1. **Your own OAuth client**, if you enter a client id under *Advanced* (for servers that require pre-registration).
60
+ 2. **Self-registration (DCR)** for your dsh address: the no-paste flow above. Most servers today.
61
+ 3. **The published identity** ([Client ID Metadata Document](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization), the method newer MCP servers prefer): `https://joblessjoe.github.io/dsh-connectors/client-metadata.json`. It can only name fixed return addresses, so it returns to `127.0.0.1`: automatic when dsh runs on your computer, the paste box when it runs on a server.
62
+
63
+ **Fallback:** a few providers only accept `localhost` return addresses. For those, click *Try the paste method*: the tab then ends on an error page at `http://127.0.0.1:47391/callback?code=…`; copy that address into the box and click **Finish**.
64
+
65
+ ## Install
66
+
67
+ Into your dsh **web profile** (`web` below is the profile name; use the one that backs your web GUI). From a source checkout, use `pnpm dsh` instead of `npx @deepseek-ai/dsh`:
68
+
69
+ ```bash
70
+ npx @deepseek-ai/dsh plugin --profile web add dsh-connectors
71
+ ```
72
+
73
+ This installs the package and adds it to `dsh.profile.bundles`. If **Connectors** doesn't show up after a browser reload, restart dsh once. After that, adding, editing and removing connectors never needs a restart.
74
+
75
+ Requires dsh `0.2.2-rc.1` or newer and Node 20+.
76
+
77
+ ## Configuration
78
+
79
+ Everything is done on the Connectors page. Two optional settings for the plugin entry in `cordis.patch.yml`:
80
+
81
+ | Key | Default | What it does |
82
+ | --- | ------- | ------------ |
83
+ | `file` | `$DSH_HOME/connectors.json` | Where the connector list (no secrets) is saved |
84
+ | `callbackPort` | `47391` | Port of the paste-method fallback listener |
85
+
86
+ ## Security
87
+
88
+ - **Secrets never touch the connector list.** Tokens, client secrets and OAuth grants go to dsh's credential store (`dsh-connectors/<id>` records). The list file is written with mode `600` anyway.
89
+ - **Secrets never reach the browser.** The page only learns *whether* a token is saved.
90
+ - **The sign-in return route** (`/plugins/dsh-connectors/callback`) has to accept a cross-site redirect from the provider, so it sits outside dsh's `/api` fence. It only completes a sign-in that dsh itself started: a one-time random `state` plus the PKCE verifier, unused sign-ins expire after 15 minutes. If your dsh sits behind a login proxy, your browser's proxy session covers it.
91
+ - **The fallback listener only runs while a paste-method sign-in waits**, binds to `127.0.0.1` and stops afterwards.
92
+ - **The management route sits behind dsh's own login** and trust checks, like every other `/api` route.
93
+ - **Local commands run as your user**, like any MCP server you'd add by hand. Only add commands you trust.
94
+
95
+ ## Building from source
96
+
97
+ ```bash
98
+ git clone https://github.com/JoblessJoe/dsh-connectors.git
99
+ cd dsh-connectors
100
+ npm install
101
+ npm test # builds lib/, then runs end-to-end tests against a real MCP server (stdio + HTTP)
102
+ ```
103
+
104
+ `node scripts/build.mjs` alone emits `lib/index.js` (host) and `lib/client.js` (web).
105
+
106
+ ## Credits
107
+
108
+ Ideas from two earlier dsh MCP plugins: the settings-page approach of [dsh-mcp-oauth-client](https://github.com/fangzaozao/dsh-mcp-oauth-client) and the credential-store and output-cap ideas of [dsh-mcp-oauth](https://github.com/k0ndrateff/dsh-plugins). Both MIT.
109
+
110
+ ## License
111
+
112
+ MIT
113
+
114
+ > **中文简介** · DeepSeek Harness (dsh) 插件:像 Claude 一样的「连接器」。在侧边栏的 Connectors 页面添加任意 MCP 服务器(远程 OAuth 登录、令牌或本地命令),工具立即出现在所有对话中,无需 YAML、无需重启。支持 OAuth 2.1 + PKCE、令牌自动刷新、断线自动重连、按工具开关、从 Claude Desktop 配置导入;dsh 运行在服务器上时同样可以登录。<br>安装:`npx @deepseek-ai/dsh plugin --profile web add dsh-connectors`
@@ -0,0 +1,5 @@
1
+ # dsh-connectors bundle mount. A new plugin must be an `insert:` (a bare `- id:`
2
+ # only patches an existing entry). Needs one dsh restart after install.
3
+ - insert:
4
+ - id: dsh-connectors
5
+ name: 'dsh-connectors'
package/icon.svg ADDED
@@ -0,0 +1,21 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
2
+ <defs>
3
+ <linearGradient id="ic-bg" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#1B2B4A"/><stop offset="1" stop-color="#070B16"/></linearGradient>
4
+ <radialGradient id="ic-glow" cx=".5" cy=".55" r=".55"><stop offset="0" stop-color="#22D3EE" stop-opacity=".28"/><stop offset="1" stop-color="#22D3EE" stop-opacity="0"/></radialGradient>
5
+ <linearGradient id="ic-trace" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#22D3EE"/><stop offset="1" stop-color="#A3E635"/></linearGradient>
6
+ <filter id="ic-blur" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur stdDeviation="2"/></filter>
7
+ <clipPath id="ic-c"><rect width="64" height="64" rx="15"/></clipPath>
8
+ </defs>
9
+ <g clip-path="url(#ic-c)">
10
+ <rect width="64" height="64" fill="url(#ic-bg)"/>
11
+ <rect width="64" height="64" fill="url(#ic-glow)"/>
12
+ <path d="M0 16h64M0 24h64M0 32h64M0 40h64M0 48h64M16 0v64M24 0v64M32 0v64M40 0v64M48 0v64" stroke="#7DD3FC" stroke-opacity=".07" stroke-width="1"/>
13
+ </g>
14
+ <g fill="none" stroke="url(#ic-trace)" stroke-linecap="round" stroke-linejoin="round">
15
+ <g stroke-width="5" filter="url(#ic-blur)" opacity=".6"><path d="M26 14v9M38 14v9M20 23h24v7a12 12 0 0 1-24 0zM32 42v9"/></g>
16
+ <g stroke-width="3.4"><path d="M26 14v9M38 14v9M20 23h24v7a12 12 0 0 1-24 0zM32 42v9"/></g>
17
+ </g>
18
+ <circle cx="32" cy="51" r="5.5" fill="#A3E635" opacity=".35" filter="url(#ic-blur)"/>
19
+ <circle cx="32" cy="51" r="3" fill="#ECFCCB"/>
20
+ <rect x=".5" y=".5" width="63" height="63" rx="14.5" fill="none" stroke="#fff" stroke-opacity=".1"/>
21
+ </svg>