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等高可用网页检索能力的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fno2010/dsh-web-search-extREADME
Read the full 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.
| Field | Default | Description |
|---|---|---|
preferred | exa | Backend to try first: exa | firecrawl |
numResults | 8 | Result 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 |
maxSnippetChars | 500 | Snippet length bound |
rateLimitCooldownSec | 60 | Fallback 429 cooldown when the backend reports no window; 0 disables |
firecrawlKeyless | true | Allow keyless Firecrawl requests (search + fetch) |
exaApiKey / firecrawlApiKey | — | Literal API key per backend |
exaApiKeyEnv / firecrawlApiKeyEnv | EXA_API_KEY / FIRECRAWL_API_KEY | Env var names for key resolution |
exaApiUrl / exaMcpUrl / firecrawlBaseUrl | https://api.exa.ai/search / https://mcp.exa.ai/mcp / https://api.firecrawl.dev/v2 | Endpoint overrides |
verifyLevel | liveness | Result verification tier: off | liveness (HEAD every source) | content (experimental: also word-match the snippet against the live page) |
livenessTimeoutMs | 3000 | Per-URL timeout for L0 HEAD probes |
contentCheckBytes | 10240 | L1: max bytes read from each page |
contentCheckMinBytes | 200 | L1: pages shorter than this count as bot-blocks |
contentCheckMatchWords | 5 | L1: leading snippet words checked against the page |
contentCheckTimeoutMs | 3000 | L1: timeout per request and body-read phase |
freshness | any | Recency 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) |
maxCooldownSec | 86400 | Cap on 429 cooldowns taken from a backend's reported retry_after; 0 = always honor the reported value |
fetchMaxChars | 50000 | Character 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.