rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
All four z.ai GLM Coding Plan MCP servers as native DeepSeek Harness (DSH) tools — vision, web reader, web search, and zread — bridged through the in-box @deepseek-ai/dsh-mcp-client.
If DSH already reaches z.ai models for you, the plugin works zero-config: it reuses the GLM coding-plan key from DSH's managed credentials store.
| server | transport | tools |
|---|---|---|
zai-vision |
stdio — npx -y @z_ai/mcp-server@latest |
analyze_image, analyze_video, ui_to_artifact, extract_text_from_screenshot, diagnose_error_screenshot, understand_technical_diagram, analyze_data_visualization, ui_diff_check |
zai-web-reader |
streamable-http | webReader |
zai-web-search |
streamable-http | web_search_prime |
zai-zread |
streamable-http | search_doc, get_repo_structure, read_file |
13 tools total, each published as mcp__<serverName>__<toolName>. Tool calls consume your GLM Coding Plan quota.
Official specs: 视觉理解 MCP · 联网搜索 MCP · 网页读取 MCP · 开源仓库 MCP
@deepseek-ai/dsh-mcp-clientopen.bigmodel.cnThe package declares a dsh.bundle manifest, so it installs like any other profile plugin: a package dependency plus one line in dsh.profile.bundles — no hand-edited cordis.patch.yml.
One command:
# from a Git source
dsh plugin --profile web add "github:nekomona/dsh-plugin-zai-mcp"
# or from a local checkout
dsh plugin --profile web add "link:D:/path/to/dsh-zai-mcp"
The CLI appends the bundle line itself. Restart DSH, done. Uninstall and update are symmetric:
dsh plugin --profile web remove dsh-plugin-zai-mcp
dsh plugin --profile web add "github:nekomona/dsh-plugin-zai-mcp" # update
There is no build step, so git installs never need a prepare build or pnpm build authorization.
DSH Desktop app: use the script from method C, or run the app's bundled pnpm inside the profile directory:
& "$env:APPDATA\dsh-desktop\harness\.desktop-bin\pnpm.cmd" add "github:nekomona/dsh-plugin-zai-mcp"
# then append "dsh-plugin-zai-mcp" to dsh.profile.bundles in
# %APPDATA%\dsh-desktop\harness\profiles\web\package.json
Search for dsh-plugin-zai-mcp and install. You will be prompted for Z_AI_API_KEY.
pwsh scripts/install.ps1 -ProfileName web
sh scripts/install.sh web
The script links the checkout with pnpm, appends the bundle line, and removes any pre-0.2 patch entry. It never writes patch entries.
Resolution order at plugin start:
config.apiKeyZ_AI_API_KEY, then ZAI_CODING_CN_API_KEY — in the launch environment or ~/.dsh/.env~/.dsh/.credentials.yamlSo on a host where the GLM coding provider is already configured, nothing to do. Otherwise:
# ~/.dsh/.env
Z_AI_API_KEY=your-coding-plan-key
Get a key at bigmodel.cn → Coding Plan. Team-plan keys are not interchangeable with regular bigmodel.cn keys — use the team key.
The key is passed to the vision child via its env and sent as an Authorization: Bearer header to the remote endpoints. The plugin never writes it to disk or logs it.
Zero-config by default. To customize, give the entry a config:
- insert:
- id: dsh-plugin-zai-mcp
name: dsh-plugin-zai-mcp
config:
mode: ZHIPU # ZHIPU | ZAI
keyWaitMs: 5000
vision:
enabled: true
quiet: true
command: npx # override for an absolute npx.cmd path
args: ['-y', '@z_ai/mcp-server@latest']
toolCallTimeoutMs: 60000
webReader: { enabled: true }
webSearch: { enabled: false }
zread: { enabled: true }
apiKeyEnvNames: [Z_AI_API_KEY, ZAI_CODING_CN_API_KEY]
| field | default | meaning |
|---|---|---|
apiKey |
'' |
hard-coded key |
apiKeyEnvNames |
[Z_AI_API_KEY, ZAI_CODING_CN_API_KEY] |
names probed, in order |
mode |
ZHIPU |
vision child platform: ZHIPU = bigmodel.cn, ZAI = z.ai international |
keyWaitMs |
5000 |
startup wait for the credentials provider — DSH mounts plugins concurrently and it may commit slightly later |
vision.quiet |
true |
silence the child's stderr via the wrapper |
<server>.enabled |
true |
per-server kill switch |
<server>.url |
official endpoint | endpoint override |
<server>.toolCallTimeoutMs |
60000 |
per-tool-call timeout |
@deepseek-ai/dsh-mcp-client child per server; tools follow this plugin's lifecycle, so an HMR reload disposes and re-bridges cleanly.Z_AI_API_KEY and would crash-loop through npx. One failing bridge never fails the others or the host boot.lib/vision-stdio.mjs wraps the child and drops only its stderr, leaving the MCP channel untouched. The server's own log stays at ~/.zai/zai-mcp-<date>.log (override with ZAI_MCP_LOG_PATH).Z_AI_API_KEY=… npx -y @z_ai/mcp-server@latest. An old cached npx version can be cleared with npm cache clean — the default args pin @latest.cmd.exe /d /s /c for .cmd shims; with a non-standard Node install, point vision.command at npx.cmd directly.mode must match where the key works. See the MCP 额度说明.Also declared machine-readably in the disclosure field of package.json, which the marketplace ingests for its "disclosed" badge.
npm install # dev-only peer closure for the tests
npm test # schema + apply() unit tests, no network
npm run test:live # bridges the four live servers: handshake + tools/list
# only, no quota-consuming tool calls
Package layout follows the DSH plugin marketplace standard: dsh capability declaration, pre-built lib/, host interface packages in peerDependencies only.
For development against a running DSH, wire the checkout with the link: install from method A: edits to lib/ take effect on the next DSH restart. Keep the repo's node_modules/ present for the peer imports to resolve.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek。