CastHTML リモートMCPを VS Code にMCP接続する方法(設定手順)

CastHTML のリモートMCPサーバーを VS Code に約1分でMCP接続。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.

Install in VS Code →

Or add to .vscode/mcp.json:

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

接続手順

  1. MCP 設定を開く — vscode: deeplink でワンクリックインストールするか、プロジェクトルートに .vscode/mcp.json を作成します。
  2. サーバーを追加 — { "servers": { "casthtml": { "type": "http", "url": https://casthtml.com/mcp } } } と記述します。
  3. 認証を完了 — CastHTML のコンソールで資格情報を取得し、設定の Authorization: Bearer <キー> ヘッダーに追加します。
  4. 検証 — Copilot Chat を再起動して Agent モードでツールを確認します。オンライン 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

その他の接続ガイド