Built on Node.js 18+ runtime environment for server operation, specified as a prerequisite for development.
Uses pnpm as the package manager for dependency management and project scripts, required for setup and development.
Implemented using TypeScript for type safety, with API parameters and responses defined as TypeScript interfaces.
Task Orchestrator
A Model Context Protocol (MCP) server for task orchestration and management. This tool helps break down goals into manageable tasks and track their progress.
How to use
Ideally, the LLM should be able to understand when this MCP tool should be used. But as a sample prompt, something like this can possibly work
"Create a new development goal for me. The goal is to 'Implement user authentication' and it's for the 'my-web-app' repository."
LEMME KNOW of any issues you face in the 'discussions' tab.
Features
- Create and manage goals
- Break down goals into hierarchical tasks
- Track task completion status
- Support for subtasks and dependency management between parent task and subtasks
- Persistent storage using LokiDB
Roadmap
- Complex task/goal inter-dependency orchestration
- Goal deletion
- Completion dispositions
- UI for visualization of progress
API Reference
Task ID Naming Convention
Task IDs use a dot-notation (e.g., "1", "1.1", "1.1.1") where each segment represents a level in the hierarchy.
- For each new goal, top-level task IDs start with "1" and increment sequentially (e.g., "1", "2", "3").
- Subtasks have IDs formed by appending a new segment to their parent's ID (e.g., "1.1" is a subtask of "1").
- The combination of
goalId
andtaskId
is guaranteed to be unique.
Tools
The server provides the following tools (based on build/index.js
):
create_goal
- Create a new goal
- Parameters:
- Sample Input:
- Returns:
{ goalId: number }
add_tasks
- Add multiple tasks to a goal. Tasks can be provided in a hierarchical structure. For tasks that are children of existing tasks, use the
parentId
field. The operation is transactional: either all tasks in the batch succeed, or the entire operation fails. - Parameters:
- Sample Input:
- Returns:
HierarchicalTaskResponse[]
.HierarchicalTaskResponse
objects are simplified and do not includecreatedAt
,updatedAt
, orparentId
.
- Add multiple tasks to a goal. Tasks can be provided in a hierarchical structure. For tasks that are children of existing tasks, use the
remove_tasks
- Soft-delete multiple tasks from a goal. Tasks are marked as deleted but remain in the system. By default, a parent task with subtasks cannot be soft-deleted without explicitly deleting its children. Soft-deleted tasks are excluded by default from
get_tasks
results unlessincludeDeletedTasks
is set to true. - Parameters:
- Sample Input (without deleting children):
- Sample Input (with deleting children):
- Returns:
{ removedTasks: TaskResponse[], completedParents: TaskResponse[] }
.TaskResponse
objects are simplified and do not includecreatedAt
,updatedAt
, orparentId
.
- Soft-delete multiple tasks from a goal. Tasks are marked as deleted but remain in the system. By default, a parent task with subtasks cannot be soft-deleted without explicitly deleting its children. Soft-deleted tasks are excluded by default from
get_tasks
- Get tasks for a goal. Task IDs use a dot-notation (e.g., "1", "1.1", "1.1.1"). When
includeSubtasks
is specified, responses will return hierarchical task objects. Otherwise, simplified task objects withoutcreatedAt
,updatedAt
, orparentId
will be returned. - Parameters:
- Sample Input:
- Returns:
TaskResponse[]
.TaskResponse
objects are simplified and do not includecreatedAt
,updatedAt
, orparentId
.
- Get tasks for a goal. Task IDs use a dot-notation (e.g., "1", "1.1", "1.1.1"). When
complete_task_status
- Mark tasks as complete. By default, a parent task cannot be marked complete if it has incomplete child tasks.
- Parameters:
- Sample Input (without completing children):
- Sample Input (with completing children):
- Returns:
TaskResponse[]
.TaskResponse
objects are simplified and do not includecreatedAt
,updatedAt
, orparentId
.
Usage Examples
Creating a Goal and Tasks
Managing Task Status
Removing Tasks
Development
Prerequisites
- Node.js 18+
- pnpm
Setup
- Install dependencies:
- Build the project:
- Run tests:
Project Structure
src/
- Source codeindex.ts
- Main server implementationstorage.ts
- Data persistence layertypes.ts
- TypeScript type definitionsprompts.ts
- AI prompt templates__tests__/
- Test files
License
MIT
Related MCP Servers
- GoMIT License
- RustMIT License
- TypeScript
- PythonMIT License