ATLAS (Adaptive Task & Logic Automation System) is a high-performance Model Context Protocol server designed for LLMs to manage complex task hierarchies. Built with TypeScript and featuring ACID-compliant storage, efficient task tracking, and intelligent template management, ATLAS provides LLM Agents task management through a clean, flexible tool interface.
- Overview
- Features
- Installation
- Configuration
- Templates
- Task Structure
- Tools
- Resources
- Best Practices
- Contributing
- License
ATLAS implements the Model Context Protocol (MCP), enabling standardized communication between LLMs and external systems through:
- Clients: Claude Desktop, IDEs, and other MCP-compatible clients
- Servers: Tools and resources for task management and automation
- LLM Agents: AI models that leverage the server's task management capabilities
Key capabilities:
- Hierarchical Task Organization: Intuitive path-based structure with automatic relationship management
- Task State Management: Status monitoring and progress tracking
- Smart Templates: Pre-built and customizable templates for common workflows
- Enterprise Features: ACID compliance, connection pooling, automatic maintenance
- Performance Focus: Optimized caching, batch operations, and health monitoring
Core system architecture:
flowchart TB
subgraph API["API Layer"]
direction LR
MCP["MCP Protocol"]
Val["Validation"]
Rate["Rate Limiting"]
MCP --> Val --> Rate
end
subgraph Core["Core Services"]
direction LR
Task["Task Store"]
Event["Event System"]
Template["Template Engine"]
Task <--> Event
Event <--> Template
Task <-.-> Template
end
subgraph Storage["Storage Layer"]
direction LR
SQL["SQLite + WAL"]
Pool["Connection Pooling"]
SQL <--> Pool
end
Rate --> Task
Rate --> Template
Task --> SQL
Template --> SQL
classDef layer fill:#2d3748,stroke:#4299e1,stroke-width:3px,rx:5,color:#fff
classDef component fill:#1a202c,stroke:#a0aec0,stroke-width:2px,rx:3,color:#fff
classDef api fill:#3182ce,stroke:#90cdf4,stroke-width:2px,rx:3,color:#fff
classDef core fill:#319795,stroke:#81e6d9,stroke-width:2px,rx:3,color:#fff
classDef storage fill:#2f855a,stroke:#9ae6b4,stroke-width:2px,rx:3,color:#fff
class API,Core,Storage layer
class MCP,Val,Rate api
class Task,Event,Template core
class SQL,Pool storage
Core Components:
- Storage Layer: ACID-compliant SQLite with WAL and connection pooling
- Task Layer: Validation, relationships, and dependency management
- Event System: Health monitoring and circuit breakers
- Template Engine: Inheritance and variable interpolation
- Hierarchical Organization: Path-based structure with automatic parent path determination
- Rich Metadata: Flexible schema for requirements, progress, and documentation
- Status Tracking: State machine with strict transition rules and dependency validation
- Smart Templates: Pre-built patterns with variable interpolation
- Contextual Notes: Automatic tool-specific guidance and best practices
- Cascade Operations: Flexible deletion strategies for hierarchical task management
- Enterprise Storage: SQLite with WAL and ACID compliance
- Automated Backups: Configurable backup schedules with compression
- Optimized Operations: Batch processing and automatic maintenance
- Health Monitoring: System metrics and automatic recovery
- Resource Management: Memory monitoring and connection pooling
- Path Validation:
- Automatic parent path determination
- Format verification and sanitization
- Depth and length constraints
- Character set restrictions
- Dependency Management:
- Strict transition validation
- Automatic dependency blocking
- Cycle detection
- Parent-child integrity
- Schema Enforcement:
- Type validation with Zod
- Size constraints
- Required field checks
- Custom validation rules
- Status Rules:
- State machine transitions
- Dependency-aware updates
- Automatic status propagation
- Blocking state management
- Status Monitoring: Efficient task state tracking
- Progress Metrics: Completion rates and status distribution
- Dependency Tracking: Relationship and blocking status monitoring
- Performance Insights: Resource tracking and bottleneck detection
- Automated Scheduling: Configurable backup intervals with retention policies
- Compression Support: Efficient storage with optional compression
- Point-in-Time Recovery: Maintain multiple backup points for recovery
- Backup Validation: Automatic integrity checks of backup files
- Flexible Storage: Configurable backup location and naming conventions
- Secure Operations: Atomic backup operations with WAL mode support
- Monitoring: Backup status tracking and error reporting
(Recommended) You can install ATLAS MCP Server directly using npm:
npm i atlas-mcp-server
(Manual) Or install from source:
- Clone the repository:
git clone https://github.com/cyanheads/atlas-mcp-server.git
cd atlas-mcp-server
- Install dependencies:
npm install
- Build the project:
npm run build
ATLAS uses a robust build system with several key components:
-
Build Scripts: Located in
scripts/
directory:build-utils.js
: Core utilities for build operationsplatform-utils.js
: Platform-specific utilities for build scriptspostinstall.js
: Post-installation setupprestart.js
: Pre-start validationset-build-permissions.js
: Build file permission management
-
Platform Utilities:
- Build-time: Simplified version in
scripts/platform-utils.js
- Runtime: Full TypeScript implementation in
src/utils/platform-utils.ts
- Build-time: Simplified version in
-
NPM Scripts:
npm run build # TypeScript compilation + permission setup npm run clean # Remove build artifacts npm run dev # Development mode with watch npm run tree # Generate directory structure
The build system ensures proper setup across different platforms (Windows, macOS, Linux) while maintaining security through appropriate file permissions and validation.
Add to your MCP client settings:
{
"mcpServers": {
"atlas": {
"command": "node",
"args": ["/path/to/atlas-mcp-server/build/index.js"],
"env": {
// Storage Configuration
"ATLAS_STORAGE_DIR": "/path/to/storage/directory", // Optional, defaults to ~/Documents/Cline/mcp-workspace/ATLAS
"ATLAS_STORAGE_NAME": "atlas-tasks", // Optional, defaults to atlas-tasks
"ATLAS_WAL_MODE": "true", // Optional, enables Write-Ahead Logging, defaults to true
"ATLAS_POOL_SIZE": "5", // Optional, connection pool size, defaults to CPU cores
// Performance Configuration
"ATLAS_MAX_MEMORY": "1024", // Optional, in MB, defaults to 25% of system memory
"ATLAS_CACHE_SIZE": "256", // Optional, in MB, defaults to 25% of max memory
"ATLAS_BATCH_SIZE": "1000", // Optional, max items per batch, defaults to 1000
"ATLAS_CHECKPOINT_INTERVAL": "30000", // Optional, in ms, defaults to 30000
"ATLAS_VACUUM_INTERVAL": "3600000", // Optional, in ms, defaults to 1 hour
// Backup Configuration
"ATLAS_BACKUP_DIR": "/path/to/backup/directory", // Optional, defaults to storage_dir/backups
"ATLAS_BACKUP_INTERVAL": "86400000", // Optional, in ms, defaults to 24 hours
"ATLAS_BACKUP_RETENTION": "7", // Optional, number of backups to keep, defaults to 7
"ATLAS_BACKUP_COMPRESSION": "true", // Optional, enable backup compression, defaults to true
// Monitoring Configuration
"ATLAS_LOG_LEVEL": "info", // Optional, defaults to debug
"ATLAS_METRICS_INTERVAL": "60000", // Optional, in ms, defaults to 60000
"ATLAS_HEALTH_CHECK_INTERVAL": "30000", // Optional, in ms, defaults to 30000
// Environment Configuration
"NODE_ENV": "production", // Optional, defaults to development
"ATLAS_TEMPLATE_DIRS": "/path/to/templates", // Optional, additional template directories
"ATLAS_MAX_PATH_DEPTH": "10" // Optional, max task path depth, defaults to 10
}
}
}
}
ATLAS provides contextual guidance through an intelligent notes system that automatically attaches relevant documentation to tool responses. Features include tool-specific guidance, markdown formatting support, pre-configured notes for common operations, and dynamic configuration updates through config/notes.json
.
ATLAS provides an intelligent template system that streamlines task creation and management:
- Smart Variables: Type-safe interpolation with validation
- Inheritance: Template composition with metadata transformation
- Dynamic Generation: Conditional tasks and automated dependencies
- Validation: Custom rules and relationship verification
- Programmatic Creation: Create and validate templates via agent_builder tool with:
- Template ID validation
- Schema enforcement
- Dependency cycle detection
- Path uniqueness checks
- Rich error reporting
ATLAS includes two types of specialized templates:
-
Software Engineering Team Templates:
- Team Coordination: Project setup, roles, and communication channels
- Product Design: User research, requirements, and design systems
- System Architecture: Technical design and system planning
- Security Engineering: Security architecture and compliance
- DevOps: Infrastructure automation and CI/CD
- Technical Leadership: Development standards and quality assurance
-
Project Setup Templates:
- Web Project: Modern web development setup with configurable features:
- TypeScript support
- Testing infrastructure
- CI/CD workflows
- CSS framework selection
- Web Project: Modern web development setup with configurable features:
Example team template usage:
{
"templateId": "software_engineer/team",
"variables": {
"projectName": "atlas-web",
"teamScale": "growth",
"developmentMethodology": "agile",
"securityLevel": "standard",
"complianceFrameworks": ["OWASP"],
"enableMetrics": true
}
}
Example web project template usage:
{
"templateId": "web-project",
"variables": {
"projectName": "my-web-app",
"useTypeScript": true,
"includeTesting": true,
"includeCI": true,
"cssFramework": "tailwind"
}
}
See templates/README.md for the complete template catalog.
Tasks are organized using a hierarchical path-based format with automatic parent path determination:
{
"path": "project/feature/task", // Parent path automatically set to "project/feature"
"name": "Authentication Service",
"type": "TASK", // or MILESTONE
"status": "IN_PROGRESS", // Transitions validated against dependencies
"dependencies": ["project/feature/design"],
"metadata": {
"priority": "high",
"tags": ["security"],
"technical": {
"includeTesting": true,
"includeCI": true,
"cssFramework": "tailwind"
}
}
See templates/README.md for the complete template catalog.
Tasks are organized using a hierarchical path-based format with automatic parent path determination:
{
"path": "project/feature/task", // Parent path automatically set to "project/feature"
"name": "Authentication Service",
"type": "TASK", // or MILESTONE
"status": "IN_PROGRESS", // Transitions validated against dependencies
"dependencies": ["project/feature/design"],
"metadata": {
"priority": "high",
"tags": ["security"],
"technical": {
"language": "typescript",
"performance": { "latency": "<100ms" }
}
},
"notes": {
"planning": ["Security review"],
"progress": ["JWT implemented"]
}
}
Features:
- Automatic parent path determination
- Path-based hierarchy (max depth: 10)
- Rich metadata and documentation
- Strict status transitions
- Dependency validation
- Progress tracking
ATLAS provides a comprehensive set of tools for task management:
// Task Management
create_task; // Create new tasks
update_task; // Update existing tasks
get_tasks_by_status; // Find tasks by status
get_tasks_by_path; // Find tasks by path pattern
get_children; // List child tasks
delete_task; // Remove tasks with cascade/orphan/block strategies
// Bulk Operations
bulk_task_operations; // Execute multiple task operations
// Template Operations
list_templates; // List available templates
use_template; // Instantiate a template
get_template_info; // Get template details
agent_builder; // Create and validate task templates programmatically
The agent_builder tool enables programmatic creation and validation of task templates with comprehensive validation:
{
"operation": "create", // or "validate"
"template": {
"id": "my-template",
"name": "My Template",
"description": "Template description",
"version": "1.0.0",
"variables": [
{
"name": "projectName",
"description": "Project name",
"type": "string",
"required": true
}
],
"tasks": [
{
"path": "project/setup",
"title": "Project Setup",
"type": "MILESTONE",
"dependencies": []
}
]
}
}
Features:
- Template ID validation
- Schema validation
- Dependency validation with cycle detection
- Task path uniqueness validation
- Rich error and warning reporting
// Database Maintenance
vacuum_database; // Optimize storage
repair_relationships; // Fix task relationships
clear_all_tasks; // Reset task database
ATLAS exposes system resources through standard MCP endpoints:
{
"totalTasks": 42,
"statusCounts": {
"IN_PROGRESS": 15,
"COMPLETED": 12
},
"metrics": {
"completionRate": "35%",
"blockageRate": "7%"
}
}
{
"totalTemplates": 7,
"templates": [{
"id": "software_engineer/team",
"name": "LLM Software Engineering Team",
"description": "Coordinated team of LLM agents performing specialized software engineering roles",
"variables": {
"projectName": { "required": true },
"teamScale": { "default": "growth" },
"developmentMethodology": { "default": "agile" },
"securityLevel": { "default": "standard" }
}
}, {
"id": "web-project",
"name": "Web Project Setup",
"description": "Modern web development project setup with configurable features",
"variables": {
"projectName": { "required": true },
"useTypeScript": { "default": true },
"includeTesting": { "default": true },
"cssFramework": { "default": "tailwind" }
}
}]
}
- Use descriptive paths:
project/component/feature
- Limit hierarchy depth (max 10 levels)
- Group related tasks under milestones
- Maintain clear dependencies
- Document changes in metadata
- Use bulk operations for batch updates
- Enable WAL mode for concurrent access
- Configure appropriate cache sizes
- Schedule regular maintenance
- Monitor system health metrics
- Validate inputs before operations
- Use atomic transactions for consistency
- Implement retry logic with backoff
- Monitor error patterns
- Maintain audit trails
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
For bugs and feature requests, please create an issue.
Apache License 2.0