Skip to content

bug: expand_task MCP tool maps to 'expand-task' but actual CLI command is 'expand' #1640

@reinamora137

Description

@reinamora137

Description

The expand_task MCP tool's documentation and CLAUDE.md references suggest the CLI equivalent is task-master expand-task, but the actual CLI command is task-master expand. This causes failures when agents fall back to CLI for timeout-prone operations.

Steps to Reproduce

  1. Try task-master expand-task --id 5 --tag "my-tag"
  2. Command fails — expand-task is not a valid subcommand
  3. Correct command: task-master expand --id 5 --tag "my-tag"

Expected Behavior

Either:

  • The CLI should accept expand-task as an alias for expand, OR
  • Documentation/CLAUDE.md should reference the correct command expand

Actual Behavior

The CLAUDE.md template (auto-generated by task-master init) contains multiple references to task-master expand-task which is not a valid command. The correct command is task-master expand.

Affected Documentation

In the generated CLAUDE.md, these lines reference the wrong command:

  • "CLI: task-master expand-task --id X --tag Y"
  • Multiple examples in the "Subtask Creation Guidelines" section

Environment

  • Task Master version: 0.43.0
  • Node.js version: v24.13.0
  • Operating system: Ubuntu 24.04
  • IDE: Claude Code CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliCLI functionalityarea:mcpMCP server and integrationbugSomething isn't workingdocumentationImprovements or additions to documentationmedium-priorityImportant but not urgent

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions