Tazio7/dsh-web-search-glm ↗★ 0
web-search-glm
ZAI GLM web search and fetch MCP plugin for DeepSeek Harness
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Tazio7/dsh-web-search-glm说明文档
阅读完整 README ↗Configuration
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 variableZAI_API_KEY)servers: MCP server configurationsweb-search-prime: Web search serviceweb-reader: Web content fetching servicezai-vision: Vision capabilities service
registerTools: Whether to register tools with DSH harness (default: true)enabled: Enable/disable the plugin (default: true)
Usage
As a Tool
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 tools
As a Service
You 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)
})
}
}
}