dsh-plugin
DayuanJiang/next-ai-draw-iodsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
基于智谱 GLM MCP 的网络搜索插件:通过 Open BigModel API 搜索和抓取网页内容,API Key 自动从 ~/.dsh/.credentials.yaml 或环境变量注入,配置文件中无需存放密钥。
ZAI GLM web search and fetch MCP plugin for DeepSeek Harness.
This plugin integrates ZAI's (智谱AI) web search and fetch capabilities into DSH through MCP (Model Context Protocol) servers.
Add the plugin to your DSH profile:
dsh plugin --profile <profile-name> add dsh-zai-web-search
The plugin will automatically use your DSH ZAI API key from ~/.dsh/.credentials.yaml. No additional setup is required if you have configured ZAI in DSH.
The plugin is configured through cordis.patch.yml in your profile directory. Key configuration options:
apiKey: Your ZAI API key (can be set via environment variable ZAI_API_KEY)servers: MCP server configurations
web-search-prime: Web search serviceweb-reader: Web content fetching servicezai-vision: Vision capabilities serviceregisterTools: Whether to register tools with DSH harness (default: true)enabled: Enable/disable the plugin (default: true)Once installed and configured, the following tools will be available to the model:
web-search-prime/search: Search the webweb-reader/fetch: Fetch web contentzai-vision/*: Vision-related toolsYou can also use the service programmatically in your DSH plugins:
import { Context } from '@deepseek-ai/cordis'
export default {
apply(ctx: Context) {
// Access the ZAI Web Search service
const zaiWebSearch = ctx.get('zai-web-search')
if (zaiWebSearch) {
// Search the web
zaiWebSearch.searchWeb('your search query').then(results => {
console.log(results)
})
// Fetch web content
zaiWebSearch.fetchWeb('https://example.com').then(content => {
console.log(content)
})
}
}
}
ZAI_CODING_CN_API_KEY: Your ZAI API key for authentication (optional if configured in DSH)ZAI_API_KEY: Alternative environment variable for ZAI API keyZAI_MODE: Set to "ZHIPU" for Chinese market (default)The plugin uses the following MCP servers:
web-search-prime: Web search service from ZAI
https://open.bigmodel.cn/api/mcp/web_search_prime/mcpweb-reader: Web content fetching service
https://open.bigmodel.cn/api/mcp/web_reader/mcpzai-vision: Vision capabilities
npx -y @z_ai/mcp-server@latestTo build the plugin:
npm run build
To run tests:
npm test
MIT