my-topology-engine
Executes deterministic 10-step topology pipelines on Cloudflare Workers, returning structured state transition snapshots and adaptive iteration templates.
Topology-Based AI Agent Engine (MCP Server)
A Model Context Protocol (MCP) server that provides a deterministic, topology-based workflow engine for AI Agents. Instead of relying on open-ended, unpredictable persona prompting, this server interfaces with Cloudflare Workers to execute 10-step state transition pipelines at the edge, returning structured progress snapshots and iteration templates to the client.
Overview
This MCP server acts as a bridge between AI clients (such as Claude Desktop, Cursor, or Glama) and an edge-computed topology execution engine running on Cloudflare Workers.
It allows an AI agent to map (analogize) human intent into a fixed, 10-step state transition pipeline. It delivers 10 output snapshots simultaneously alongside an adaptive JSON fill-in-the-blank template for the next iteration.
Related MCP server: project-planner-mcp
Key Features & Capabilities
Protocol Compliance: Implemented using the official Model Context Protocol (
@modelcontextprotocol/sdk).Deterministic Topology: Executes fixed problem-solving steps at Cloudflare Edge, eliminating hallucinatory loops and reducing GPU/token consumption.
Human-in-the-Loop (Snapshot UX): Returns 10 intermediate progress snapshots at once, allowing users to inspect the timeline and roll back seamlessly.
Adaptive Prompt Template: Appends an adaptive JSON schema at the end of output for smooth human-AI collaborative prompt refinement.
MCP Tools Provided
This server exposes the following MCP Tools to connected AI clients:
1. run_topology_pipeline
Executes a 10-step deterministic topology pipeline on Cloudflare Workers and returns 10 state transition snapshots along with a JSON iteration template.
Input Schema (
inputSchema):task_description(string, required): The task or user intent to be processed through the topology.filled_template(object, optional): A JSON object containing parameters or fill-in-the-blank values provided by the human or inferred by the agent.
Behavior & Agent Prompt Instructions:
The AI Agent maps the user's high-level request to the engine's fixed topology steps.
The server calls the Cloudflare Workers API to execute state transitions.
Returns a structured JSON payload containing 10 snapshots and an
appendix_template.The AI Agent translates the
appendix_templateinto natural conversation to help the human refine inputs for subsequent runs.
Architecture & Communication Flow
[Human / AI Client (Claude, Cursor, Glama)] │ │ MCP Protocol (Stdio) ▼ [This MCP Server (Node.js Container)] │ │ HTTP POST (Edge REST API) ▼ [Cloudflare Workers Engine] └─ Runs 10-step State Machine Topology & Returns Snapshots
Environment Variables
WORKER_URL: The URL of your Cloudflare Worker endpoint (e.g.,https://my-topology-engine.my-agent-api.workers.dev).
Getting Started
Local Running via 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.
Maintenance
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.222 npm2MIT