如何将 CastHTML 远程 MCP 连接到 Cline

约 1 分钟即可把 CastHTML 的远程 MCP 服务端接入 Cline。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。

🛡️ Official✓ VerifiedStreamable HTTPBearer Token🛡️ A+~416 tok5 tools
Streamable HTTPhttps://casthtml.com/mcp

🔒 Client-side only — never leaves your browser.

Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:

{
  "mcpServers": {
    "casthtml": {
      "type": "streamableHttp",
      "url": "https://casthtml.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

接入步骤

  1. 打开 Cline MCP 设置 — Cline 侧边栏 → MCP Servers → 编辑 cline_mcp_settings.json。
  2. 添加服务端 — 写入 "casthtml": { "type": "streamableHttp", "url": https://casthtml.com/mcp }。
  3. 完成认证 — 在 CastHTML 控制台获取凭据,并将其作为 Authorization: Bearer <密钥> 请求头加入配置。
  4. 验证 — 在 在线 Inspector 中粘贴 https://casthtml.com/mcp 并运行 initialize + tools/list 验证连通性。

🧰 工具预览(5)

ToolSafetyDescriptionParameters
publish_report
~140 tok
🟠 WritePublish an HTML page or Markdown report into a secure sandbox and get a shareable /r/{slug} link.content*: stringtitle: stringformat: stringrender_mode: stringis_public: boolean
update_report
~97 tok
🟠 WriteUpdate an existing report in place by id_or_slug while keeping the share link unchanged.id_or_slug*: stringcontent*: stringtitle: string
list_reports
~40 tok
🟢 ReadList the most recent 50 reports on the current account.—
get_report
~56 tok
🟢 ReadFetch report metadata and body by id_or_slug.id_or_slug*: string
delete_report
~63 tok
🔴 DestructivePermanently delete a report by id_or_slug and invalidate its share link.id_or_slug*: string

更多连接指南