Task Orchestrator Server
БесплатноНе проверенTask Orchestrator MCP is a task orchestration server that helps AI agents execute complex workflows with proper dependency management. It enables structured tas
Описание
Task Orchestrator MCP is a task orchestration server that helps AI agents execute complex workflows with proper dependency management. It enables structured task execution, automatic dependency resolution, retry logic, and persistent storage for tracking progress over time.
README
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
🚀 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 children - Subtasks 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_orchestrator
Then 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 build
Then 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 publish
The prepublishOnly script automatically builds before publishing.
🌊 Windsurf Integration
To use Task Orchestrator MCP with Windsurf (Cascade):
- Install globally:
npm install -g agent_mcp_task_orchestrator
- Add 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 chat - Proactively 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 references - The 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 IDs- Workflow 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 conflicts - Use
deduplication: "skip"to avoid creating duplicate tasks if similar tasks already exist - Use
nameRemappingto customize task names during import for specific project needs - Review the
taskIdMapto understand how IDs were remapped - After import, use
start_workflow_executionto begin executing the imported workflow - Save 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_bundle - Save the bundle JSON to a file or version control
- Import the bundle in a new session using
import_workflow_bundle - Customize with
namePrefixand appropriate deduplication strategy - Execute 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.js
Or 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
Установка Task Orchestrator Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/HefnySco/agent_mcp_task_orchestratorFAQ
Task Orchestrator Server MCP бесплатный?
Да, Task Orchestrator Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Task Orchestrator Server?
Нет, Task Orchestrator Server работает без API-ключей и переменных окружения.
Task Orchestrator Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Task Orchestrator Server в Claude Desktop, Claude Code или Cursor?
Открой Task Orchestrator Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Notion
Read and write pages in your workspace
автор: NotionLinear
Issues, cycles, triage — from Claude
автор: LinearGoogle Drive
Search and read your Drive files
автор: Googlemindsdb/mindsdb
Connect and unify data across various platforms and databases with [MindsDB as a single MCP server](https://docs.mindsdb.com/mcp/overview).
автор: mindsdbCompare Task Orchestrator Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории productivity
