Tazio7/dsh-web-search-glm0

web-search-glm

ZAI GLM web search and fetch MCP plugin for DeepSeek Harness

包名
web-search-glm
版本
0.0.1
最近更新
2026年9月1日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Tazio7/dsh-web-search-glm

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 variable ZAI_API_KEY)
  • servers: MCP server configurations
    • web-search-prime: Web search service
    • web-reader: Web content fetching service
    • zai-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 web
  • web-reader/fetch: Fetch web content
  • zai-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)
      })
    }
  }
}