Kiwi buyer plugin for DeepSeek Harness - runs the kiwi-buyer-mcp server and ships a kiwi-buyer skill for sourcing, RFQs and negotiation on the Kiwi commerce network.
Install
# from npm (prebuilt)
dsh plugin --profile web add @harrylabsj/kiwi-dsh-plugin
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:harrylabsj/kiwi#path:/integrations/plugins/kiwi-dsh-plugin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
Kiwi Buyer plugin for DeepSeek Harness
(dsh,Everything is a Plugin)。一条命令装好 kiwi 的采购能力:
dsh plugin --profile web add @harrylabsj/kiwi-dsh-plugin
装完重启 dsh web 并开新会话,模型即可看到 13 个 mcp__kiwi__* Sourcing Tools
和 kiwi-buyer skill。
它装了什么
插件包 = bundle patch + host 插件:
MCP 插件(
cordis.patch.yml→@deepseek-ai/dsh-mcp-client):把kiwi mcp serve(kiwi-buyer-mcp)挂成 DSH 的 MCP 插件,工具以mcp__kiwi__<name>暴露:DSH 工具名 作用 mcp__kiwi__kiwi_search发现候选供应商(读) mcp__kiwi__kiwi_request_quotes发起询价(写,幂等) mcp__kiwi__kiwi_get_task任务状态/报价/审批/过期(读) mcp__kiwi__kiwi_negotiateCounterOffer / 澄清(写) mcp__kiwi__kiwi_accept_agreement接受非绑定协议(写,ASK) mcp__kiwi__kiwi_get_agreement读协议 + digest + 审计(读) mcp__kiwi__kiwi_handoff生成成交入口(写,ASK) mcp__kiwi__kiwi_approve批准持久审批(写) mcp__kiwi__kiwi_reject拒绝持久审批(写) mcp__kiwi__kiwi_follow_merchant关注商家(pull 式订阅,非推送)(写) mcp__kiwi__kiwi_unfollow_merchant取消关注商家(幂等)(写) mcp__kiwi__kiwi_list_follows列出当前关注的商家(读) mcp__kiwi__kiwi_get_follow_updates查看已关注商家的公开更新(读) SKILL(
lib/index.js→ctx.skills.registerProvider):注册kiwi-buyerskill,教模型何时用 kiwi、怎么构造合法 CommerceIntent(避免contract_violation)、审批流程与错误处理。
前置与覆盖配置
运行时经
npx -y @harrylabsj/kiwi@latest启动,无需全局安装 kiwi (@latest强制重解析最新,绕开 npx 对旧版本的缓存)。环境变量覆盖(在 dsh 进程环境里设置,父进程 env 透传给 kiwi 子进程):
变量 默认 作用 KIWI_MCP_DB~/.kiwi/mcp/dsh.sqlitekiwi-buyer-mcp 持久 store(task/approval)。需 kiwi ≥ 0.7.19(0.7.19 起 mcp serve支持该 env 默认路径);旧版缺省为 cwd 相对的.kiwi/mcp/state.sqliteKIWI_PRINCIPALdsh:<用户名>Principal 身份(建议按用户区分) KIWI_BUYER_AGENTbuyer-agent:kiwi-mcp买家 agent 标识 KIWI_CLIENT_ID无(必须由宿主设置并持久化) 每个 DSH 客户端实例的稳定身份;缺失时只能使用临时会话,不能恢复旧任务 代理/内网环境(Clash fake-ip 把 merchant 域名解析成
198.18.0.0/15保留网段) 需给mcp-kiwi行的 args 追加--a2a-skip-dns-check true(见下方)。
覆盖默认配置
dsh 的 profile cordis.patch.yml 按 id 整体替换(非 deep-merge)。要改
mcp-kiwi 行(如加 --a2a-skip-dns-check,代理环境),在
~/.dsh/profiles/web/cordis.patch.yml 写(静态值,dsh patch 不支持 !!js 于
args 数组):
- override:
- id: mcp-kiwi
config:
serverName: kiwi
transport: stdio
command: npx
args:
- '-y'
- '@harrylabsj/kiwi@latest'
- 'mcp'
- 'serve'
- '--a2a-skip-dns-check'
- 'true'
cwd: ''
toolCallTimeoutMs: 60000
failOnStartupError: false
验证
dsh plugin --profile web list # 应出现 @harrylabsj/kiwi-dsh-plugin
dsh --profile web --dump-config | grep -A 20 mcp-kiwi # mcp-kiwi + kiwi-dsh-plugin 两行
pgrep -af "mcp serve" # kiwi mcp serve 子进程存活
角色边界
DSH 只当 Host Agent;kiwi 的商务权威在 kiwi 侧(Buyer Core + DelegationPolicy +
Persistent Approval + KNP 状态机,kiwi mcp serve facade 内置五层授权 deny 优先)。
accept_agreement / handoff 默认 ASK(返回 approval_required),payment 恒
NEVER。详见 ../../hosts/deepseek-harness/README.md。
开发
npm run validate # prepack 门:manifest 形态 / 文件齐备 / patch 行 / 宿主导出 / 技能正文
# 本地安装验证:
dsh plugin --profile web add link:$PWD
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38385
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37218
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28812
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 9804
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6039
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4659
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.