dshbase

Plugin directory / Developer / deepseek-harness-zhipu_plan_tools

deepseek-harness-zhipu_plan_tools

Verified · install-tested on dsh magian1127

✓ Actively maintained

View on GitHub ↗ ← Back to plugin directory

0Stars
0Forks
0Open issues
—Language
2026-08-22Last push
Cross-platformPlatform

What it does

Zhipu (GLM Coding Plan) MCP servers into DSH - 接入智谱的工具

✅
Our take
Works — verified, early-stage project

Zhipu (GLM Coding Plan) MCP servers into DSH - 接入智谱的工具 It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

deepseek-harness-zhipu_plan_tools

智谱 MCP 三件套 · DeepSeek Harness 插件

中文 · English

版本 0.1.2 功能 搜索/读取/仓库 MIT License

把智谱(GLM Coding Plan)三个 MCP Server 的能力以 DSH 原生 provider / 工具形式接入:
内置 web_search / web_fetch 后端替换为智谱联网搜索与网页读取,新增三个 github_*
开源仓库工具;全部功能可在设置页折叠卡片中实时开关。视觉理解 MCP 已完成调研,
列入路线图。

功能

功能 默认值 说明
联网搜索 开 内置 web_search 后端替换为智谱联网搜索 MCP(web_search_prime),中英文源混合返回
网页读取 开(跟随 web_fetch 开关) 内置 web_fetch 后端替换为智谱网页读取 MCP(webReader),直接返回 markdown 正文(优于本地 HTML 转换);DSH 默认关闭 web_fetch,部署启用后自动生效
开源仓库 关 新增 github_search_doc(搜仓库文档/issue/commit)、github_get_repo_structure(目录结构)、github_read_file(读文件)三个模型工具;需要时可在设置卡片中开启
设置卡片 — DSH 设置 → 插件设置:折叠卡片实时开关各项、配置凭据引用名,中英双语随界面切换

工作机制

  • 搜索/读取 = provider 替换:注册到 DSH web 服务的 provider,由 cordis.patch.yml
    把 web 行的 searchProvider / fetchProvider 指向本插件;模型看到的工具名不变
    (web_search / web_fetch),后端换成智谱。
  • 仓库工具 = 原生注册:三个 github_* 工具经 ctx.tools.register 注册,带系统提示
    指引与通用卡片,60 秒协作超时;历史中的过期或畸形参数仅降级为通用卡片,不影响会话重放,实际执行仍严格校验参数。
  • 凭据:统一引用 ZAI_CODING_CN_API_KEY(智谱 GLM Coding Plan API Key),三层解析
    (DSH 凭据服务 → 环境变量 → ~/.dsh/.credentials.yaml 直读);key 永不写入配置或日志。
  • 热更新:host 侧产物自监视热重载(改 src/ → npm run build 即生效,无需重启);
    设置 applies: 'live' 实时生效。

环境要求

  • DeepSeek Harness Web GUI,profile web,≥ 0.1.0-rc.7
  • Node.js ^22.19.0 || >=24.0.0
    首次使用

安装

发布后(推荐):

# 官方持久通道:自然下一次启动后生效
dsh plugin --profile web add deepseek-harness-zhipu_plan_tools

# 热安装:DSH 正在运行时可立即生效
npx -y deepseek-harness-zhipu_plan_tools install --profile web

本地源码联调:

npm install          # prepare 自动构建
node bin/dsh-zhipu.mjs install --profile web --link <项目绝对路径>

本包 patch 含 web.config,不符合 dsh-zh 的简单 manifest reconcile;CLI 会使用本项目的桥接/临时行策略。提示完成后仍需用 status、实际 provider/tool 状态和现有 GUI 确认是否挂载:

npx -y deepseek-harness-zhipu_plan_tools status --profile web

首次使用:添加 zai-coding-cn 提供商

