MCP TaskManager
The MCP TaskManager is a serverless task management system designed for AI assistants to handle complex multi-step workflows with built-in user approval mechanisms. With this server, you can:
Break down complex tasks into manageable sub-tasks using
request_planningTrack progress via
get_next_taskand progress tablesMark tasks as completed with
mark_task_doneRequire user approval for completed tasks and entire requests
Inspect task details and list all requests
Add, update, or delete tasks within existing requests
Persistently store task data using Cloudflare KV
Interact through a RESTful API compliant with the Model Context Protocol
Support cross-origin requests (CORS) for web integration
Click on "Deploy 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., "@MCP TaskManager plan a blog post about AI ethics with research, outline, and writing tasks"
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.
MCP Task Manager
A Model Context Protocol (MCP) server for comprehensive task management, deployed as a Cloudflare Worker. This open-source project enables AI assistants to plan, track, and manage complex multi-step requests efficiently with persistent storage using Cloudflare KV.
π Features
Request Planning: Break down complex requests into manageable tasks
Task Management: Create, update, delete, and track task progress
Approval Workflow: Built-in approval system for task and request completion
Progress Tracking: Visual progress tables and detailed task information
Persistent Storage: Uses Cloudflare KV for reliable data persistence
Serverless Architecture: Deployed as a Cloudflare Worker for global availability
RESTful API: HTTP endpoints for easy integration with any application
CORS Support: Cross-origin requests enabled for web applications
Related MCP server: MCP Development Server
π¦ Deployment
Prerequisites
Cloudflare account (free tier works)
Wrangler CLI installed
Node.js 18+ and npm/pnpm/yarn
Git for cloning the repository
Quick Start
Clone and setup the repository
git clone https://github.com/Rudra-ravi/mcp-taskmanager.git cd mcp-taskmanager npm installLogin to Cloudflare
npx wrangler loginThis will open your browser to authenticate with Cloudflare.
Create KV namespace
npx wrangler kv namespace create "TASKMANAGER_KV"Copy the namespace ID from the output.
Update configuration Edit
wrangler.tomland replace the KV namespace ID:[[kv_namespaces]] binding = "TASKMANAGER_KV" id = "your-new-kv-namespace-id-here"Build and deploy
npm run build npx wrangler deploy
Your MCP Task Manager will be deployed and accessible at:
https://mcp-taskmanager.your-subdomain.workers.dev
Advanced Configuration
Custom Worker Name
To deploy with a custom name, update wrangler.toml:
name = "my-custom-taskmanager" # Change this to your preferred name
main = "worker.ts"
compatibility_date = "2024-03-12"
[build]
command = "npm run build"
[[kv_namespaces]]
binding = "TASKMANAGER_KV"
id = "your-kv-namespace-id-here"Environment Variables
For different environments (development, staging, production):
[env.staging]
name = "mcp-taskmanager-staging"
[[env.staging.kv_namespaces]]
binding = "TASKMANAGER_KV"
id = "staging-kv-namespace-id"
[env.production]
name = "mcp-taskmanager-prod"
[[env.production.kv_namespaces]]
binding = "TASKMANAGER_KV"
id = "production-kv-namespace-id"Deploy to specific environments:
npx wrangler deploy --env staging
npx wrangler deploy --env productionπ§ Usage
API Endpoints
The deployed worker provides two main endpoints:
POST /list-tools- Get available MCP toolsPOST /call-tool- Execute MCP tool functions
Testing Your Deployment
After deployment, test your worker with curl:
# Replace with your actual worker URL
WORKER_URL="https://mcp-taskmanager.your-subdomain.workers.dev"
# Test list tools
curl -X POST $WORKER_URL/list-tools \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'
# Test creating a request
curl -X POST $WORKER_URL/call-tool \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "request_planning",
"arguments": {
"originalRequest": "Test deployment",
"tasks": [{"title": "Test task", "description": "Verify deployment works"}]
}
}
}'Available Tools
π Core Task Management
request_planning- Register a new user request and plan its associated tasksget_next_task- Get the next pending task for a requestmark_task_done- Mark a task as completed with optional detailsapprove_task_completion- Approve a completed taskapprove_request_completion- Approve the completion of an entire request
βοΈ Task Operations
add_tasks_to_request- Add new tasks to an existing requestupdate_task- Update task title or description (only for pending tasks)delete_task- Remove a task from a requestopen_task_details- Get detailed information about a specific task
π Information & Monitoring
list_requests- List all requests with their current status and progress
Example API Calls
List Available Tools
curl -X POST https://your-worker.your-subdomain.workers.dev/list-tools \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}'Plan a New Request
curl -X POST https://your-worker.your-subdomain.workers.dev/call-tool \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "request_planning",
"arguments": {
"originalRequest": "Build a web application for task management",
"splitDetails": "Breaking down into frontend, backend, and deployment tasks",
"tasks": [
{
"title": "Setup React frontend",
"description": "Initialize React app with TypeScript and essential dependencies"
},
{
"title": "Create backend API",
"description": "Build REST API with Node.js and Express"
},
{
"title": "Deploy application",
"description": "Deploy to cloud platform with CI/CD pipeline"
}
]
}
}
}'π Data Model
Task Structure
interface Task {
id: string; // Unique task identifier (e.g., "task-1")
title: string; // Task title
description: string; // Detailed task description
done: boolean; // Whether task is marked as done
approved: boolean; // Whether task completion is approved
completedDetails: string; // Details provided when marking task as done
}Request Structure
interface RequestEntry {
requestId: string; // Unique request identifier (e.g., "req-1")
originalRequest: string; // Original user request description
splitDetails: string; // Details about how request was split into tasks
tasks: Task[]; // Array of tasks for this request
completed: boolean; // Whether entire request is completed
}Task Status Flow
β Pending β β³ Done (awaiting approval) β β
ApprovedTasks can only be updated when in "Pending" status. Once marked as done or approved, they become read-only.
π οΈ Development
Local Development
# Install dependencies
npm install
# Build the project
npm run build
# Start local development server (with remote KV)
npx wrangler dev
# Start local development server (with local KV for testing)
npx wrangler dev --local
# Deploy to preview environment
npx wrangler deploy --env previewTesting
# Test the build
npm run build
# Test deployment (dry run - shows what would be deployed)
npx wrangler deploy --dry-run
# Run local tests
npm test # If you add tests
# Test with local KV storage
npx wrangler dev --localDebugging
View real-time logs:
# Tail logs from deployed worker
npx wrangler tail
# Tail logs with filtering
npx wrangler tail --format prettyKV Data Management
# List all keys in your KV namespace
npx wrangler kv:key list --binding TASKMANAGER_KV
# Get a specific key value
npx wrangler kv:key get "tasks" --binding TASKMANAGER_KV
# Delete all data (be careful!)
npx wrangler kv:key delete "tasks" --binding TASKMANAGER_KVποΈ Architecture
The MCP Task Manager is built as a Cloudflare Worker with the following components:
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β AI Assistant βββββΆβ Cloudflare βββββΆβ Cloudflare KV β
β (Claude, etc) β β Worker β β Storage β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β
βΌ
ββββββββββββββββββββ
β TaskManagerServerβ
β (Business Logic) β
ββββββββββββββββββββComponents
TaskManagerServer Class: Core business logic for task management
Worker Interface: HTTP endpoints for MCP protocol communication
Cloudflare KV Storage: Persistent data storage for tasks and requests
MCP Protocol: Standard Model Context Protocol for AI assistant integration
CORS Support: Enables web application integration
Benefits
Global Edge Deployment: Low latency worldwide via Cloudflare's network
Serverless: No server management, automatic scaling
Persistent Storage: Data survives across deployments
Cost Effective: Cloudflare's generous free tier
High Availability: Built-in redundancy and failover
π Monitoring and Logs
Cloudflare Dashboard
View logs and metrics in the Cloudflare Dashboard:
Go to Cloudflare Dashboard
Navigate to Workers & Pages
Select your
mcp-taskmanagerworkerView logs, metrics, and analytics
Real-time Monitoring
# View live logs
npx wrangler tail
# View formatted logs
npx wrangler tail --format pretty
# Filter logs by status
npx wrangler tail --status errorKey Metrics to Monitor
Request Volume: Number of API calls
Response Times: Latency of operations
Error Rates: Failed requests and their causes
KV Operations: Storage read/write performance
Memory Usage: Worker memory consumption
Troubleshooting Common Issues
Issue | Cause | Solution |
500 Internal Server Error | KV namespace not found | Check KV namespace ID in wrangler.toml |
CORS errors | Missing headers | Verify CORS headers in worker.ts |
Task not found | Invalid task/request ID | Check ID format and existence |
Build failures | TypeScript errors | Run |
π€ Contributing
We welcome contributions! Here's how to get started:
Development Setup
Fork the repository
Clone your fork:
git clone https://github.com/your-username/mcp-taskmanager.gitCreate a feature branch:
git checkout -b feature/amazing-featureInstall dependencies:
npm installMake your changes
Test locally:
npx wrangler dev --localBuild and test:
npm run build
Contribution Guidelines
Follow TypeScript best practices
Add tests for new features
Update documentation for API changes
Use conventional commit messages
Ensure all tests pass before submitting
Pull Request Process
Commit your changes:
git commit -m 'Add amazing feature'Push to your branch:
git push origin feature/amazing-featureOpen a Pull Request with:
Clear description of changes
Screenshots/examples if applicable
Reference to any related issues
Areas for Contribution
π Bug fixes and improvements
π Documentation enhancements
β¨ New MCP tools and features
π§ͺ Test coverage improvements
License
This project is licensed under the MIT License - see the LICENSE file for details.
π¬ Support
Getting Help
GitHub Issues: Report bugs or request features
Discussions: Ask questions and share ideas
Documentation: Check this README and inline code comments
Community Resources
MCP Documentation: Model Context Protocol
Cloudflare Workers Docs: Learn more about Workers
Reporting Issues
When reporting bugs, please include:
Your Cloudflare Worker URL
Steps to reproduce the issue
Expected vs actual behavior
Error messages or logs
Browser/client information
π Acknowledgments
Built with the Model Context Protocol SDK
Powered by Cloudflare Workers
Designed for seamless AI assistant integration
Inspired by the need for better task management in AI workflows
π License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ for the AI community
Deploy your own instance and start managing tasks efficiently with AI assistants!
Available Tools
10 toolsadd_tasks_to_requestC
Add new tasks to an existing request. This allows extending a request with additional tasks.
A progress table will be displayed showing all tasks including the newly added ones.
Inputs: requestId (required), tasks (required).
approve_request_completionA
After all tasks are done and approved, this tool finalizes the entire request. The user must call this to confirm that the request is fully completed.
A progress table showing the final status of all tasks will be displayed before requesting final approval.
If not approved, the user can add new tasks using 'request_planning' and continue the process.
Inputs: requestId (required).
approve_task_completionA
Once the assistant has marked a task as done using 'mark_task_done', the user must call this tool to approve that the task is genuinely completed. Only after this approval can you proceed to 'get_next_task' to move on.
A progress table will be displayed before requesting approval, showing the current status of all tasks.
If the user does not approve, do not call 'get_next_task'. Instead, the user may request changes, or even re-plan tasks by using 'request_planning' again.
Inputs: requestId (required), taskId (required).
delete_taskB
Delete a specific task from a request. Only uncompleted tasks can be deleted.
A progress table will be displayed showing the remaining tasks after deletion.
Inputs: requestId (required), taskId (required).
get_next_taskA
Given a 'requestId', return the next pending task (not done yet). If all tasks are completed, it will indicate that no more tasks are left and that you must wait for the request completion approval.
A progress table showing the current status of all tasks will be displayed with each response.
If the same task is returned again or if no new task is provided after a task was marked as done but not yet approved, you MUST NOT proceed. In such a scenario, you must prompt the user for approval via 'approve_task_completion' before calling 'get_next_task' again. Do not skip the user's approval step. In other words:
After calling 'mark_task_done', do not call 'get_next_task' again until 'approve_task_completion' is called by the user.
If 'get_next_task' returns 'all_tasks_done', it means all tasks have been completed. At this point, you must not start a new request or do anything else until the user decides to 'approve_request_completion' or possibly add more tasks via 'request_planning'.
Inputs: requestId (required).
list_requestsB
List all requests with their basic information and summary of tasks. This provides a quick overview of all requests in the system.
Inputs: no named parameters.
mark_task_doneA
Mark a given task as done after you've completed it. Provide 'requestId' and 'taskId', and optionally 'completedDetails'.
After marking a task as done, a progress table will be displayed showing the updated status of all tasks.
After this, DO NOT proceed to 'get_next_task' again until the user has explicitly approved this completed task using 'approve_task_completion'.
Inputs: requestId (required), taskId (required), completedDetails.
open_task_detailsB
Get details of a specific task by 'taskId'. This is for inspecting task information at any point.
Inputs: taskId (required).
request_planningA
Register a new user request and plan its associated tasks. You must provide 'originalRequest' and 'tasks', and optionally 'splitDetails'.
This tool initiates a new workflow for handling a user's request. The workflow is as follows:
Use 'request_planning' to register a request and its tasks.
After adding tasks, you MUST use 'get_next_task' to retrieve the first task. A progress table will be displayed.
Use 'get_next_task' to retrieve the next uncompleted task.
IMPORTANT: After marking a task as done, the assistant MUST NOT proceed to another task without the user's approval. The user must explicitly approve the completed task using 'approve_task_completion'. A progress table will be displayed before each approval request.
Once a task is approved, you can proceed to 'get_next_task' again to fetch the next pending task.
Repeat this cycle until all tasks are done.
After all tasks are completed (and approved), 'get_next_task' will indicate that all tasks are done and that the request awaits approval for full completion.
The user must then approve the entire request's completion using 'approve_request_completion'. If the user does not approve and wants more tasks, you can again use 'request_planning' to add new tasks and continue the cycle.
The critical point is to always wait for user approval after completing each task and after all tasks are done, wait for request completion approval. Do not proceed automatically.
Inputs: originalRequest (required), tasks (required), splitDetails.
update_taskB
Update an existing task's title and/or description. Only uncompleted tasks can be updated.
A progress table will be displayed showing the updated task information.
Inputs: requestId (required), taskId (required), title, description.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose with no overlap: request_planning initiates workflows, add_tasks_to_request extends them, get_next_task fetches pending tasks, mark_task_done and approve_task_completion handle task completion steps, delete_task and update_task modify tasks, open_task_details inspects tasks, list_requests provides overviews, and approve_request_completion finalizes requests. The descriptions reinforce these boundaries, making misselection unlikely.
All tool names follow a consistent verb_noun pattern with underscores, such as add_tasks_to_request, approve_request_completion, and get_next_task. There are no deviations in style or convention, making the naming predictable and easy to parse for an agent.
With 10 tools, the set is well-scoped for a task management domain, covering the full lifecycle from planning to completion. Each tool serves a specific role in the workflow, and there are no extraneous or missing tools that would suggest over- or under-engineering.
The tool surface provides complete CRUD and lifecycle coverage for task management: request_planning (create), list_requests (read), update_task (update), delete_task (delete), along with workflow-specific tools like get_next_task, mark_task_done, approve_task_completion, and approve_request_completion. There are no obvious gaps, and the descriptions outline a coherent end-to-end process.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.
Hosted MCP server for task-first delegation to remote workstations and workers.
MCP server for generating rough-draft project plans from natural-language prompts.
Related MCP Servers
- AlicenseAqualityDmaintenanceModel Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.10689 npm216MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude to manage software development projects with complete context awareness and code execution through Docker environments.4-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for Claude Desktop that provides structured memory management across chat sessions, allowing Claude to maintain context and build a knowledge base within project directories.7MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows integration with Claude Desktop by creating and managing custom tools that can be executed through the MCP framework.-
Appeared in Searches
- Codebeamer application lifecycle management platform
- An MCP for managing lifestyle, coordinating daily routines, exercise, and study tasks
- Todo List for Remote Management of MCP
- A system for task management and integration with AI editors using multiple LLMs
- Understanding Batch Processing in Computing or Operations