跳到主要内容

DeepSeek Harness 配置

DeepSeek Harnessdsh)是开源 Agent 运行时,自带通用 MCP 客户端——只需加一段服务器配置。使用与 ChatGPT / Codex 相同的 PartnerBoost MCP 地址和 AI Access Key。

DeepSeek Harness 目前为 Developer Preview

步骤 1 — 复制 AI Access Key

打开 AI Center → AI Connectapp.partnerboost.com/brand/ai-center/connect),复制 AI Access Key

步骤 2 — 启动 DeepSeek Harness

npx @deepseek-ai/dsh web

界面默认 http://127.0.0.1:3080。安装说明见 Harness 文档

步骤 3 — 添加 PartnerBoost MCP

在 profile 的 cordis.patch.yml$DSH_HOME/profiles/<name>/)中加入:

- id: mcp-pb-brand
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: pb-brand
transport: streamable-http
url: https://app.partnerboost.com/agent/mcp
headers:
Authorization: Bearer YOUR_AI_ACCESS_KEY
toolCallTimeoutMs: 300000

YOUR_AI_ACCESS_KEY 换成 AI Center → AI Connect 里的 Key,并保留 Bearer 前缀。

建议 toolCallTimeoutMs: 300000(5 分钟)——搜索媒体 / 红人可能超过 dsh 默认超时(约 60 秒)。

然后重启 Harness(或重载 profile),让它重新发现工具。

步骤 4 — 验证

询问:「列出我最近的 PartnerBoost 交易。」

客户端应调用 pb_get_transaction_list 等工具。重新连接后工具名为 pb_ 前缀。完整清单见 MCP 功能

排障

现象处理
401 Unauthorized检查 Key 与 Bearer 前缀
搜索媒体超时保持 toolCallTimeoutMs: 300000
仍是旧工具名重启 Harness,刷新 tools/list

MCP 常见问题。ChatGPT / Codex 见 ChatGPT / Codex