fno2010/dsh-web-search-ext ↗★ 2

@fno2010/dsh-web-search-ext

Multi-backend web_search and web_fetch providers for the DeepSeek Harness web seam (ctx.web): Exa (REST with key, anonymous hosted MCP without) and Firecrawl (v2 search/scrape API) today, extensible to more backends (SearXNG, ...), with automatic failover when one backend rate-limits, result verification (liveness/content), and a keyless web_fetch path 适合需要为DSH配置Exa或Firecrawl等高可用网页检索能力的用户。

パッケージ
@fno2010/dsh-web-search-ext
互換性
未検証
Harness ピア範囲
^0.2.1-rc.1
Cordis ピア範囲
^4.0.5
バージョン
0.3.1
ライセンス
MIT
最終更新
2026/10/21

インストール

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

ドキュメント

README 全文を読む ↗

Configuration

Config lives in this plugin's row in the active profile patch, $DSH_HOME/profiles/ /cordis.patch.yml (edit it directly, or use the settings card). The row is hot-reloaded: the plugin reads its volatile fields on every call.

FieldDefaultDescription
preferredexaBackend to try first: exa | firecrawl
numResults8Result count to request; also a hard cap on results returned (context budget) — a larger maxResults request is clamped to it and the receipt says so
maxSnippetChars500Snippet length bound
rateLimitCooldownSec60Fallback 429 cooldown when the backend reports no window; 0 disables
firecrawlKeylesstrueAllow keyless Firecrawl requests (search + fetch)
exaApiKey / firecrawlApiKey—Literal API key per backend
exaApiKeyEnv / firecrawlApiKeyEnvEXA_API_KEY / FIRECRAWL_API_KEYEnv var names for key resolution
exaApiUrl / exaMcpUrl / firecrawlBaseUrlhttps://api.exa.ai/search / https://mcp.exa.ai/mcp / https://api.firecrawl.dev/v2Endpoint overrides
verifyLevellivenessResult verification tier: off | liveness (HEAD every source) | content (experimental: also word-match the snippet against the live page)
livenessTimeoutMs3000Per-URL timeout for L0 HEAD probes
contentCheckBytes10240L1: max bytes read from each page
contentCheckMinBytes200L1: pages shorter than this count as bot-blocks
contentCheckMatchWords5L1: leading snippet words checked against the page
contentCheckTimeoutMs3000L1: timeout per request and body-read phase
freshnessanyRecency window: any | 24h | 7d | 30d (sent on the wire where the backend supports it; keyless Exa MCP cannot filter and says so in the receipt)
maxCooldownSec86400Cap on 429 cooldowns taken from a backend's reported retry_after; 0 = always honor the reported value
fetchMaxChars50000Character cap for web_fetch provider output
- id: web-search-ext
  name: '@fno2010/dsh-web-search-ext'
  config:
    preferred: exa
    numResults: 8
    # rateLimitCooldownSec: 60   # all other values are defaults

Or select this provider without the bundle patch: DSH_WEB_SEARCH_PROVIDER=web-search-ext.