MCP サーバー
todoke は Model Context Protocol (MCP) に対応しており、Claude などの AI エージェントから直接 Push 通知を送信できます。
エンドポイント
Section titled “エンドポイント”https://todoke-api.naoto24kawa.workers.dev/mcpStreamable HTTP トランスポートで提供します。
Claude Code での設定
Section titled “Claude Code での設定”.mcp.json に以下を追加します。
{ "mcpServers": { "todoke": { "type": "http", "url": "https://todoke-api.naoto24kawa.workers.dev/mcp" } }}利用可能なツール
Section titled “利用可能なツール”send_notification
Section titled “send_notification”指定したアプリの購読者に Push 通知を送信します。
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
app_id | string | ✅ | アプリ ID |
api_key | string | ✅ | notify または full スコープのキー |
title | string | ✅ | 通知タイトル |
body | string | ✅ | 通知本文 |
url | string | — | クリック時の遷移先 |
list_apps
Section titled “list_apps”アカウントのアプリ一覧を取得します。
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
session_token | string | ✅ | ダッシュボードのセッショントークン |
Claude に以下のように指示できます。
todoke の send_notification ツールを使って、app_id "abc123"、api_key "pk_xxx" で「デプロイが完了しました」という通知を送って