DeepSeek Harness Connectors: MCP OAuth, Accounts & Credential Refresh

Author
DeepSeekAgent.io Editorial Team
Published
Updated

DeepSeek Harness v0.2.3-alpha.1 introduced unified connector-account management and optional connectors for Linear, Notion, Tencent Docs, Feishu, WeCom, Tencent Meeting, and DingTalk. They share the Plugins interface but not the same integration path: the first three use hosted MCP servers with OAuth, while the other four use vendor CLIs, Skills, and vendor-specific account flows.

That distinction controls who stores credentials, where authorization opens, how capabilities reach the Agent, whether failures belong to MCP or a local CLI, and whether removing a plugin also signs out the vendor account.

Two connector families

ConnectorIntegrationAccount and capability source
LinearHosted MCP + OAuthLinear MCP server and OAuth authorization
NotionHosted MCP + OAuthNotion MCP server and OAuth authorization
Tencent DocsHosted MCP + OAuthTencent Docs MCP server and OAuth authorization
FeishuVendor CLI + SkillOfficial lark-cli stores the account and exposes capabilities
WeComVendor CLI + SkillOfficial wecom-cli and upstream Skill
Tencent MeetingVendor CLI + SkillOfficial tmeet and upstream Skill
DingTalkVendor CLI + SkillA pinned official dws build and embedded Skill

The shared Plugins surface maps these different accounts into consistent check, connect, reauthorize, sign-out, and retry states. It does not force every service through MCP, and account UI state is not injected into the model prompt.

Install and connect

Connectors are optional plugins. Start in a test Profile:

  1. open Plugins, find the connector, and enable it;
  2. open its detail page and wait for the account check;
  3. for an MCP connector, select Connect and finish OAuth in a browser on the computer running DSH;
  4. for a CLI connector, follow its setup to install or prepare the vendor CLI, then sign in or authorize;
  5. return to Plugins and confirm the connected state;
  6. start a fresh Session and run a minimal read-only task to confirm the tool or Skill is visible;
  7. before a write action, verify the target workspace, document, chat, meeting, or organization and retain human confirmation.

Only the browser that starts an operation opens its authorization pages. Other browsers connected to the same Host see account-state changes but do not open the same page. If a browser blocks the new tab, use the account block to open it again.

MCP OAuth lifecycle

Linear, Notion, and Tencent Docs use MCP Manager for connection, authorization, sign-out, and restart. Missing authorization, an expired access token without a refresh path, changed binding, a rejected token, or insufficient scope moves the connector into an authorization-required state with a reconnect action.

A connected account can be reauthorized to change accounts or workspaces; the previous authorization remains until the replacement is saved. Sign-out requires confirmation. Credential refresh is serialized by the credential provider so concurrent refreshes do not overwrite each other.

Changing the resolved MCP URL, clientId, or scope invalidates the old authorization binding. OAuth cannot be combined with a manual Authorization header. Authorization-server and MCP requests require HTTPS, except for loopback HTTP, and redirects are rejected, so the configured URL must be the final endpoint.

Credential and model-context boundaries

The connector-account block belongs to Plugins UI. It does not add account state or tokens to model input and has no KV Cache impact. The model only sees MCP tools, Skills, or runtime guidance registered by the connector.

DSH replaces access tokens with [redacted] in OAuth diagnostics, tool failures, and upstream error text. The callback page does not echo authorization parameters. Even with those controls, do not paste tokens, authorization codes, client secrets, or complete private logs into chat, and inspect terminal output, screenshots, and attachments before sharing a Session.

On-demand loading for large catalogs

An MCP connector with a large tool catalog can use toolLoading: on-demand. Full schemas then stay out of ordinary model requests. The model sees names and first-line descriptions and loads selected tools through mcp__<server>__load_tools when required.

Loaded tools belong only to the calling Agent. SubAgents, forks, and restored Sessions start without them. After reconnect, DSH restores loaded tools that still exist and removes tools the server no longer exposes. See DSH Large MCP Catalogs for the token and catalog design.

Diagnose by layer

  • No account block on the plugin page: check whether the connector's Host side loaded; the package can remain listed even if account registration failed.
  • Stuck connecting: check whether the browser blocked the authorization page and whether authorization is happening on the DSH host computer.
  • Reconnect required: distinguish expiry, binding changes, token rejection, and insufficient scope instead of repeatedly refreshing the page.
  • Connected but no tools: verify the Profile and a fresh Session, initial MCP discovery, and the loader when on-demand mode is enabled.
  • CLI connector failure: check vendor CLI installation, account validity, absolute CLI-path discovery, and upstream Skill download.
  • Vendor login remains after uninstall: removing a plugin does not necessarily erase an account stored by the vendor CLI; use the connector or vendor sign-out flow.

Connectors first shipped in DeepSeek Harness v0.2.3-alpha.1. It remains a prerelease, so pin the version, back up the Profile, and validate connect, read, write, sign-out, and Session restore separately before using it in a production workspace.

References