
DeepSeek Harness 的 MCP 服务器管理器插件:MCP 页面→设置,OAuth(PKCE + 动态客户端注册)或静态令牌认证,工具注册为 mcp__<name>__*
概览
——一个设置→MCP页面,只需添加一次MCP服务器(远程HTTP或本地stdio进程),通过HTTP服务器认证,并直接或通过紧凑的按需代理暴露其工具。 内置的 @deepseek-ai/dsh-mcp-client 只支持静态头部配置——它不支持 OAuth 和本地 stdio 传输。这个插件填补了这一空白: - 采用符合规范的发现功能,RFC 7591 动态客户端注册、refresh_token轮换和自动重启连接——一次浏览器登录,然后继续工作。- 遵循 RFC 9728 → RFC 8414:MCP 端点的 401 WWW-Authenticate 头为其受保护资源元数据命名,该文档命名授权服务器,授权服务器元数据从 RFC 8414 路径插入的 URL 读取(例如 https://github.com/.well-known/oauth-authorization-server/login/oauth).),只有当无可发现内容时,才回退为猜测 ${origin}/oauth/*,尝试日志中也有说明。
概述(AI 翻译)
简体中文 |英语
DeepSeek Harness(DSH)的 MCP 服务器管理器 — 一个 →MCP 设置页面,只需添加一次 MCP 服务器(远程 HTTP 或本地 stdio 进程),在浏览器中使用 OAuth 认证 HTTP 服务器,并直接或通过紧凑的按需代理暴露工具。
内置的 @deepseek-ai/dsh-mcp-client 只接受静态 headers 配置——它不支持 OAuth 且不支持本地 stdio 传输。这个插件填补了这个空白:
- OAuth(授权码 + PKCE),具规范要求的发现、RFC 7591动态客户端注册、
refresh_token轮换和自动重启——只需一次浏览器登录,就能继续工作。 - 发现遵循RFC 9728→RFC 8414:MCP端点的401
WWW-Authenticate头命名其受保护资源元数据,该文档命名授权服务器,授权服务器元数据从RFC 8414路径插入URL(例如https://github.com/.well-known/oauth-authorization-server/login/oauth)读取。只有当无法发现任何内容时,才会回退回猜测${origin}/oauth/*,尝试日志也显示如此。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
dsh-mcp-manager
简体中文 | English
Local 0.13.3 unreleased candidate: see the release notes for cumulative changes, provenance and verification limits. It supersedes 0.13.2.
MCP server manager for DeepSeek Harness (DSH) — a Settings → MCP page where you add MCP servers once (remote HTTP or local stdio process), authenticate HTTP servers with OAuth in the browser, and expose their tools either directly or through a compact on-demand broker.
The built-in @deepseek-ai/dsh-mcp-client only accepts a static headers config — it has no OAuth support and no local stdio transport. This plugin fills that gap:
- OAuth (authorization code + PKCE) with spec-compliant discovery, RFC 7591 dynamic client registration,
refresh_tokenrotation, and auto-reconnect across restarts — one browser login, then it keeps working.- Registration identity and secret (RFC 7591): the
client_namesent to the registration endpoint isdsh-mcp-manager-by default and configurable per server (Client name) for providers that gate registration on an exact name. When the authorization server advertisesclient_secret_post, the client registers confidentially: the issuedclient_secretis stored in the 0600 state file and sent on token exchange and refresh (never in a view, response or log). For a dynamically registered client, a changed client name — or a new GUI origin — re-registers and drops the old client’s tokens; a manually configured Client ID is unaffected. - Client application type follows MCP SEP-837: HTTP loopback callbacks (
localhost, IPv4 loopback, or[::1]) register asnative; other callbacks register asweb. This avoids OIDC providers defaulting a local GUI toweband rejecting its redirect. Registration failures show the provider’s OAuth error code when available; the Logs panel retains the detailed reason. Providers may still restrict which clients or redirects they accept. - Callback origin accepts direct loopback
Hostvalues (including[::1]:port). ConfigurepublicOriginsfor a reverse proxy: one configured origin is the default callback even without forwarded headers; with multiple origins, a completeX-Forwarded-Proto/X-Forwarded-Hostpair must match the allowlist. A foreign direct Host is rejected when no default is configured. Malformed forwarded host values are rejected. Callback messages are HTML-escaped.
- Registration identity and secret (RFC 7591): the
安装
npx -y @modelcontextprotocol/server-filesystem .配置
{
"mcpServers": {
"simulation": {
"type": "http",
"url": "http://127.0.0.1:9316/mcp",
"authMode": "none",
"timeout": 600000
}
}
}