MCPcopy Index your code
hub / github.com/eyaltoledano/claude-task-master

github.com/eyaltoledano/claude-task-master @task-master-ai@0.43.1 sqlite

repository ↗ · DeepWiki ↗ · release task-master-ai@0.43.1 ↗
3,937 symbols 11,415 edges 859 files 1,705 documented · 43% 31 cross-repo links
README

eyaltoledano%2Fclaude-task-master | Trendshift

Taskmaster logo

Taskmaster: A task management system for AI-driven development, designed to work seamlessly with any AI chat.

Discord | Docs

CI GitHub stars npm version License

NPM Downloads NPM Downloads NPM Downloads

By @eyaltoledano & @RalphEcom

Twitter Follow Twitter Follow

A task management system for AI-driven development with Claude, designed to work seamlessly with Cursor AI.

Documentation

📚 View Full Documentation

For detailed guides, API references, and comprehensive examples, visit our documentation site.

Quick Reference

The following documentation is also available in the docs directory:

Quick Install for Cursor 1.0+ (One-Click)

Add task-master-ai MCP server to Cursor

Note: After clicking the link, you'll still need to add your API keys to the configuration. The link installs the MCP server with placeholder keys that you'll need to replace with your actual API keys.

Claude Code Quick Install

For Claude Code users:

claude mcp add taskmaster-ai -- npx -y task-master-ai

Don't forget to add your API keys to the configuration: - in the root .env of your Project - in the "env" section of your mcp config for taskmaster-ai

Requirements

Taskmaster utilizes AI across several commands, and those require a separate API key. You can use a variety of models from different AI providers provided you add your API keys. For example, if you want to use Claude 3.7, you'll need an Anthropic API key.

You can define 3 types of models to be used: the main model, the research model, and the fallback model (in case either the main or research fail). Whatever model you use, its provider API key must be present in either mcp.json or .env.

At least one (1) of the following is required:

  • Anthropic API key (Claude API)
  • OpenAI API key
  • Google Gemini API key
  • Perplexity API key (for research model)
  • xAI API Key (for research or main model)
  • OpenRouter API Key (for research or main model)
  • Claude Code (no API key required - requires Claude Code CLI)
  • Codex CLI (OAuth via ChatGPT subscription - requires Codex CLI)

Using the research model is optional but highly recommended. You will need at least ONE API key (unless using Claude Code or Codex CLI with OAuth). Adding all API keys enables you to seamlessly switch between model providers at will.

Quick Start

Option 1: MCP (Recommended)

MCP (Model Control Protocol) lets you run Task Master directly from your editor.

1. Add your MCP config at the following path depending on your editor

Editor Scope Linux/macOS Path Windows Path Key
Cursor Global ~/.cursor/mcp.json %USERPROFILE%\.cursor\mcp.json mcpServers
Project <project_folder>/.cursor/mcp.json <project_folder>\.cursor\mcp.json mcpServers
Windsurf Global ~/.codeium/windsurf/mcp_config.json %USERPROFILE%\.codeium\windsurf\mcp_config.json mcpServers
VS Code Project <project_folder>/.vscode/mcp.json <project_folder>\.vscode\mcp.json servers
Q CLI Global ~/.aws/amazonq/mcp.json mcpServers
Manual Configuration
Cursor & Windsurf & Q Developer CLI (mcpServers)
{
  "mcpServers": {
    "task-master-ai": {
      "command": "npx",
      "args": ["-y", "task-master-ai"],
      "env": {
        // "TASK_MASTER_TOOLS": "all", // Options: "all", "standard", "core", or comma-separated list of tools
        "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
        "PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE",
        "OPENAI_API_KEY": "YOUR_OPENAI_KEY_HERE",
        "GOOGLE_API_KEY": "YOUR_GOOGLE_KEY_HERE",
        "MISTRAL_API_KEY": "YOUR_MISTRAL_KEY_HERE",
        "GROQ_API_KEY": "YOUR_GROQ_KEY_HERE",
        "OPENROUTER_API_KEY": "YOUR_OPENROUTER_KEY_HERE",
        "XAI_API_KEY": "YOUR_XAI_KEY_HERE",
        "AZURE_OPENAI_API_KEY": "YOUR_AZURE_KEY_HERE",
        "OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY_HERE"
      }
    }
  }
}

🔑 Replace YOUR_…_KEY_HERE with your real API keys. You can remove keys you don't use.

Note: If you see 0 tools enabled in the MCP settings, restart your editor and check that your API keys are correctly configured.

