mcp-think
mcp-think
Cloudflare Workers 上に構築された、構造化された逐次思考のためのリモート MCP サーバー。
アーキテクチャ
Cloudflare Worker が
/mcpを Streamable HTTP 経由で公開します。MCP SDK v2 がツールを定義します。
Durable Objects + SQLite が各シーケンスを永続化します。
シーケンスは明示的な
sequenceIdによって識別され、MCP プロトコルセッションはアプリケーション状態を保持しません。
この設計は現在の Cloudflare のガイダンスに従っています。新しい MCP サーバーは v2/ステートレスハンドラーを使用し、マルチステップワークフローのアプリケーション状態は明示的な Durable Object 境界の背後に置かれます。McpAgent は非推奨であり、ここでは意図的に使用されていません。
Related MCP server: Sequential-Thinking
ツール
start_sequence
シーケンスを作成し、sequenceId を返します。
add_step
構造化されたステップを追加します。要約、前提、証拠、仮説、決定に使用します。このサーバーは非表示の chain-of-thought を公開または保存することを意図していません。
revise_step
元のレコードを保持したまま、ステップの新しいリビジョンを作成します。
get_sequence
シーケンスのメタデータとすべてのステップを返します。
finish_sequence
最終的な結論を保存し、シーケンスを完了済みとしてマークします。
reset_sequence
シーケンスデータを削除します。
ローカル開発
npm install
npm run typecheck
npm run devローカル MCP エンドポイント:
http://localhost:8787/mcpヘルスチェック:
http://localhost:8787/healthデプロイ
Wrangler を Cloudflare アカウントで認証し、以下を実行します:
npm run deployCloudflare は wrangler.jsonc のマイグレーションから SQLite バックアップの Durable Object をプロビジョニングします。
使用例
start_sequence(goal)
↓
sequenceId
↓
add_step(sequenceId, ...)
↓
add_step(sequenceId, ...)
↓
revise_step(sequenceId, stepId, ...)
↓
get_sequence(sequenceId)
↓
finish_sequence(sequenceId, conclusion)セキュリティロードマップ
MVP には意図的に認証がありません。エンドポイントを公開する前に、OAuth または別の認証レイヤーを追加し、シーケンスの所有権を認証済みプリンシパルにバインドしてください。Cloudflare のガイダンスでは、CORS を認証メカニズムとして扱うのではなく、明示的な Host/Origin 検証と認証を推奨しています。
This server cannot be deployed
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Cloudflare Workers MCP server: agent-workflow-engine
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Cloudflare Workers MCP server: agent-memory
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA remote MCP server that can be deployed on Cloudflare Workers without requiring authentication, allowing users to add and use custom tools through the Model Context Protocol.1-
- AlicenseAqualityDmaintenanceA MCP server that implements sequential thinking protocols, provides structured problem-solving methods, decomposes complex problems into manageable steps, and supports iterative optimization and alternative reasoning paths.12Apache 2.0
- FlicenseNot gradedqualityCmaintenanceA remote MCP server that can be deployed on Cloudflare Workers, using OAuth authentication and SSE transport for tool invocation.-
- FlicenseNot gradedqualityDmaintenanceA remote MCP server deployed on Cloudflare Workers for hosting and exposing MCP tools to AI clients via a remote endpoint.-