atlas-mcp-server

atlas-mcp-server

A Model Context Protocol (MCP) server providing path-based task management with dependency tracking & more for Large Language Models (LLM) Agents

Stars: 56

Visit
 screenshot

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, it features ACID-compliant storage, efficient task tracking, and intelligent template management. ATLAS provides LLM Agents task management through a clean, flexible tool interface. The server implements the Model Context Protocol (MCP) for standardized communication between LLMs and external systems, offering hierarchical task organization, task state management, smart templates, enterprise features, and performance optimization.

README:

ATLAS MCP Server

TypeScript Model Context Protocol Version License Status GitHub

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.

Table of Contents

Overview

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

Architecture & Components

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

Features

Task Management

  • 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

Performance & Reliability

  • Enterprise Storage: SQLite with WAL and ACID compliance
  • Optimized Operations: Batch processing and automatic maintenance
  • Health Monitoring: System metrics and automatic recovery
  • Resource Management: Memory monitoring and connection pooling

Validation & Safety

  • 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

Task Tracking

  • 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

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/atlas-mcp-server.git
cd atlas-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Build System

ATLAS uses a robust build system with several key components:

  • Build Scripts: Located in scripts/ directory:

    • build-utils.js: Core utilities for build operations
    • platform-utils.js: Platform-specific utilities for build scripts
    • postinstall.js: Post-installation setup
    • prestart.js: Pre-start validation
    • set-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
  • 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.

Configuration

MCP Client Settings

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

        // 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
      }
    }
  }
}

Notes System

ATLAS provides automatic contextual guidance through its notes system:

Core Features

  • Tool-Specific Guidance: Notes automatically attached to relevant tool responses
  • Configurable Targeting: Notes can target specific tools or all tools
  • Priority System: Notes can be ordered by importance
  • Markdown Support: Rich formatting for documentation
  • Dynamic Loading: Notes hot-reloaded from configuration
  • Built-in Documentation: Pre-configured notes for common operations

Implementation

The notes system consists of three main components:

  1. Note Manager (src/notes/note-manager.ts):

    • Singleton pattern for centralized note management
    • Loads and manages note configurations
    • Filters notes by tool relevance
    • Sorts notes by priority
    • Formats notes for tool responses
  2. Notes Initializer (src/notes/notes-initializer.ts):

    • Sets up initial note structure
    • Copies built-in notes to user directory
    • Validates note configurations
    • Ensures directory structure
  3. Built-in Notes (notes/):

    • task-creation.md: Best practices for creating tasks
    • task-maintenance.md: Guidelines for task state management
    • task-update.md: Documentation for task updates

Configuration

Notes are configured in config/notes.json:

{
  "notes": {
    "task-maintenance": {
      "tools": "*", // Apply to all tools
      "path": "task-maintenance.md",
      "priority": 100 // Higher priority notes shown first
    },
    "task-creation": {
      "tools": ["create_task"], // Only for create_task tool
      "path": "task-creation.md",
      "priority": 90
    }
  }
}

Example Response

When using tools, relevant notes are automatically included:

{
  "result": "Task created successfully",
  "task": {
    "path": "project/feature",
    "name": "New Feature"
  },
  "notes": [
    "# Task Creation Best Practices\n\nUse hierarchical paths...",
    "# Task Maintenance\n\nRegularly check status..."
  ]
}

Templates

ATLAS provides an intelligent template system that streamlines task creation and management:

Core Features

  • 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

Built-in Templates

ATLAS includes two types of specialized templates:

  1. 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
  2. Project Setup Templates:

    • Web Project: Modern web development setup with configurable features:
      • TypeScript support
      • Testing infrastructure
      • CI/CD workflows
      • CSS framework selection

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.

Task Structure

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

Tools

ATLAS provides a comprehensive set of tools for task management:

Task Operations

// 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

// 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

Template Creation

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

Maintenance Tools

// Database Maintenance
vacuum_database; // Optimize storage
repair_relationships; // Fix task relationships
clear_all_tasks; // Reset task database

Resources

ATLAS exposes system resources through standard MCP endpoints:

Task Overview (tasklist://current)

{
  "totalTasks": 42,
  "statusCounts": {
    "IN_PROGRESS": 15,
    "COMPLETED": 12
  },
  "metrics": {
    "completionRate": "35%",
    "blockageRate": "7%"
  }
}

Templates (templates://current)

{
  "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" }
    }
  }]
}

Best Practices

Task Organization

  • Use descriptive paths: project/component/feature
  • Limit hierarchy depth (max 10 levels)
  • Group related tasks under milestones
  • Maintain clear dependencies
  • Document changes in metadata

Performance Optimization

  • Use bulk operations for batch updates
  • Enable WAL mode for concurrent access
  • Configure appropriate cache sizes
  • Schedule regular maintenance
  • Monitor system health metrics

Error Prevention

  • Validate inputs before operations
  • Use atomic transactions for consistency
  • Implement retry logic with backoff
  • Monitor error patterns
  • Maintain audit trails

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

For bugs and feature requests, please create an issue.

License

Apache License 2.0


Built with the Model Context Protocol

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for atlas-mcp-server

Similar Open Source Tools

For similar tasks

For similar jobs