helibeiqi/dsh-cordis-universal-adapter

helibeiqi★ 0TypeScript最后同步: 2026-08-21

在 GitHub 打开

Universal bridge adapter for DeepSeek Harness: consume external MCP servers & Agent Plugins 1.0 packages, and expose DSH native tools back as a standard MCP server. Host composition layer, bidirectional (Inbound/Outbound).

README 摘要

dsh-cordis-universal-adapter 面向 DeepSeek Harness 的双向桥接插件: 消费 外部 MCP 服务器与 Agent Plugins 1.0 包,并把 DSH 原生工具 反向暴露 为标准 MCP 服务器。 一句话描述 在 DSH(DeepSeek Harness)的 Host 组合层 上,把 MCP 生态(服务器、Agent Plugins 1.0 包)接入 ctx.tools , 同时把 ctx.tools 导出为 MCP 服务器,让同一批工具同时以 DSH 原生与 MCP 两种形态暴露。 安装 三条安装命令(按场景选择): 平面说明:Host 组合层 本插件 不是 Agent(不参与对话主循环),也不是工具本身——它是一个 Host 组合层的连接器 : - Inbound(正向) :连接外部 MCP 服务器(stdio / Streamable HTTP), listTools() 后把每个 MCP 工具 注册为 ctx.tools 中的 DSH 工具(命名 mcp: : );加载 Agent Plugins 1.0 包时, 解析 plugin.json + skills/ /SKILL.md + mcp.json ,把 Skill 描述注入系统提示词扩展点。 - Outbound(反向) :通过 ctx.tools.schemas() 枚举已注册工具,注册到 McpServer , 经 serveStdio (或 HTTP)暴露给任意 MCP 客户端(命名 dsh: )。 - 路由(可选) :语义路由通过 ctx.llm 的带 tools 参数的 chat 接口(function calling)为任务排序工具, 失败退化为 prompt-based 选择; 默认关闭 ,开启后每次路由产生一次 LLM 调用。 - 生命周期 :所有连接由状态机(start / stop / update)管理, update 时"断开旧 → listTools → 注销旧 → 注册新", 与 DSH HMR 协同;卸载时经 ctx.effect 全部回收。 支持的 DSH 版本区间 依赖 版本区间 @deepseek-ai/cordis =0.1.0 (peerDependency) @deepseek-ai/dsh-tools =0.1.0 (peerDependency) Node.js =22.19 ⚠️ Developer Preview 破坏性变更警告 : @deepseek-ai/dsh-tools 与 MCP 均处于 Developer Preview 阶段, 接口可能破坏性变更。本插件在 0.1.x 内锁定已验证的 API 形态(见 docs/DESIGN.md §14 真实 API 对齐修正与 §15 真实运行时…

在 GitHub 查看完整 README →
Agent/智能体agent-plugincordisdeepseek-harnessdsh-pluginmcpagent

分类