dsh-http-tools
用于 DeepSeek Harness 的 HTTP/API 调试工具集:包含 http_request、curl_parse 和 request_history。
AI 分析
核心用途是允许智能体发送 HTTP 请求并解析 cURL。适合需要进行 API 调试、网络数据抓取或集成外部 Web 服务的开发与测试任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lussey820/dsh-http-tools说明文档
阅读完整 README ↗Configuration
All options are optional. Set them in your profile's cordis.patch.yml:
- id: http-tools
name: dsh-http-tools
config:
maxBodyChars: 524288 # cap on response body characters returned to the model
timeoutMs: 10000 # per-request timeout in milliseconds
blockedHosts: [] # hostnames the plugin refuses to contact (e.g. ['169.254.169.254'])
localOnly: false # true = only loopback / private-network targets
historyLimit: 50 # in-session request history retention
auditHeader: true # tag every request with an X-DSH-Request audit header
Security model
- By default every URL is allowed; the request is tagged with an
X-DSH-Requestaudit header so the server can identify agent traffic. blockedHostsrejects exact hostnames and their subdomains before any network I/O (e.g. block cloud metadata endpoints like169.254.169.254).localOnly: truerestricts requests to loopback and private networks — a one-switch "local debugging mode".- Response bodies are capped at
maxBodyChars(default 512 KB) and timeouts attimeoutMs(default 10 s) so a runaway call can never flood the model context. - Credentials (Bearer tokens, basic-auth pairs) are sent only as request headers. Generated
curlcommands redactauthorization,cookie,proxy-authorization, andx-api-keyvalues as***, so secrets do not leak into session logs or request history.