← Back to Main Workflow | ← Back to Story Workflow
This document provides detailed technical reference for story-related tools and prompts.
The select-tasks tool supports optional filtering parameters that
enable story task queries and returns multiple tasks:
Parameters:
category (string, optional) - Filter by task categoryparent-id (integer, optional) - Filter by parent task ID (for
finding story child tasks)title-pattern (string, optional) - Filter by title pattern (regex or
substring match)type (string, optional) - Filter by task type (task, bug, feature,
story, chore)status (string, optional) - Filter by task status (open, closed,
in-progress, blocked). When omitted, filters out closed tasks (default
behavior)limit (integer, optional, default: 5) - Maximum number of tasks to returnunique (boolean, optional, default: false) - Error if more than one
task matches (implies :limit 1)All filter parameters are optional and AND-ed together when provided.
Returns:
A map with two keys:
:tasks (vector) - Vector of task maps (empty if no matches):metadata (map) - Selection metadata (count, total-matches, limited?)Example - Finding a story by title:
;; Call
{:title-pattern "user-auth" :unique true}
;; Return
{:tasks [{:id 13 :title "User Authentication" :category "story" ...}]
:metadata {:count 1 :total-matches 1 :limited? false}}
Example - Finding story child tasks:
;; First find the story
{:title-pattern "user-auth" :unique true} ; Returns {:tasks [{:id 13 ...}] ...}
;; Then find first incomplete child
{:parent-id 13 :limit 1}
;; Return
{:tasks [{:id 29 :title "Enhance select-tasks tool" :category "medium" ...}]
:metadata {:count 1 :total-matches 3 :limited? true}}
Usage:
Use select-tasks with title-pattern and unique: true to find story tasks,
then use parent-id to query child tasks. Use :limit to control how many
tasks are returned. The task :id can be used with complete-task.
Story tasks use the same complete-task tool as regular tasks. Tasks
are stored in .mcp-tasks/tasks.ednl with parent-child relationships,
where story tasks have a :parent-id field linking them to their parent
story.
Parameters:
category (string, required) - The task categorytitle (string, required) - Partial text from the beginning of the
task to verifycompletion-comment (string, optional) - Optional comment to append
to the completed taskReturns:
Git mode enabled:
:modified-files key containing
["tasks.ednl", "complete.ednl"]Git mode disabled:
Behavior:
:status :open in
tasks.ednltitle parameter:status :closed:description fieldtasks.ednl to complete.ednlExample:
;; Call
{:category "medium"
:title "Simplify story workflow"
:completion-comment "Removed redundant tools"}
;; Return (git mode)
"Task completed and moved to .mcp-tasks/complete.ednl"
"{\"modified-files\": [\"tasks.ednl\", \"complete.ednl\"]}"
Usage:
Use complete-task after successfully executing any task (including story tasks)
to mark it as complete and archive it. The tool works uniformly for both
standalone tasks and story child tasks.
In git mode, use the modified-files output to commit the task tracking change.
Interactively refine a task with user feedback.
Arguments:
story-name - The title or pattern matching the story to refineBehavior:
.mcp-tasks/tasks.ednl using title pattern matching:description field:description field in tasks.ednlKey characteristics:
Usage example:
/mcp-tasks:refine-task "User Authentication"
The agent will find the User Authentication task in tasks.ednl, analyze it,
and guide you through an interactive refinement process to improve the task's
clarity and completeness.
Break down a story into categorized, executable tasks.
Arguments:
story-name - The title or pattern matching the story to break downBehavior:
.mcp-tasks/tasks.ednl using title pattern matching:description fieldsimple - Straightforward tasks, small changes, documentation updatesmedium - Tasks requiring analysis and design, moderate complexitylarge - Complex tasks needing extensive planning and implementationclarify-task - Tasks that need clarification before executionadd-task tool:
:parent-id to link the task to the story:category:type (typically "task", "bug", or "feature")Task creation parameters:
category: The selected category (simple, medium, large, clarify-task)title: Task titledescription: Task description (optional, multiline supported)parent-id: Parent story's task ID (optional, for story tasks)type: "task", "bug", "feature", or "chore"Key characteristics:
.mcp-tasks/tasks.ednl with :parent-id linkingselect-tasks with parent-id filter to query story tasks:description fieldUsage example:
/mcp-tasks:create-story-tasks "User Authentication"
The agent will find the User Authentication story in tasks.ednl, break it down
into discrete tasks, assign categories, and create them using the add-task tool
after your approval.
Execute the next task from a story.
Arguments:
story-name - The title or pattern matching the storyBehavior:
select-tasks with title-pattern and unique: true
to find the story in tasks.ednlselect-tasks with parent-id filter and :limit 1 to
get the first incomplete child:id and :parent-id.mcp-tasks/prompts/<category>.mdcomplete-task tool with category and title:status :closed and moved from tasks.ednl to
complete.ednlBranch management (conditional):
If configuration includes :branch-management? true:
<story-name><story-name> branch<story-name> branch for the next taskIf :branch-management? is false (default):
Key characteristics:
.mcp-tasks/tasks.ednl with parent-child
relationships via :parent-id:parent-id pointing to the story's :idUsage example:
/mcp-tasks:execute-story-task "User Authentication"
The agent will find the next incomplete task from the User Authentication story
in tasks.ednl, execute it using that category's workflow, and mark it complete
using the complete-task tool upon success.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |