lussey820/dsh-http-tools0

dsh-http-tools

用于 DeepSeek Harness 的 HTTP/API 调试工具集:包含 http_request、curl_parse 和 request_history。

AI 分析

核心用途是允许智能体发送 HTTP 请求并解析 cURL。适合需要进行 API 调试、网络数据抓取或集成外部 Web 服务的开发与测试任务。

包名
dsh-http-tools
版本
0.1.5
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lussey820/dsh-http-tools

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-Request audit header so the server can identify agent traffic.
  • blockedHosts rejects exact hostnames and their subdomains before any network I/O (e.g. block cloud metadata endpoints like 169.254.169.254).
  • localOnly: true restricts requests to loopback and private networks — a one-switch "local debugging mode".
  • Response bodies are capped at maxBodyChars (default 512 KB) and timeouts at timeoutMs (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 curl commands redact authorization, cookie, proxy-authorization, and x-api-key values as ***, so secrets do not leak into session logs or request history.