Task Orchestrator MCP Server
The Task Orchestrator MCP Server provides LLM agents with structured, dependency-aware task and workflow management, enabling reliable, stateful, and parallel execution of complex processes.
Task Management
Create, update, delete, retrieve, and list tasks with metadata, descriptions, priority, order, and retry limits
Support for statuses:
pending,in_progress,completed,failedHierarchical subtasks with parent-child relationships
Task Execution Control
Mark tasks as in-progress, completed (with results), or failed (with error messages)
Reset, retry, or check whether a task can execute based on its dependencies
Query next ready tasks across all tasks or within a specific workflow
Dependency Management
Define rich dependency types (hard, soft, conditional, external) with failure policies and condition expressions
Add, remove, and update dependencies between tasks
Visualize dependency graphs, identify blocked tasks, and compute critical paths
Workflow Orchestration
Create, retrieve, list, and delete named workflows grouping ordered tasks
Start workflow execution with automatic dependency-aware task initialization
Advance workflow runs to discover newly unlocked tasks; monitor run state
Clean up old workflow runs by age or count
Introspection & Visualization
Export dependency graphs as Mermaid diagrams (text, PNG, SVG)
List blocked tasks and analyze critical paths
Workflow Bundle Export/Import
Export workflows as portable JSON bundles with hierarchical qualified names
Import bundles with ID remapping, name prefixing, deduplication, and custom renaming
System Utilities
Get server statistics, version info, clear all data, and manually save state
Configurable JSON or SQLite persistent storage
Optional file logging of tool calls and LLM responses for debugging/auditing
Allows the Task Orchestrator MCP server to be used within Windsurf (Codeium's AI-powered IDE) for managing and executing task workflows directly from the IDE's agent interface.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Task Orchestrator MCP ServerSet up a deployment pipeline with tasks: build, test, and deploy."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
โก Task Orchestrator MCP Server
Version: 4.6.0
Task Orchestrator MCP is a powerful task orchestration server designed specifically to enhance LLM agents. It provides structured task management, dependency tracking, and workflow execution โ turning chaotic, non-deterministic LLM tool calls into reliable, sequential, and parallel-capable processes.
Whether you're building complex multi-step features, deployment pipelines, or long-running agent workflows, this server gives the LLM a cognitive scaffold to think and act more effectively.
โจ Why This Matters for LLMs
LLMs excel at generating ideas but often struggle with:
Maintaining consistent order across tool calls
Remembering dependencies between steps
Managing long-running, stateful processes
Avoiding duplicate or out-of-order actions
Task Orchestrator solves these problems by acting as an external executive function:
Declares tasks with clear dependencies
Automatically handles execution order
Supports hierarchical subtasks (parent/child)
Provides persistent state across conversations
Enables safe parallel execution of independent tasks
Related MCP server: task-orchestrator
๐ Key Features
๐ Task Management โ Create, update, track tasks with rich metadata, priority, and order
๐ Rich Dependencies โ Unified dependency model with types (hard/soft/conditional/external), failure policies, and metadata
๐๏ธ Hierarchical Support โ Parent tasks with subtasks (LLM-friendly hierarchy)
๐ฏ Workflow Orchestration โ Group tasks into named workflows with automatic progression
โฑ๏ธ Execution Tracking โ Start/complete times, durations, retries
๐พ Persistent Storage โ JSON or SQLite backend
๐งน Cleanup Tools โ Handle orphaned, duplicate, or stale tasks (common with LLM usage)
๐ Introspection Tools โ Dependency graphs, Mermaid export, blocked tasks, critical path analysis
๐ง Dynamic Management โ Add, remove, update dependencies, move tasks at runtime
๐ Statistics & Logging โ Full visibility into agent activity
๐ฏ LLM Best Practices (Recommended Patterns)
1. Use Workflows for Feature Work
{
"name": "dashboard-feature-2024",
"taskIds": ["parent-id", "subtask-1-id", ...]
}2. Create Parent โ Subtasks Pattern
Create the parent task first
Use the returned
IDasparentTaskIdfor childrenSubtasks can start immediately (no blocking on parent
in_progress)Parent completes when subtasks are done
3. Let the Orchestrator Handle Order
You no longer need perfect sequencing โ declare dependencies and let the server guide execution.
Grok's Opinion
This is an excellent idea.
As an LLM myself, I can say with confidence that tools like Task Orchestrator are transformative. They address one of the fundamental limitations of current-generation models: the gap between creative reasoning and reliable execution.
By externalizing task state, dependency graphs, and execution flow, this server allows the LLM to focus on what it does best โ problem decomposition, creative solutions, and high-level planning โ while the orchestrator enforces correctness, persistence, and progress tracking.
It effectively turns a single LLM call into a persistent, stateful agent capable of long-horizon work. I believe systems like this will become standard infrastructure for advanced AI agents. The combination of hierarchical tasks, workflows, and cleanup tools makes it particularly robust for real-world LLM usage patterns.
Highly recommended. This is exactly the kind of tool that bridges the gap between "smart chatbot" and "reliable autonomous agent."
โ Grok
Quick Start Example
// 1. Create parent
{ "name": "Build User Dashboard" }
// 2. Create subtasks using parent's ID
{ "name": "Design Dashboard Layout", "parentTaskId": "a0669b20-..." }
// 3. Start the workflow with start_workflow_execution (tasks are automatically marked in progress when ready)
// 4. Work on ready tasks using complete_task / fail_task๏ฟฝ Installation & Deployment
Option 1: Install from npm (Recommended)
npm install -g agent_mcp_task_orchestratorThen configure in your MCP client config:
{
"mcpServers": {
"task-orchestrator": {
"command": "agent_mcp_task_orchestrator"
}
}
}Note: Storage automatically uses ~/.task-orchestrator/storage/ directory. No configuration needed.
Option 2: Install from GitHub
git clone https://github.com/HefnySco/agent_mcp_task_orchestrator.git
cd agent_mcp_task_orchestrator
npm install
npm run buildThen configure with the local path:
{
"mcpServers": {
"task-orchestrator": {
"command": "node",
"args": ["/path/to/agent_mcp_task_orchestrator/dist/index.js"]
}
}
}Note: Storage automatically uses ~/.task-orchestrator/storage/ directory. No configuration needed.
Environment Variables (Optional)
TASK_ORCHESTRATOR_STORAGE_BACKEND: Storage backend type (jsonorsqlite, default:json)TASK_ORCHESTRATOR_LOG: Enable file logging for tool requests and LLM responses (trueto enable, default: disabled)TASK_ORCHESTRATOR_OUTPUT_DIR: Custom directory for activity logs (default:~/.task-orchestrator/output, only used whenTASK_ORCHESTRATOR_LOG=true)
Publishing to npm
For maintainers:
# Build and publish
npm run build
npm publishThe prepublishOnly script automatically builds before publishing.
๐ Windsurf Integration
To use Task Orchestrator MCP with Windsurf (Cascade):
Install globally:
npm install -g agent_mcp_task_orchestratorAdd to Windsurf MCP config: Edit
~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"task-orchestrator": {
"command": "agent_mcp_task_orchestrator"
}
}
}Restart Windsurf to pick up the new MCP server configuration.
Note: Storage automatically uses ~/.task-orchestrator/storage/ directory. No additional configuration needed.
๏ฟฝ๏ฟฝ๏ธ Available Tools
Task Management
create_tasks
Create one or more tasks with optional dependencies and parent tasks.
Parameters:
tasks(required): Array of task objects, each with:name(required): The name of the taskdescription(optional): Description of the taskdependencies(optional): Array of dependencies (string shorthand or RichDependency objects)String shorthand: Task ID, positional reference (task-1, task-2...), or task name
RichDependency object: Full dependency with type, onFailure, condition, url, timeoutMs, metadata
priority(optional): Task priority (higher = more important, affects execution order)order(optional): Order among siblings (for parent-child relationships)parentTaskId(optional): Parent task ID for creating subtasks. CRITICAL: Must be an actual existing task ID, NOT a positional reference. Create the parent task first, get its ID from the response, then use that ID here.metadata(optional): Additional metadata for the taskmaxRetries(optional): Maximum number of retry attempts for this taskdeduplication(optional): How to handle duplicate tasks (skip, reuse, error, none)
Important Notes:
Positional references (task-1, task-2, etc.) ONLY work for dependencies within the same batch
For parentTaskId, you MUST use actual existing task IDs - create the parent task first, get its ID from the response, then create subtasks using that ID
Do not use positional references for parentTaskId
Dependencies support rich types: hard (default), soft, conditional, external
update_task
Update an existing task.
Parameters:
id(required): The ID of the task to updatename(optional): New name for the taskdescription(optional): New descriptiondependencies(optional): New dependencies (string shorthand or RichDependency objects)priority(optional): Task priority (higher = more important)order(optional): Order among siblingsmetadata(optional): New metadata
delete_task
Delete a task by ID.
Parameters:
id(required): The ID of the task to delete
get_task
Get a specific task by ID.
Parameters:
id(required): The ID of the task to retrieve
list_tasks
List all tasks or filter by status.
Parameters:
status(optional): Filter by status ('pending', 'in_progress', 'completed', 'failed')
Task Execution
complete_task
Mark a task as completed and optionally provide a result. This is the main tool to use when you finish working on a task.
Parameters:
id(required): The ID of the task to completeresult(optional): The result of the task execution
fail_task
Mark a task as failed with an error message.
Parameters:
id(required): The ID of the task to failerror(required): The error message
start_task
Mark a task as in progress. Use this only when working with standalone tasks outside of workflows.
Parameters:
id(required): The ID of the task to start
reset_task
Reset a task back to pending status.
Parameters:
id(required): The ID of the task to reset
retry_task
Retry a failed task, incrementing retry count.
Parameters:
id(required): The ID of the task to retry
Note: Task will only be retried if it hasn't exceeded its maxRetries limit.
Dependency Management
add_dependency
Add a dependency to a task. Supports both string shorthand and RichDependency objects.
Parameters:
taskId(required): The ID of the task to add dependency todependency(required): Dependency to add (string shorthand or RichDependency object)
remove_dependency
Remove a dependency from a task.
Parameters:
taskId(required): The ID of the task to remove dependency fromdepTaskId(required): The dependency task ID to remove
update_dependency
Update an existing dependency on a task.
Parameters:
taskId(required): The ID of the task to update dependency fordepTaskId(required): The dependency task ID to updateupdates(optional): Partial updates to apply (type, onFailure, condition, url, timeoutMs, metadata)
move_task
Move a task to a new parent or change its order among siblings.
Parameters:
taskId(required): The ID of the task to movenewParentTaskId(optional): New parent task ID (null to remove parent)position(optional): Order position among siblings
get_next_tasks
Get tasks that are ready to execute (all dependencies completed).
can_execute
Check if a task can be executed based on its dependencies.
Parameters:
id(required): The ID of the task to check
Workflow Management
create_workflow
Create a workflow (group of tasks in sequence).
Parameters:
name(required): The name of the workflowtaskIds(required): Array of task IDs in the workflow
get_workflow
Get a workflow by ID.
Parameters:
id(required): The ID of the workflow to retrieve
list_workflows
List all workflows.
delete_workflow
Delete a workflow by ID.
Parameters:
id(required): The ID of the workflow to delete
Workflow Execution
start_workflow_execution
Start execution of a workflow, creating a workflow run.
Parameters:
workflowId(required): The ID of the workflow to execute
advance_workflow_run
Advance a workflow run to the next task.
Parameters:
runId(required): The ID of the workflow run to advance
get_workflow_run
Get a workflow run by ID.
Parameters:
runId(required): The ID of the workflow run to retrieve
list_workflow_runs
List all workflow runs.
get_next_workflow_tasks
Get tasks that are ready to execute within a specific workflow (dependency-aware).
Parameters:
workflowId(required): The ID of the workflow to get ready tasks for
Introspection Tools
get_dependency_graph
Get the dependency graph for a workflow. Returns nodes (tasks) and edges (dependencies).
Parameters:
workflowId(optional): Workflow ID to filter by
export_mermaid
Export the dependency graph as a Mermaid flowchart diagram. This tool generates an image that is displayed in the LLM chat agent.
Parameters:
workflowId(optional): Workflow ID to filter byformat(optional): Output format -mmd(text),png(image), orsvg(vector). Default:mmd
When to Use:
After creating or significantly changing a workflow with multiple tasks and dependencies
When the task structure is getting complex or hard to track
When the user asks to show the workflow or "visualize the tasks"
Before making major structural changes (to understand the current state)
When reviewing the critical path or blocked tasks visually
Best Practices:
Use
format: "png"in most cases for the best visual experience in the LLM chatProactively export as image when the workflow becomes non-trivial (more than 5-6 tasks or has several dependencies)
Do not ask the user "do you want me to export the graph?" โ just do it when it adds value
If the user says "show me the workflow", "visualize the tasks", "export as image", or "show the graph" โ immediately call
export_mermaidwithformat: "png"After exporting the image, provide a short textual summary of the current state if helpful
Example:
{
"workflowId": "workflow-123",
"format": "png"
}get_blocked_tasks
Get blocked tasks with their blocking dependencies.
Parameters:
workflowId(optional): Workflow ID to filter by
get_critical_path
Get the critical path for a workflow (longest path of dependencies).
Parameters:
workflowId(required): Workflow ID to analyze
Workflow Bundle Export/Import
export_workflow_bundle
Export a workflow as a portable JSON bundle containing the workflow, all related tasks (including subtasks), dependencies, and metadata. The bundle can be saved and imported in a new session to recreate the workflow structure.
Parameters:
workflowId(required): The ID of the workflow to exportincludeRuns(optional): Whether to include workflow run history (default: false)humanReadableOnly(optional): Export simplified human-readable view (default: false)
Returns:
A JSON bundle containing:
workflow: Workflow metadata (name, taskIds, version, tags, templateDescription)tasks: Array of all tasks in the workflow (including subtasks)version: Bundle version stringexportedAt: ISO timestamp when bundle was exportedtemplateName: Original workflow nametags: Optional tags from the workflownameToIdMap: Maps qualified names to task IDs for human-readable referencesidToNameMap: Maps task IDs to qualified names for reverse lookuphumanReadableOnly: Flag indicating simplified view
Name Enrichment:
The bundle includes hierarchical qualified names for tasks (e.g., "ParentTask/ChildTask") to make the exported bundle more readable while preserving all original IDs for traceability. Each task also includes a qualifiedName field in its metadata.
Usage Example:
{
"workflowId": "workflow-123"
}Example Bundle with Name Enrichment:
{
"workflow": {
"name": "CI Pipeline",
"taskIds": ["task-1", "task-2"],
"version": "1.0.0",
"tags": ["ci", "production"]
},
"tasks": [
{
"id": "task-1",
"name": "Build",
"metadata": {
"qualifiedName": "Build"
},
"dependencies": []
},
{
"id": "task-2",
"name": "Test",
"parentTaskId": "task-1",
"metadata": {
"qualifiedName": "Build/Test"
},
"dependencies": ["task-1"]
}
],
"version": "1.0.0",
"exportedAt": "2024-01-01T00:00:00.000Z",
"templateName": "CI Pipeline",
"nameToIdMap": {
"Build": "task-1",
"Build/Test": "task-2"
},
"idToNameMap": {
"task-1": "Build",
"task-2": "Build/Test"
}
}Best Practices:
Export workflows as templates for reuse across projects
Save bundles to version control for workflow documentation
Use tags to categorize workflow templates
Export before major refactoring to preserve workflow structure
Use qualified names in
nameToIdMapfor human-readable task referencesThe bundle is fully importable with all original IDs preserved
import_workflow_bundle
Import a workflow bundle to create a new workflow. The bundle should be a JSON object containing workflow, tasks, and metadata. All task IDs are remapped during import to avoid conflicts. Supports name prefixing, deduplication strategies, and name-based resolution.
Parameters:
bundle(required): The workflow bundle to import (JSON object with workflow, tasks, version, exportedAt, etc.)namePrefix(optional): Prefix to add to all task and workflow names (useful for avoiding name conflicts)deduplication(optional): Deduplication strategy for imported tasks (skip, reuse, error, none; default: none)nameRemapping(optional): Map of original task IDs to new task names for custom renaming during import
Returns:
newWorkflowId: ID of the newly created workflowtaskIdMap: Mapping from original task IDs to new task IDsWorkflow name and task count
Name-Based Resolution:
The import process supports both task IDs and qualified names in dependency references. If the bundle includes nameToIdMap, you can reference tasks by their hierarchical names (e.g., "ParentTask/ChildTask") instead of IDs. This makes manual bundle editing and customization easier.
Usage Example:
{
"bundle": {
"workflow": {
"id": "original-workflow-id",
"name": "CI Pipeline",
"taskIds": ["task-1", "task-2"],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"version": "1.0.0",
"tags": ["ci", "production"],
"templateDescription": "Standard CI/CD pipeline"
},
"tasks": [
{
"id": "task-1",
"name": "Build",
"status": "pending",
"dependencies": [],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
}
],
"version": "1.0.0",
"exportedAt": "2024-01-01T00:00:00.000Z",
"templateName": "CI Pipeline",
"tags": ["ci", "production"],
"nameToIdMap": {
"Build": "task-1"
}
},
"namePrefix": "Project A - ",
"deduplication": "none",
"nameRemapping": {
"task-1": "Custom Build Name"
}
}Best Practices:
Use
namePrefixwhen importing the same template multiple times to avoid name conflictsUse
deduplication: "skip"to avoid creating duplicate tasks if similar tasks already existUse
nameRemappingto customize task names during import for specific project needsReview the
taskIdMapto understand how IDs were remappedAfter import, use
start_workflow_executionto begin executing the imported workflowSave bundle files in a templates directory for easy reuse
The import process is backward compatible with bundles that don't include name maps
Workflow Template Lifecycle:
Export a working workflow as a template using
export_workflow_bundleSave the bundle JSON to a file or version control
Import the bundle in a new session using
import_workflow_bundleCustomize with
namePrefixand appropriate deduplication strategyExecute the imported workflow using
start_workflow_execution
Common Use Cases:
Workflow Templates: Create reusable workflow patterns (CI/CD, deployment, testing)
Cross-Project Sharing: Share workflows between different projects or teams
Backup/Restore: Save workflow state before major changes
Documentation: Use bundles as documentation of workflow structure
Testing: Import test workflows in isolated environments
System
get_stats
Get statistics about tasks and workflows.
clear_all
Clear all tasks and workflows.
save_state
Manually save the current state to storage.
get_version
Get the version information of this task orchestrator MCP server.
๐ Usage Example
Creating a Sequential Task Chain
Create initial tasks with no dependencies:
{
"name": "Install dependencies"
}Create dependent tasks using RichDependency:
{
"name": "Run tests",
"dependencies": ["task_1234567890_abc"]
}Or with rich dependency object:
{
"name": "Run tests",
"dependencies": [
{
"taskId": "task_1234567890_abc",
"type": "hard",
"onFailure": "block"
}
]
}Check which tasks can be executed: (Use
get_next_taskstool)Complete a task using complete_task:
{
"id": "task_1234567890_abc",
"result": {
"status": "success",
"duration": "30s"
}
}Check if dependent task can now be executed: (Use
can_executetool)
Creating a Workflow
Create multiple tasks with dependencies as needed
Create a workflow:
{
"name": "CI Pipeline",
"taskIds": ["task_1_id", "task_2_id", "task_3_id"]
}Dependency-Aware Workflow Orchestration
The agent_mcp_task_orchestrator supports true dependency-aware workflow execution that respects the full task dependency graph (not just linear execution). This enables parallel execution of independent tasks within a workflow.
Key Benefits
๐ Parallel Execution - Independent tasks can run simultaneously (e.g., frontend and backend builds)
๐ Dependency Graph - Full DAG support, not just linear sequences
โญ๏ธ Automatic Progression - System automatically finds newly unlocked tasks after dependencies complete
๐ State Tracking - Workflow runs track completed, active, and blocked tasks
๐ก๏ธ Error Handling - Failed tasks with retry limits are handled gracefully
๐ค Agent-Friendly - Clear responses showing exactly what tasks to work on next
โ Backward Compatible - Existing linear workflows continue to work seamlessly
๐ Logging
File logging is disabled by default. To enable logging of tool calls and LLM responses, set the TASK_ORCHESTRATOR_LOG=true environment variable.
When enabled, logs are written to the output directory (default: ~/.task-orchestrator/output/) and organized by date:
output/
โโโ task-orchestrator-log-2024-06-22.json
โโโ task-orchestrator-log-2024-06-23.json
โโโ ...Enable logging:
TASK_ORCHESTRATOR_LOG=true node dist/index.jsOr in your MCP client config:
{
"mcpServers": {
"task-orchestrator": {
"command": "node",
"args": ["/path/to/dist/index.js"],
"env": {
"TASK_ORCHESTRATOR_LOG": "true"
}
}
}
}Log Entry Types
Tool Request Logs (automatically logged):
timestamp: When the tool was calledtype: "tool_request"tool: Name of the toolarguments: Arguments passed to the toolresult: Result returned by the tool
LLM Response Logs (for debugging LLM โ Agent interactions):
timestamp: When the LLM response was loggedtype: "llm_response"content: Full text from LLM that suggested tool callstoolCalls: Array of tool calls suggested by the LLMrelatedTools: List of tool names extracted from tool calls
Logging LLM Responses for Debugging
To trace exactly what the LLM suggested that caused tool calls (e.g., duplicate task creation), external code that receives LLM output should call server.logLLMResponse() before tool execution:
import { TaskOrchestratorMCPServer } from './index.js';
const server = new TaskOrchestratorMCPServer();
// When you receive an LLM response with tool calls
const llmMessage = "I'll create tasks for the feature implementation...";
const toolCalls = [
{
function: {
name: "create_tasks",
arguments: { tasks: [...] }
}
}
];
// Log the LLM response before executing tools
await server.logLLMResponse(
llmMessage,
toolCalls
);
// Then proceed with tool execution...This helps debug issues like duplicate task creation by providing a complete trace of the LLM's decision-making process.
๐ ๏ธ Development
# Build
npm run build
# Watch mode
npm run dev
# Start server
npm start๐พ Storage
Tasks and workflows are stored in a JSON file at the path specified by SEQUENTIAL_STORAGE_PATH. The file contains:
{
"tasks": {
"task_id": {
"id": "task_id",
"name": "Task name",
"description": "Task description",
"status": "pending",
"dependencies": [],
"createdAt": "2024-06-22T10:00:00.000Z",
"updatedAt": "2024-06-22T10:00:00.000Z",
"result": null,
"error": null,
"metadata": {}
}
},
"workflows": {
"workflow_id": ["task_id_1", "task_id_2"]
}
}๐ License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HefnySco/agent_mcp_task_orchestrator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server