
DeepSeek Harness | 应用集成
经 Casdoor 给 DeepSeek Harness 用上你的 MCP 服务器
DeepSeek Harness(dsh)的 Casdoor 插件用授权码模式加 PKCE 让 dsh 登录 Casdoor,列出你所在组织在 Casdoor 里的 MCP 服务器,把你打开的加进 dsh。每次工具调用都以“DeepSeek Harness 智能体代登录用户调用”的身份经过 Casdoor MCP 网关,Casdoor 的工具级授权、调用记录、链路 ID 和身份令牌都照常生效。令牌自动续期。只在 Casdoor 有商业版许可证时运行。
https://auth.example.com 请换成你的 Casdoor 地址(Casdoor 云上类似 https://acme.casdoor.com),其他 example.com 地址也换成你自己的。用 Casdoor 配置 DeepSeek Harness
- 1
在 Casdoor 中注册 DeepSeek Harness
在 Casdoor 控制台打开 应用,为 DeepSeek Harness 添加一个应用,在它的 OIDC/OAuth 标签页复制 客户端ID 和 客户端密钥。把下面的地址加到 重定向URLs:
http://127.0.0.1:3080/casdoor/callback
- 2
Install from the Marketplace
On the Marketplace page of Casdoor, install DeepSeek Harness with the address you open dsh at. Casdoor creates the application with the callback
/casdoor/callbackand an agent of the same name. Downloadcasdoor-dsh-plugin-1.0.1.tgzunder Downloads of the installed integration. - 3
Install the plugin in DeepSeek Harness
In dsh, open Plugins in the sidebar, choose to install a plugin and enter the full path of the downloaded file, such as
C:\Users\me\Downloads\casdoor-dsh-plugin-1.0.1.tgz. Without the web page, rundsh plugin --profile web add <path of the file>and restartdsh web. - 4
Open the connection link
Open this link in the browser where dsh is open. It opens the Casdoor page of dsh with the address, client ID and client secret filled in, and Save and sign in takes you to Casdoor. The page is also at
/casdoor/of dsh, where you can enter them by hand.Casdoor address https://auth.example.com Client ID <client ID> Client secret <client secret> http://127.0.0.1:3080/casdoor/#casdoor=https://auth.example.com&clientId=<client ID>&clientSecret=<client secret> - 5
Choose the MCP servers
After signing in, the page lists the MCP servers of your organization with their allowed tools. The ones turned on appear in dsh as
mcp__casdoor-<server>__<tool>and show their connection state; turn a server off to take its tools away from dsh. - 6
Govern the calls in Casdoor
Turn on Record MCP tool calls in the security policy of the organization, and each call is recorded under the MCP server with the user, the agent DeepSeek Harness and a trace ID. Turn on Tool permissions of a server to require an MCP tool permission for every call, and add the agent to a permission to decide what dsh may do: the agent never gets more than the user it acts for. Disable the agent on the Agents page to stop dsh at once.
注意事项
- 插件每 10 分钟向 Casdoor 查一次许可证,Casdoor 是开源版时会把 Casdoor 的 MCP 服务器从 dsh 里拿掉。
- Client secret 和令牌存在 dsh 的凭据文件里(dsh 主目录下的
.credentials.yaml),不写进配置。 - dsh web 用别的地址打开(例如在反向代理后面)时,要把这个地址加进应用的重定向 URL。
DeepSeek Harness 的设置取自它的官方文档(核对于 2026年11月:DeepSeek Harness、Casdoor: MCP gateway)。DeepSeek Harness 是其所有者的商标。
更多应用集成
查看全部
阿里邮箱商业版
应用集成阿里邮箱 AI尊享版可以把 Casdoor 加成 OIDC 身份源:员工在邮箱登录页跳到 Casdoor 登录,按邮箱地址进入对应的邮箱账号。
Argo CD
应用集成用 OpenID Connect 把 Argo CD 接入 Casdoor:argocd-cm 里的 oidc.config、客户端密钥、PKCE、CLI 登录,以及按 Casdoor 群组分配 RBAC 权限。

帆软 FineReport / FineBI商业版
应用集成用帆软官方的类Oauth2单点登录插件把 FineReport、FineBI 的决策平台接到 Casdoor:认证地址、令牌申请、用户信息三步和 fr_login_name 的取值都已按 Casdoor 写好。