VS Code (servers + type)
{
  "servers": {
    "task-master-ai": {
      "command": "npx",
      "args": ["-y", "task-master-ai"],
      "env": {
        // "TASK_MASTER_TOOLS": "all", // Options: "all", "standard", "core", or comma-separated list of tools
        "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
        "PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE",
        "OPENAI_API_KEY": "YOUR_OPENAI_KEY_HERE",
        "GOOGLE_API_KEY": "YOUR_GOOGLE_KEY_HERE",
        "MISTRAL_API_KEY": "YOUR_MISTRAL_KEY_HERE",
        "GROQ_API_KEY": "YOUR_GROQ_KEY_HERE",
        "OPENROUTER_API_KEY": "YOUR_OPENROUTER_KEY_HERE",
        "XAI_API_KEY": "YOUR_XAI_KEY_HERE",
        "AZURE_OPENAI_API_KEY": "YOUR_AZURE_KEY_HERE",
        "OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY_HERE"
      },
      "type": "stdio"
    }
  }
}

🔑 Replace YOUR_…_KEY_HERE with your real API keys. You can remove keys you don't use.

2. (Cursor-only) Enable Taskmaster MCP

Open Cursor Settings (Ctrl+Shift+J) ➡ Click on MCP tab on the left ➡ Enable task-master-ai with the toggle

3. (Optional) Configure the models you want to use

In your editor's AI chat pane, say:

Change the main, research and fallback models to <model_name>, <model_name> and <model_name> respectively.

For example, to use Claude Code (no API key required):

Change the main model to claude-code/sonnet

Table of available models | Claude Code setup

4. Initialize Task Master

In your editor's AI chat pane, say:

Initialize taskmaster-ai in my project

5. Make sure you have a PRD (Recommended)

For new projects: Create your PRD at .taskmaster/docs/prd.txt. For existing projects: You can use scripts/prd.txt or migrate with task-master migrate

An example PRD template is available after initialization in .taskmaster/templates/example_prd.txt.

[!NOTE] While a PRD is recommended for complex projects, you can always create individual tasks by asking "Can you help me implement [description of what you want to do]?" in chat.

Always start with a detailed PRD.

The more detailed your PRD, the better the generated tasks will be.

6. Common Commands

Use your AI assistant to:

  • Parse requirements: Can you parse my PRD at scripts/prd.txt?
  • Plan next step: What's the next task I should work on?
  • Implement a task: Can you help me implement task 3?
  • View multiple tasks: Can you show me tasks 1, 3, and 5?
  • Expand a task: Can you help me expand task 4?
  • Research fresh information: Research the latest best practices for implementing JWT authentication with Node.js
  • Research with context: Research React Query v5 migration strategies for our current API implementation in src/api.js

More examples on how to use Task Master in chat

Option 2: Using Command Line

Installation

# Install globally
npm install -g task-master-ai

# OR install locally within your project
npm install task-master-ai

Initialize a new project

# If installed globally
task-master init

# If installed locally
npx task-master init

# Initialize project with specific rules
task-master init --rules cursor,windsurf,vscode

This will prompt you for project details and set up a new project with the necessary files and structure.

Common Commands

# Initialize a new project
task-master init

# Parse a PRD and generate tasks
task-master parse-prd your-prd.txt

# List all tasks
task-master list

# Show the next task to work on
task-master next

# Show specific task(s) - supports comma-separated IDs
task-master show 1,3,5

# Research fresh information with project context
task-master research "What are the latest best practices for JWT authentication?"

# Move tasks between tags (cross-tag movement)
task-master move --from=5 --from-tag=backlog --to-tag=in-progress
task-master move --from=5,6,7 --from-tag=backlog --to-tag=done --with-dependencies
task-master move --from=5 --from-tag=backlog --to-tag=in-progress --ignore-dependencies

# Add rules after initialization
task-master rules add windsurf,roo,vscode

Tool Loading Configuration

Optimizing MCP Tool Loading

Task Master's MCP server supports selective tool loading to reduce context window usage. By default, all 36 tools are loaded (~21,000 tokens) to maintain backward compatibility with existing installations.

You can optimize performance by configuring the TASK_MASTER_TOOLS environment variable:

Available Modes

Mode Tools Context Usage Use Case
all (default) 36 ~21,000 tokens Complete feature set - all tools available
standard 15 ~10,000 tokens Common task management operations
core (or lean) 7 ~5,000 tokens Essential daily development workflow
custom Variable Variable Comma-separated list of specific tools