使用本插件前,先在 DSH 设置中添加 zai-coding-cn 提供商(一个步骤,安装后只需做一次):

  1. 打开 DSH 设置 → 模型;
  2. 「提供方」下拉选择 zai-coding-cn(注意不是海外的 zai,本插件走智谱中国区端点 open.bigmodel.cn);

保存后 DSH 会自动使用 ZAI_CODING_CN_API_KEY 参数(即配置中 apiKeyEnv: ZAI_CODING_CN_API_KEY)
作为该提供商的 API Key——这正是本插件默认的凭据引用名 credentialRef。

因此你只需保证 ZAI_CODING_CN_API_KEY 已存在于环境变量或 ~/.dsh/.credentials.yaml,
插件零额外配置即可取到智谱 Coding Plan Key;若你在环境变量中配置了别的名字,可在设置卡片中
把 credentialRef 改成对应名字。

启用 web_fetch(网页读取)

DSH 预设默认关闭 web_fetch(tool-web 行 fetch: false),本插件不擅自改该开关。
需要网页读取时,在你的 profile patch(~/.dsh/profiles/web/cordis.patch.yml)加:

- id: tool-web
  config:
    fetch: true

之后 web_fetch 工具出现并自动走智谱后端。不启用则本功能零感知。

设置与数据

数据 存储位置
enabled / search / reader / zread / zhPrompt / credentialRef DSH settings.yaml,命名空间 dsh-zhipu
  • 总开关 enabled:关闭 = 搜索/读取进入兼容回退、仓库工具与提示卸载;设置入口保留。
  • search / reader 关闭即回退:关闭后 web_search 仍可用,按 DSH 内置请求形状回退 DeepSeek 搜索
    (凭据 DEEPSEEK_API_KEY);web_fetch 回退受限 HTTP(S) 文本抓取。彻底恢复静态配置(让上层插件重新
    接管或移除 provider 指向)仍需从挂载行删除 searchProvider / fetchProvider,详见
    行为契约。
  • zread 可干净装卸:默认关闭;开启后注册三个仓库工具,关闭后工具立即从模型工具目录消失。
  • 不上传额外数据、不做遥测;网络调用限于智谱官方 MCP、DeepSeek 搜索回退和用户明确传入的 HTTP(S) 页面。

卸载

dsh plugin --profile web remove deepseek-harness-zhipu_plan_tools
# 或
npx -y deepseek-harness-zhipu_plan_tools remove --profile web

卸载会清理挂载行与依赖并热卸载(运行中的 DSH 无需重启);settings.yaml 中的
dsh-zhipu 值可能保留,重新安装后继续生效。

开发

npm run typecheck   # 三个 tsconfig 全量类型检查
npm run build       # host(lib/)+ client(lib/client.js)+ CLI(bin/)+ tests(.tsbuild/)
npm test            # 构建 + node:test(22 项:核心层/行管理/设置/schema 对齐/装配冒烟)
npm run verify      # 产物存在性 + 语法 + client bundle 格式 + CLI usage 冒烟
node scripts/smoke-live.mjs   # 真实 API 冒烟(需要凭据;search/reader/zread)

改 src/ 后运行 npm run build;Host 以实际 provider/tool 变化验收,Client 以当前 profile 提供的 bundle 与设置卡验收。复杂 patch 的首次挂载限制见开发指南。

开发文档

路线图

  • 视觉理解 MCP(vision):8 个官方工具(analyze_image、video_analysis、OCR、
    UI 转代码、图表分析、双图 diff 等),实现为 GLM-4.6V chat/completions 原生工具;
    端点、消息结构、prompt 来源与模型选项(含 glm-4.6v-flash)已调研存档于 docs/architecture.md。
  • MCP 会话复用(减少每调用一次握手往返)。
  • npm 发布(包规格已就绪,npm pack --dry-run 校验通过)。

License

MIT

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install deepseek-harness-zhipu_plan_tools for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:magian1127/deepseek-harness-zhipu_plan_tools

Headless (CLI) profile:

dsh plugin --profile headless add github:magian1127/deepseek-harness-zhipu_plan_tools

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7819 plugins →