Casdoor集成市场

DeepSeek Harness | 应用集成

经 Casdoor 给 DeepSeek Harness 用上你的 MCP 服务器

DeepSeek Harness(dsh)的 Casdoor 插件用授权码模式加 PKCE 让 dsh 登录 Casdoor,列出你所在组织在 Casdoor 里的 MCP 服务器,把你打开的加进 dsh。每次工具调用都以“DeepSeek Harness 智能体代登录用户调用”的身份经过 Casdoor MCP 网关,Casdoor 的工具级授权、调用记录、链路 ID 和身份令牌都照常生效。令牌自动续期。只在 Casdoor 有商业版许可证时运行。

Casdoor 官方核验商业版AI agentMCPOAuthPKCE
你需要一个正在运行的 Casdoor,自己部署或用 Casdoor 云都可以。示例中的 https://auth.example.com 请换成你的 Casdoor 地址(Casdoor 云上类似 https://acme.casdoor.com),其他 example.com 地址也换成你自己的。

用 Casdoor 配置 DeepSeek Harness

  1. 1

    在 Casdoor 中注册 DeepSeek Harness

    在 Casdoor 控制台打开 应用,为 DeepSeek Harness 添加一个应用,在它的 OIDC/OAuth 标签页复制 客户端ID 和 客户端密钥。把下面的地址加到 重定向URLs:

    • http://127.0.0.1:3080/casdoor/callback
  2. 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/callback and an agent of the same name. Download casdoor-dsh-plugin-1.0.1.tgz under Downloads of the installed integration.

  3. 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, run dsh plugin --profile web add <path of the file> and restart dsh web.

  4. 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 addresshttps://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. 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. 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 是其所有者的商标。