my-topology-engine
トポロジーベースAIエージェントエンジン(MCPサーバー)
AIエージェント向けに、決定的なトポロジーベースのワークフローエンジンを提供するModel Context Protocol(MCP)サーバーです。自由形式で予測不能なペルソナプロンプトに依存する代わりに、このサーバーはCloudflare Workersと連携してエッジで10ステップの状態遷移パイプラインを実行し、構造化された進捗スナップショットと反復テンプレートをクライアントに返します。
概要
このMCPサーバーは、AIクライアント(Claude Desktop、Cursor、Glamaなど)と、Cloudflare Workers上で動作するエッジコンピューティング型トポロジー実行エンジンとの間のブリッジとして機能します。
AIエージェントが人間の意図を固定された10ステップの状態遷移パイプラインにマッピング(類推)することを可能にします。次の反復のための適応型JSON穴埋めテンプレートとともに、10個の出力スナップショットを同時に配信します。
Related MCP server: project-planner-mcp
主な特徴と機能
プロトコル準拠: 公式のModel Context Protocol(
@modelcontextprotocol/sdk)を使用して実装されています。決定的トポロジー: Cloudflare Edgeで固定された問題解決ステップを実行し、幻覚ループを排除し、GPU/トークン消費を削減します。
ヒューマン・イン・ザ・ループ(スナップショットUX): 10個の中間進捗スナップショットを一度に返し、ユーザーがタイムラインを検査してシームレスにロールバックできるようにします。
適応型プロンプトテンプレート: 出力の最後に適応型JSONスキーマを追加し、人間とAIのスムーズな協調プロンプト改善を実現します。
提供されるMCPツール
このサーバーは、接続されたAIクライアントに以下のMCPツールを公開します。
1. run_topology_pipeline
Cloudflare Workers上で10ステップの決定的トポロジーパイプラインを実行し、10個の状態遷移スナップショットとJSON反復テンプレートを返します。
入力スキーマ(
inputSchema):task_description(文字列、必須): トポロジーで処理するタスクまたはユーザーの意図。filled_template(オブジェクト、任意): 人間が提供するか、エージェントが推論したパラメータまたは穴埋め値を含むJSONオブジェクト。
動作とエージェントのプロンプト指示:
AIエージェントは、ユーザーの高レベルなリクエストをエンジンの固定トポロジーステップにマッピングします。
サーバーはCloudflare Workers APIを呼び出して状態遷移を実行します。
10個のスナップショットと
appendix_templateを含む構造化されたJSONペイロードを返します。AIエージェントは
appendix_templateを自然な会話に変換し、人間が後続の実行の入力を改善するのを支援します。
アーキテクチャと通信フロー
[人間 / AIクライアント(Claude、Cursor、Glama)] │ │ MCPプロトコル(Stdio) ▼ [このMCPサーバー(Node.jsコンテナ)] │ │ HTTP POST(エッジREST API) ▼ [Cloudflare Workersエンジン] └─ 10ステップのステートマシントポロジーを実行し、スナップショットを返す
環境変数
WORKER_URL: Cloudflare WorkerエンドポイントのURL(例:https://my-topology-engine.my-agent-api.workers.dev)。
はじめに
Dockerを使用したローカル実行
# Build the Docker image
docker build -t mcp-topology-server .
# Run the MCP container
docker run -i --rm -e WORKER_URL="[https://my-topology-engine.my-agent-api.workers.dev](https://my-topology-engine.my-agent-api.workers.dev)" mcp-topology-server
Installation in Claude Desktop / MCP Clients
Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"topology-engine": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"WORKER_URL=[https://your-worker.workers.dev](https://your-worker.workers.dev)",
"mcp-topology-server"
]
}
}
}Available Tools
1 toolexecute_topology_engineC
Executes a 10-step deterministic problem-solving topology engine to process tasks and generate state-transition snapshots.
Inputs: task_description (required), filled_template.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion between different tools. The tool's purpose is clearly described as executing a topology engine, leaving no ambiguity.
The single tool name follows a clear verb_noun pattern ('execute_topology_engine'), which is consistent and predictable. Even with one tool, the naming is well-structured and aligns with common conventions.
One tool is on the borderline of being insufficient for a typical server, as most servers require at least a few tools to cover related operations. However, if the server's sole purpose is to run this engine, the count could be justified, but it feels thin without additional context.
The server exposes only a single operation, lacking any configuration, query, or retrieval tools that would complement the execution workflow. This creates significant gaps for agents that may need to set up inputs or inspect outputs, making the surface incomplete for a broader task lifecycle.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Cloudflare Workers MCP server: ai-agent-scratchpad
Cloudflare Workers MCP server: agent-workflow-engine
Cloudflare Workers MCP server: ai-eval
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceA production-ready MCP server for AI agents, providing deep web research and RAG capabilities via Cloudflare Workers.-
- FlicenseNot gradedqualityDmaintenanceA remote MCP server deployed on Cloudflare Workers for hosting and exposing MCP tools to AI clients via a remote endpoint.-
- AlicenseNot gradedqualityAmaintenanceAn MCP server that orchestrates image generation across multiple pipelines (OpenAI, Recraft, Midjourney) with durable memory for project context, running on Cloudflare Workers.1Apache 2.0
- AlicenseAqualityBmaintenanceAn MCP server that exposes deterministic workflows as tools, allowing small models to reliably orchestrate APIs and other MCP servers with minimal parameters.219 npm2MIT