saga-mcp
v1.19.0Jira-like project tracker for AI agents with SQLite, full task hierarchy, and dashboard
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
project_create
Create a new project. Projects are the top-level container for all work.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name |
description | string | Project description |
status | string | Project status |
tags | array | Tags for categorization |
project_list
List all projects with epic/task counts and completion percentages. Optionally filter by status.
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status |
project_update
Update a project. Pass only the fields you want to change. Set status to "archived" to soft-delete.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Project ID |
description | string | |
name | string | |
status | string | |
tags | array |
epic_create
Create an epic within a project. Epics group related tasks into a feature or workstream.
| Parameter | Type | Description |
|---|---|---|
name * | string | Epic name |
project_id * | integer | Parent project ID |
branch | string | Branch to scope this epic to: "current" = active branch, omit/"" = branch-agnostic. |
description | string | Epic description |
priority | string | |
status | string | |
tags | array |
epic_list
List epics for a project with task counts and completion stats. Filter by status, priority or branch. Archived epics are hidden unless include_archived is set.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project ID |
branch | string | Git branch filter: "current" = active branch, "" = branch-agnostic only, omit = all. |
include_archived | boolean | Include archived epics and their tasks. |
priority | string | |
status | string |
epic_archive
Archive or unarchive an epic. Archived epics and their tasks drop out of listings, the dashboard and search unless include_archived is set. For putting finished work out of sight without cancelling it; nothing is deleted.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
archived | boolean | true to archive, false to bring it back |
epic_update
Update an epic. Pass only the fields you want to change. Set status to "cancelled" to soft-delete. Pass branch="current" to pin to the active branch, or empty string to clear.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Epic ID |
branch | string | Branch to scope this epic to: "current" = active branch, "" = clear. |
description | string | |
name | string | |
priority | string | |
sort_order | integer | |
status | string | |
tags | array |
task_create
Create a task within an epic. Tasks are the primary unit of work.
| Parameter | Type | Description |
|---|---|---|
epic_id * | integer | Parent epic ID |
title * | string | Task title |
assigned_to | string | Assignee name |
depends_on | array | Task IDs this task depends on |
description | string | Task description |
due_date | string | Due date (YYYY-MM-DD) |
estimated_hours | number | Estimated hours |
priority | string | |
source_ref | object | Link to source code location |
status | string | |
tags | array |
task_list
List tasks; without epic_id, across all epics. Includes subtask and dependency counts. Rows are compact: nulls and metadata dropped, descriptions cut to 120 chars (task_get for full). branch="current" restricts to the active git branch.
| Parameter | Type | Description |
|---|---|---|
assigned_to | string | Filter by assignee |
branch | string | Git branch filter: "current" = active branch, "" = branch-agnostic only, omit = all. |
epic_id | integer | Filter by epic (omit for all tasks) |
include_archived | boolean | Include archived epics and their tasks. |
include_deleted | boolean | Include removed tasks. |
limit | integer | Max results |
priority | string | |
project_id | integer | Scope to one project. Defaults to SAGA_PROJECT if set, else the whole database. |
sort_by | string | Omit to follow the arrangement set by task_reorder, falling back to priority. priority (critical first), created (newest), due_date (earliest), status (actionable first), manual. |
status | string | |
tag | string | Filter by tag |
task_reorder
Set the order of an epic's tasks. Omitted IDs keep their relative order at the end. task_list then follows this arrangement by default.
| Parameter | Type | Description |
|---|---|---|
epic_id * | integer | Parent epic |
ordered_ids * | array | Task IDs, in order |
task_delete
Remove a task (soft delete). Only 'todo' tasks — anything further along has history worth keeping. The row is kept and hidden from listings; task_restore brings it back.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
deleted_by | string | |
reason | string | Why it is being removed (kept in the audit trail) |
task_restore
Restore a task removed with task_delete.
| Parameter | Type | Description |
|---|---|---|
id * | integer |
task_lock_description
Lock or unlock a task's description. While locked, task_update refuses to change it — a guard against rewriting the spec when you meant to add a comment. Every other field still changes freely.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Task ID |
locked | boolean | true to lock, false to unlock |
task_get
Get a single task with full details including all subtasks, related notes, comments, and dependencies.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Task ID |
task_update
Update a task; pass only fields to change. Completing it while subtasks are unfinished is refused unless force is set.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Task ID |
actual_hours | number | |
assigned_to | string | |
depends_on | array | Task IDs this task depends on (replaces existing) |
description | string | |
due_date | string | |
estimated_hours | number | |
force | boolean | Proceed despite unmet prerequisites. Only when a human says the blocker no longer applies, never on your own initiative. Logged. |
priority | string | |
sort_order | integer | Manual position within the epic; lower sorts first. Use task_reorder instead of setting this by hand. |
source_ref | object | Link to source code location |
status | string | |
tags | array | |
title | string |
subtask_create
Create subtasks (checklist items) for a task. Pass titles as an array — one string per subtask — and each becomes its own record. New subtasks are appended after any that exist.
| Parameter | Type | Description |
|---|---|---|
task_id * | integer | Parent task |
titles * | array | Subtask titles, one per array item — e.g. ["Write it", "Test it"]. Always an array, even for a single subtask. |
depends_on | array | Siblings each new subtask waits on |
subtask_update
Update a subtask title, status or position. depends_on sets what it waits on, blocks the inverse; both replace the set, [] clears. Starting or finishing one with unmet prerequisites needs force.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
blocks | array | Siblings that wait on this one — inverse of depends_on |
depends_on | array | Siblings this one waits on (replaces the set) |
force | boolean | Proceed despite unmet prerequisites. Only when a human says the blocker no longer applies, never on your own initiative. Logged. |
sort_order | integer | |
status | string | |
title | string |
subtask_reorder
Reorder a task subtask list. Pass IDs in the order you want; any omitted keep their relative order at the end.
| Parameter | Type | Description |
|---|---|---|
ordered_ids * | array | Subtask IDs, in order |
task_id * | integer | Parent task |
subtask_delete
Delete one or more subtasks. Accepts a single ID or array of IDs.
| Parameter | Type | Description |
|---|---|---|
ids * | array | Subtask IDs to delete — e.g. [4, 7]. Always an array, even for one. |
note_save
Create or update a note: decisions, context, progress, meetings, blockers, technical detail, releases. With id, updates; without, creates.
| Parameter | Type | Description |
|---|---|---|
content * | string | Full note content (markdown supported) |
title * | string | Note title |
id | integer | Note ID (omit to create new) |
note_type | string | |
related_entity_id | integer | ID of the related entity |
related_entity_type | string | Link note to an entity |
tags | array |
note_list
List notes with optional filters. Returns notes sorted by most recent first.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
note_type | string | |
project_id | integer | Scope to one project. Defaults to SAGA_PROJECT if set, else the whole database. |
related_entity_id | integer | |
related_entity_type | string | |
tag | string | Filter by a single tag |
note_search
Search across note titles and content by keyword.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search keywords |
limit | integer | |
note_type | string |
note_delete
Delete a note by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Note ID |
comment_add
Add a comment to a task. Comments create a chronological discussion thread — useful for leaving breadcrumbs across sessions.
| Parameter | Type | Description |
|---|---|---|
content * | string | Comment text |
task_id * | integer | Task ID to comment on |
author | string | Author name (optional) |
comment_list
List comments on a task in chronological order. Comments removed with comment_delete are hidden by default; pass include_deleted to see them with their removal reason.
| Parameter | Type | Description |
|---|---|---|
task_id * | integer | Task ID |
include_deleted | boolean | Include comments that were removed (soft-deleted). Off by default. |
comment_delete
Remove a comment (soft delete). The row is kept for the audit trail but hidden from comment_list and task_get. Use this to retract a comment that turned out to be wrong or stale. Reversible with comment_restore.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Comment ID to remove |
deleted_by | string | Who removed it (optional) |
reason | string | Why the comment is being removed (recommended — it stays in the audit trail) |
comment_restore
Restore a comment previously removed with comment_delete.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Comment ID to restore |
template_create
Create a reusable set of tasks that can be instantiated into any epic. {variable} placeholders are filled in on apply.
| Parameter | Type | Description |
|---|---|---|
name * | string | Template name (must be unique) |
tasks * | array | The tasks this template creates. |
description | string |
template_list
List task templates. Pass include_tasks to see what each one actually creates.
| Parameter | Type | Description |
|---|---|---|
include_tasks | boolean | Return each template's task definitions, not just a count. |
template_apply
Apply a template to create tasks in an epic. Replaces {variable} placeholders with provided values.
| Parameter | Type | Description |
|---|---|---|
epic_id * | integer | Epic to create tasks in |
template_id * | integer | Template ID to apply |
variables | object | Key-value pairs for {variable} substitution (e.g., {"feature": "auth"}) |
template_update
Edit a template in place. Only the fields you pass change; tasks replace the whole list.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Template ID |
description | string | |
name | string | |
tasks | array | Replaces every task. Omit to leave them alone. {variable} works in title and description. |
template_delete
Delete a task template.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Template ID |
tracker_dashboard
Full project overview in one call: project, epics with task counts, stats, blocked and overdue tasks, recent activity and notes. Best first call when starting work. branch="current" scopes to the active git branch.
| Parameter | Type | Description |
|---|---|---|
branch | string | Scope to a git branch: "current" = active branch, "" = branch-agnostic only, omit = all. |
include_archived | boolean | Include archived epics and their tasks. |
project_id | integer | Project ID. Omit for a single-project database or when SAGA_PROJECT is set. Otherwise the first is used and the rest listed under other_projects. |
tracker_init
Initialize the tracker for a project. If the database is empty, creates a project with the given name. If a project already exists, returns its info.
| Parameter | Type | Description |
|---|---|---|
project_description | string | Description for the new project |
project_name | string | Name for a new project (only used if DB is empty) |
tracker_search
Search projects, epics, tasks and notes by keyword. Returns categorized previews — use task_get or note_list for full text.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search keywords |
branch | string | Git branch filter: "current" = active branch, "" = branch-agnostic only, omit = all. |
entity_types | array | Limit search to specific entity types (omit for all) |
include_archived | boolean | Include archived epics and their tasks. |
limit | integer | Max results per entity type |
project_id | integer | Scope to one project. Defaults to SAGA_PROJECT if set, else the whole database. |
tracker_next
What to work on next: one recommended task with the reason, its next unfinished subtask, alternatives, and — when nothing is actionable — what to unblock. Call it when resuming work; cheaper than tracker_dashboard.
| Parameter | Type | Description |
|---|---|---|
assigned_to | string | Only consider tasks assigned to this person |
branch | string | Git branch filter: "current" = active branch, omit = all. |
project_id | integer | Scope to one project. Defaults to SAGA_PROJECT if set, else the whole database. |
activity_log
View the activity log showing what changed and when. Useful for understanding recent progress or reviewing what happened since the last session.
| Parameter | Type | Description |
|---|---|---|
action | string | Filter by action type |
entity_id | integer | Filter by specific entity |
entity_type | string | Filter by entity type |
limit | integer | |
project_id | integer | Scope to one project. Defaults to SAGA_PROJECT if set, else the whole database. |
since | string | ISO 8601 datetime - show only activity after this time |
tracker_session_diff
What changed since a timestamp: counts by action and entity, plus the notable changes. Call it at the start of a session to catch up.
| Parameter | Type | Description |
|---|---|---|
since * | string | ISO 8601 datetime — show changes after this time (e.g. "2026-02-21T15:00:00") |
task_batch_update
Update multiple tasks at once. Useful for changing status of several tasks (e.g., mark 3 tasks as done) or reassigning tasks.
| Parameter | Type | Description |
|---|---|---|
ids * | array | Task IDs to update |
assigned_to | string | |
force | boolean | Proceed despite unmet prerequisites. Only when a human says the blocker no longer applies, never on your own initiative. Logged. |
priority | string | |
status | string |
tracker_export
Export a full project as nested JSON. Includes all epics, tasks, subtasks, comments, dependencies, and related notes. Useful for backup, migration, or sharing.
| Parameter | Type | Description |
|---|---|---|
project_id | integer | Project ID to export (omit if only one project exists) |
tracker_import
Import a project from JSON (matching tracker_export format). Creates all entities with new IDs and remaps references. Uses a transaction for atomicity.
| Parameter | Type | Description |
|---|---|---|
data * | object | Full export JSON object from tracker_export |