npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

task-guardian-mcp

v1.0.1

Published

MCP for Task Management

Readme

Task Guardian MCP

A Model Context Protocol (MCP) server for intelligent task management in AI-powered development environments like Cursor.

Features

  • 📁 File-based storage - Tasks stored as JSON files in .task/ directory
  • 🔢 Sequential IDs - Simple, incremental task numbering
  • 🔗 Typed dependencies - Model relationships between tasks (blocks, requires, related-to)
  • 🔄 Cycle detection - Prevents circular dependencies at creation time
  • 📝 Rich descriptions - Full markdown support with code blocks and checklists
  • 🎯 Task types - Support for user stories, tasks, and bugs
  • 🔍 Advanced querying - Filter, sort, and search tasks
  • Batch operations - Create or update multiple tasks at once
  • 📦 Custom metadata - Store project-specific attributes on tasks
  • 🖥️ Interactive CLI - Beautiful terminal UI for viewing tasks with Ink and React

Installation

From npm (recommended)

npx task-guardian-mcp

From source

pnpm install

Usage

Running the Server

Start the MCP server:

pnpm start

For development with auto-reload:

pnpm dev

CLI Tool

View tasks in your project using an interactive terminal UI:

pnpm cli

The CLI reads from the .task directory in your current working directory and displays tasks in a beautiful, color-coded table with interactive navigation.

Features:

  • 🎯 Navigate through tasks with arrow keys
  • 👁️ View detailed information for any task
  • 🎨 Color-coded status, priority, and type indicators
  • 🔍 Filter tasks by status, priority, or type
  • ⌨️ Full keyboard navigation

Options:

  • --status <status> - Filter by status (pending|in_progress|completed|blocked|cancelled)
  • --priority <priority> - Filter by priority (low|medium|high|critical)
  • --type <type> - Filter by type (user_story|task|bug)
  • --help - Show help message

Examples:

# List all tasks
pnpm cli

# List in-progress tasks only
pnpm cli --status in_progress

# List high priority tasks
pnpm cli --priority high

# Combine filters
pnpm cli --status pending --priority critical

Keyboard shortcuts:

In List View:

  • / or j/k - Navigate through tasks (vim-style supported)
  • Enter - View selected task details
  • q - Quit the application
  • Ctrl+C - Exit

In Detail View:

  • Use your terminal's native scrolling (mouse wheel, trackpad, or terminal scroll commands)
  • Esc or b - Back to list
  • q - Quit the application

Cursor Integration

Add Task Guardian to your Cursor MCP configuration:

Location: ~/.cursor/config/mcp_settings.json

Using npx (recommended)

{
  "mcpServers": {
    "task-guardian": {
      "command": "npx",
      "args": ["-y", "task-guardian-mcp"]
    }
  }
}

From source

{
  "mcpServers": {
    "task-guardian": {
      "command": "node",
      "args": ["/absolute/path/to/task-guardian-mcp/dist/index.mjs"]
    }
  }
}

Replace /absolute/path/to/task-guardian-mcp with the actual path to this repository on your machine.

Task Schema

Tasks are stored in .task/task-{id}.json with the following structure:

{
  id: number;              // Sequential ID (1, 2, 3, ...)
  title: string;           // Task title (1-200 chars)
  description: string;     // Markdown-formatted description
  status: 'pending' | 'in_progress' | 'completed' | 'blocked' | 'cancelled';
  priority: 'low' | 'medium' | 'high' | 'critical';
  type: 'user_story' | 'task' | 'bug';
  dependencies: Array<{
    taskId: number;
    type: 'blocks' | 'requires' | 'related-to';
    description?: string;
  }>;
  createdAt: string;       // ISO8601 timestamp
  updatedAt: string;       // ISO8601 timestamp
  [key: string]: any;      // Custom metadata fields
}

Available Tools

Core Operations

  • create_task - Create a new task
  • get_task - Retrieve a task by ID
  • update_task - Update task fields
  • delete_task - Delete a task (with dependency check)
  • list_tasks - List tasks with optional filtering
  • query_tasks - Advanced search with sorting and pagination

Dependency Management

  • add_dependency - Add a typed dependency (with cycle detection)
  • remove_dependency - Remove a dependency link

Batch Operations

  • create_tasks - Create multiple tasks at once
  • update_tasks - Update multiple tasks at once

Examples

Creating a Task

{
  "title": "Implement OAuth2 authentication",
  "description": "## Overview\n\nAdd OAuth2 support using Google identity provider.\n\n## Acceptance Criteria\n\n- [ ] User can login with Google\n- [ ] JWT tokens generated\n- [ ] Token refresh works",
  "priority": "high",
  "type": "task"
}

Adding Dependencies

{
  "fromTaskId": 5,
  "toTaskId": 3,
  "type": "blocks",
  "description": "OAuth requires database setup first"
}

Querying Tasks

{
  "filters": {
    "status": ["in_progress", "blocked"],
    "priority": ["high", "critical"],
    "titleContains": "auth"
  },
  "sort": {
    "field": "priority",
    "order": "desc"
  },
  "limit": 10
}

Architecture

  • Types (src/types/) - Type definitions and constants using as const pattern
  • Schemas (src/schemas/) - Zod validation schemas with type inference
  • Services (src/services/) - Business logic for tasks and dependencies
  • Tools (src/tools/) - MCP tool implementations
  • Index (src/index.ts) - MCP server entry point

Development

Type checking:

pnpm typecheck

Build:

pnpm build

File Structure

.task/
├── .meta.json           # Stores last task ID
├── task-1.json          # Individual task files
├── task-2.json
└── archive/             # Archived completed tasks
    └── task-old.json

TypeScript Best Practices

This project follows modern TypeScript patterns:

  • as const objects instead of enums
  • ✅ Zod schema inference for single source of truth
  • ✅ Result types for error handling
  • readonly modifiers for immutability
  • type over interface for data shapes
  • ✅ Permissive validation with .passthrough()

License

MIT

Related