Configuration Methods

Method 1: Environment Variable in MCP Configuration

Add TASK_MASTER_TOOLS to your MCP configuration file's env section:

{
  "mcpServers": {  // or "servers" for VS Code
    "task-master-ai": {
      "command": "npx",
      "args": ["-y", "task-master-ai"],
      "env": {
        "TASK_MASTER_TOOLS": "standard",  // Options: "all", "standard", "core", "lean", or comma-separated list
        "ANTHROPIC_API_KEY": "your-key-here",
        // ... other API keys
      }
    }
  }
}

Method 2: Claude Code CLI (One-Time Setup)

For Claude Code users, you can set the mode during installation:

# Core mode example (~70% token reduction)
claude mcp add task-master-ai --scope user \
  --env TASK_MASTER_TOOLS="core" \
  -- npx -y task-master-ai@latest

# Custom tools example
claude mcp add task-master-ai --scope user \
  --env TASK_MASTER_TOOLS="get_tasks,next_task,set_task_status" \
  -- npx -y task-master-ai@latest

Tool Sets Details

Core Tools (7):

Extension points exported contracts — how you extend this code

IStorage (Interface)
(no doc) [4 implementers]
packages/tm-core/src/common/interfaces/storage.interface.ts
PollingStrategy (Interface)
(no doc) [4 implementers]
apps/extension/src/services/polling-service.ts
AISDKMessage (Interface)
* AI SDK message type (simplified interface)
packages/ai-sdk-provider-grok-cli/src/message-converter.ts
BrowserAuthProvider (Interface)
(no doc) [2 implementers]
apps/cli/src/utils/auth-ui.ts
UpdateBridgeParams (Interface)
(no doc)
packages/tm-bridge/src/update-bridge.ts
ShellConfigResult (Interface)
(no doc)
packages/tm-profiles/src/shell-utils.ts
MCPResponse (Interface)
(no doc)
apps/mcp/src/shared/types.ts
TaskParser (Interface)
(no doc) [3 implementers]
packages/tm-core/src/modules/tasks/parser/index.ts

Core symbols most depended-on inside this repo

log
called by 1333
apps/extension/src/utils/logger.ts
error
called by 680
apps/extension/src/utils/logger.ts
info
called by 322
packages/tm-core/src/common/logger/logger.ts
parse
called by 279
packages/tm-core/src/modules/tasks/parser/index.ts
log
called by 276
scripts/init.js
log
called by 233
scripts/modules/utils.js
warn
called by 180
apps/extension/src/utils/logger.ts
transition
called by 174
packages/tm-core/src/modules/workflow/orchestrators/workflow-orchestrator.ts

Shape

Method 1,786
Function 1,302
Class 464
Interface 378
Enum 7

Languages

TypeScript100%

Modules by API surface

scripts/modules/config-manager.js60 symbols
src/utils/stream-parser.js58 symbols
apps/extension/src/utils/errorHandler.ts54 symbols
scripts/modules/utils.js47 symbols
packages/tm-core/src/modules/storage/adapters/api-storage.ts43 symbols
packages/tm-core/src/modules/integration/services/export.service.ts43 symbols
packages/tm-core/src/modules/workflow/orchestrators/workflow-orchestrator.ts41 symbols
packages/tm-core/src/common/interfaces/storage.interface.ts39 symbols
packages/tm-core/src/modules/tasks/tasks-domain.ts37 symbols
scripts/modules/ui.js34 symbols
packages/tm-core/src/modules/storage/adapters/file-storage/file-storage.ts34 symbols
packages/tm-core/src/modules/git/adapters/git-adapter.ts34 symbols

Dependencies from manifests, versioned

@ai-sdk/amazon-bedrock3.0.23 · 1×
@ai-sdk/anthropic2.0.18 · 1×
@ai-sdk/azure2.0.89 · 1×
@ai-sdk/google2.0.16 · 1×
@ai-sdk/google-vertex3.0.86 · 1×
@ai-sdk/groq2.0.21 · 1×
@ai-sdk/mistral2.0.16 · 1×
@ai-sdk/openai2.0.34 · 1×
@ai-sdk/openai-compatible1.0.25 · 1×
@ai-sdk/perplexity2.0.10 · 1×
@ai-sdk/provider2.0.0 · 1×
@ai-sdk/provider-utils3.0.10 · 1×

For agents

$ claude mcp add claude-task-master \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact