
Task Manager (Go)
from gosvig123
An intelligent task and project management server with LLM-driven complexity analysis and smart subtask creation, using file-based markdown storage.
๐ Task Manager MCP Server (Go)
A powerful Go implementation of the Model Context Protocol (MCP) server for intelligent task and project management. This server integrates seamlessly with LLM applications to provide advanced task management capabilities with automatic complexity analysis and smart subtask creation.
โจ Features
๐ Core Task Management
- Project-Based Organization: Create and manage multiple projects with markdown-based task files
- Hierarchical Tasks: Support for tasks with subtasks and dependencies
- Status Tracking: Comprehensive status management (todo, in_progress, done, blocked)
- Smart Navigation: Get next uncompleted tasks automatically
- File-Based Storage: Human-readable markdown files for easy version control
๐ง Enhanced Intelligence (LLM-Driven)
- Complexity Analysis: LLM evaluates task complexity and suggests breakdowns
- Smart Subtask Creation: Automatically break down complex tasks (recursive up to 3 levels)
- Choice Management: Handle multiple implementation approaches with structured user input
- Decision Tracking: Remember and track user decisions in project files
๐ท๏ธ Rich Metadata
- Categories: [MVP], [AI], [UX], [INFRA] for organized task classification
- Priorities: P0 (Critical), P1 (High), P2 (Medium), P3 (Low)
- Complexity Levels: Low, Medium, High with estimated hours
- Dependencies: Track task relationships and prerequisites
๐ ๏ธ Available MCP Tools
๐ Project Management
-
create_task_file- Create new project task filesParameters: project_name (string) Returns: Confirmation with file path -
list_projects- List all available projectsParameters: None Returns: Array of project names
โ Task Operations
-
add_task- Add tasks with descriptions and subtasksParameters: - project_name (string) - title (string) - description (string) - subtasks (array, optional) - batch_mode (boolean, optional) Returns: Confirmation message -
update_task_status- Update task/subtask statusParameters: - project_name (string) - task_title (string) - subtask_title (string, optional) - status (enum: todo|in_progress|done|blocked) Returns: Status update confirmation -
get_next_task- Get next uncompleted taskParameters: project_name (string) Returns: JSON with task and subtask details
๐ง Advanced Features (Coming Soon)
parse_prd- Convert PRDs into structured tasksexpand_task- Break down tasks into subtasksestimate_task_complexity- LLM-based complexity analysissuggest_next_actions- AI-powered suggestionsget_task_dependencies- Track task relationshipsgenerate_task_file- Generate file templates
Categories
- [MVP] Core functionality tasks
- [AI] AI-related features
- [UX] User experience improvements
- [INFRA] Infrastructure and setup
Priority Levels
- P0: Blocker/Critical
- P1: High Priority
- P2: Medium Priority
- P3: Low Priority
Task 1: [MVP] User Authentication (P0)
Implement secure user login/logout system with session management
Dependencies:
- Task 2
Complexity: high
Estimated hours: 16
Subtasks:
- Set up auth middleware
- Create login endpoints
- Add password hashing
- Implement session management
## ๐๏ธ Project Structure
mcp-task-manager-go/ โโโ main.go # Entry point โโโ cmd/ โ โโโ test/ # Test utilities โโโ internal/ โ โโโ server/ # MCP server implementation โ โ โโโ server.go # Tool handlers and server setup โ โโโ task/ # Task management core โ โโโ models.go # Data structures โ โโโ manager.go # File operations โ โโโ markdown.go # Markdown processing โ โโโ validation.go # Input validation โโโ tasks/ # Task files storage (created at runtime) โโโ go.mod # Go module definition โโโ README.md # This file
## ๐ง Enhanced Rules System
### Automatic Subtask Creation
The system intelligently breaks down complex tasks:
1. **LLM Complexity Analysis**: The calling LLM evaluates task descriptions
2. **Automatic Breakdown**: High complexity tasks get broken into manageable subtasks
3. **Recursive Processing**: Subtasks are also analyzed (up to 3 levels deep)
4. **Smart Thresholds**: Configurable complexity detection
### Choice Management
Handle multiple implementation approaches:
1. **Approach Detection**: LLM identifies when multiple approaches exist
2. **Structured Choices**: Present options in a clear format
3. **Decision Tracking**: Store user selections in project files
4. **Context Preservation**: Remember decisions for future reference
### Example Choice Flow
```markdown
**Choice:** Choose authentication method
Options:
- [ ] JWT tokens
- [x] Session-based auth
- [ ] OAuth integration
Reasoning: Session-based auth is simpler for MVP and provides better security for this use case.๐ง Development
Building
# Build for current platform
go build -o task-manager-go main.go
# Build for different platforms
GOOS=linux GOARCH=amd64 go build -o task-manager-go-linux main.go
GOOS=windows GOARCH=amd64 go build -o task-manager-go.exe main.goTesting
# Run basic functionality test
go run cmd/test/main.go
# Run all tests (when implemented)
go test ./...
# Test with a real MCP client
./task-manager-goContributing
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes and test thoroughly
- Commit with clear messages:
git commit -m "Add feature X" - Push and create a Pull Request
๐ Roadmap
- Core Task Management - Basic CRUD operations
- MCP Server Integration - Stdio and SSE transports
- Markdown Storage - Human-readable task files
- PRD Parsing - Convert requirements to tasks
- Advanced Tools - Complexity analysis, suggestions
- Choice Workflows - Interactive decision making
- Dependencies - Task relationship management
- Templates - File generation from tasks
๐ License
MIT License - see LICENSE file for details.
๐ค Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: This README and inline code comments
Made with โค๏ธ for the MCP ecosystem
๐ Quick Start
Prerequisites
- Go 1.21+: Download Go
- Git: For cloning the repository
- MCP Client: Any MCP-compatible client (Claude Desktop, etc.)
Installation
# Clone the repository
git clone https://github.com/gosvig123/mcp-task-manager-go.git
cd mcp-task-manager-go
# Install dependencies
go mod tidy
# Build the server
go build -o task-manager-go main.go
# Test the installation
go run cmd/test/main.goConfiguration
Create a .env file (optional):
# Transport type (stdio or sse)
TRANSPORT=stdio
# For SSE transport (web-based clients)
HOST=0.0.0.0
PORT=8050
# Task storage directory (relative to project root)
TASKS_DIR=./tasks
# Task management settings
MAX_RECURSION_DEPTH=3
AUTO_SUBTASK_CREATION=true๐ง Usage
Running the Server
Method 1: Direct Execution (Stdio)
# Run with stdio transport (default)
./task-manager-go
# Or with Go run
go run main.goMethod 2: SSE Transport (Web-based)
# Set environment variable and run
TRANSPORT=sse ./task-manager-go
# Or export and run
export TRANSPORT=sse
./task-manager-go๐ MCP Client Integration
Claude Desktop Configuration
Add to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"task-manager-go": {
"command": "/path/to/your/task-manager-go",
"env": {
"TRANSPORT": "stdio",
"TASKS_DIR": "tasks"
}
}
}
}Alternative: Using Go Run
{
"mcpServers": {
"task-manager-go": {
"command": "go",
"args": ["run", "main.go"],
"cwd": "/path/to/mcp-task-manager-go",
"env": {
"TRANSPORT": "stdio"
}
}
}
}SSE Configuration (for web clients)
{
"mcpServers": {
"task-manager-go": {
"transport": "sse",
"url": "http://localhost:8050/sse"
}
}
}๐ Usage Examples
Basic Workflow
-
Create a new project:
LLM: "Create a task file for my web app project" โ Calls: create_task_file(project_name="web-app") -
Add tasks with complexity analysis:
LLM: "Add a task to implement user authentication" โ LLM analyzes complexity โ High complexity detected โ Calls: add_task(project_name="web-app", title="User Authentication", description="Implement secure user login/logout system", subtasks=["Set up auth middleware", "Create login endpoints", ...]) -
Track progress:
LLM: "What should I work on next?" โ Calls: get_next_task(project_name="web-app") โ Returns: {"task": "User Authentication", "subtask": "Set up auth middleware"} -
Update status:
LLM: "Mark the auth middleware as completed" โ Calls: update_task_status(project_name="web-app", task_title="User Authentication", subtask_title="Set up auth middleware", status="done")
Example Task File Output
# Project TasksNo common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MITโ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