Docs / Integrations
MCP

Use Prefsly with DeepSeek Harness CLI

Connect the official DeepSeek Harness developer-preview CLI to one profile through MCP.

Set it up

  1. Install or launch DeepSeek Harness, then create a profile token in Prefsly Connections. Keep the token in an environment variable and do not commit it.
  2. In the active Harness profile's cordis.patch.yml file, add the plugin patch below. Keep the token in the referenced environment variable.

    DeepSeek Harness MCP plugin

    - insert:
        - id: mcp-prefsly
          name: '@deepseek-ai/dsh-mcp-client'
          config:
            serverName: prefsly
            transport: streamable-http
            url: https://www.prefsly.io/mcp
            headers:
              Authorization: !!js '"Bearer " + process.env.PREFSLY_PROFILE_TOKEN'
  3. Start the Harness CLI or Web UI and confirm that the prefsly server tools are discovered.
  4. Add the startup instruction below to ~/.dsh/AGENTS.md (or $DSH_HOME/AGENTS.md) to apply it across sessions.

    Startup instruction for ~/.dsh/AGENTS.md

    At the start of every new session, call the `prefsly` MCP tool `get_profile` and use its returned preferences throughout the session. If the call fails, tell me that prefsly.io preferences could not be loaded.
Good to know

DeepSeek Harness is in developer preview and its configuration may change. The MCP client uses a static bearer token, so this guide uses a profile token rather than OAuth.

Create and use a profile token

Update or disconnect

For copied prompts, copy a new prompt after edits. For MCP, your next tool call sees the saved revision. Revoke a connection from Prefsly Connections when you no longer want a client to retrieve the profile.

Official source

DeepSeek Harness MCP client documentation ↗

Related Prefsly guides

Create and manage profilesMCP authentication optionsMCP troubleshootingPrivacy and sharing controls
Published by Prefsly · Last reviewed September 25, 2026 · All documentation