saga-mcp

v1.19.0
io.github.spranab/saga-mcp Checked 8 hours ago Published 2 months ago

Jira-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.

ParameterTypeDescription
name *stringProject name
descriptionstringProject description
statusstringProject status
tagsarrayTags for categorization

project_list

List all projects with epic/task counts and completion percentages. Optionally filter by status.

ParameterTypeDescription
statusstringFilter by status

project_update

Update a project. Pass only the fields you want to change. Set status to "archived" to soft-delete.

ParameterTypeDescription
id *integerProject ID
descriptionstring
namestring
statusstring
tagsarray

epic_create

Create an epic within a project. Epics group related tasks into a feature or workstream.

ParameterTypeDescription
name *stringEpic name
project_id *integerParent project ID
branchstringBranch to scope this epic to: "current" = active branch, omit/"" = branch-agnostic.
descriptionstringEpic description
prioritystring
statusstring
tagsarray

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.

ParameterTypeDescription
project_id *integerProject ID
branchstringGit branch filter: "current" = active branch, "" = branch-agnostic only, omit = all.
include_archivedbooleanInclude archived epics and their tasks.
prioritystring
statusstring

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.

ParameterTypeDescription
id *integer
archivedbooleantrue 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.

ParameterTypeDescription
id *integerEpic ID
branchstringBranch to scope this epic to: "current" = active branch, "" = clear.
descriptionstring
namestring
prioritystring
sort_orderinteger
statusstring
tagsarray

task_create

Create a task within an epic. Tasks are the primary unit of work.

ParameterTypeDescription
epic_id *integerParent epic ID
title *stringTask title
assigned_tostringAssignee name
depends_onarrayTask IDs this task depends on
descriptionstringTask description
due_datestringDue date (YYYY-MM-DD)
estimated_hoursnumberEstimated hours
prioritystring
source_refobjectLink to source code location
statusstring
tagsarray

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.

ParameterTypeDescription
assigned_tostringFilter by assignee
branchstringGit branch filter: "current" = active branch, "" = branch-agnostic only, omit = all.
epic_idintegerFilter by epic (omit for all tasks)
include_archivedbooleanInclude archived epics and their tasks.
include_deletedbooleanInclude removed tasks.
limitintegerMax results
prioritystring
project_idintegerScope to one project. Defaults to SAGA_PROJECT if set, else the whole database.
sort_bystringOmit to follow the arrangement set by task_reorder, falling back to priority. priority (critical first), created (newest), due_date (earliest), status (actionable first), manual.
statusstring
tagstringFilter 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.

ParameterTypeDescription
epic_id *integerParent epic
ordered_ids *arrayTask 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.

ParameterTypeDescription
id *integer
deleted_bystring
reasonstringWhy it is being removed (kept in the audit trail)

task_restore

Restore a task removed with task_delete.

ParameterTypeDescription
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.

ParameterTypeDescription
id *integerTask ID
lockedbooleantrue to lock, false to unlock

task_get

Get a single task with full details including all subtasks, related notes, comments, and dependencies.

ParameterTypeDescription
id *integerTask ID

task_update

Update a task; pass only fields to change. Completing it while subtasks are unfinished is refused unless force is set.

ParameterTypeDescription
id *integerTask ID
actual_hoursnumber
assigned_tostring
depends_onarrayTask IDs this task depends on (replaces existing)
descriptionstring
due_datestring
estimated_hoursnumber
forcebooleanProceed despite unmet prerequisites. Only when a human says the blocker no longer applies, never on your own initiative. Logged.
prioritystring
sort_orderintegerManual position within the epic; lower sorts first. Use task_reorder instead of setting this by hand.
source_refobjectLink to source code location
statusstring
tagsarray
titlestring

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.

ParameterTypeDescription
task_id *integerParent task
titles *arraySubtask titles, one per array item — e.g. ["Write it", "Test it"]. Always an array, even for a single subtask.
depends_onarraySiblings 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.

ParameterTypeDescription
id *integer
blocksarraySiblings that wait on this one — inverse of depends_on
depends_onarraySiblings this one waits on (replaces the set)
forcebooleanProceed despite unmet prerequisites. Only when a human says the blocker no longer applies, never on your own initiative. Logged.
sort_orderinteger
statusstring
titlestring

subtask_reorder

Reorder a task subtask list. Pass IDs in the order you want; any omitted keep their relative order at the end.

ParameterTypeDescription
ordered_ids *arraySubtask IDs, in order
task_id *integerParent task

subtask_delete

Delete one or more subtasks. Accepts a single ID or array of IDs.

ParameterTypeDescription
ids *arraySubtask 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.

ParameterTypeDescription
content *stringFull note content (markdown supported)
title *stringNote title
idintegerNote ID (omit to create new)
note_typestring
related_entity_idintegerID of the related entity
related_entity_typestringLink note to an entity
tagsarray

note_list

List notes with optional filters. Returns notes sorted by most recent first.

ParameterTypeDescription
limitinteger
note_typestring
project_idintegerScope to one project. Defaults to SAGA_PROJECT if set, else the whole database.
related_entity_idinteger
related_entity_typestring
tagstringFilter by a single tag

note_delete

Delete a note by ID.

ParameterTypeDescription
id *integerNote ID

comment_add

Add a comment to a task. Comments create a chronological discussion thread — useful for leaving breadcrumbs across sessions.

ParameterTypeDescription
content *stringComment text
task_id *integerTask ID to comment on
authorstringAuthor 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.

ParameterTypeDescription
task_id *integerTask ID
include_deletedbooleanInclude 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.

ParameterTypeDescription
id *integerComment ID to remove
deleted_bystringWho removed it (optional)
reasonstringWhy the comment is being removed (recommended — it stays in the audit trail)

comment_restore

Restore a comment previously removed with comment_delete.

ParameterTypeDescription
id *integerComment 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.

ParameterTypeDescription
name *stringTemplate name (must be unique)
tasks *arrayThe tasks this template creates.
descriptionstring

template_list

List task templates. Pass include_tasks to see what each one actually creates.

ParameterTypeDescription
include_tasksbooleanReturn 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.

ParameterTypeDescription
epic_id *integerEpic to create tasks in
template_id *integerTemplate ID to apply
variablesobjectKey-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.

ParameterTypeDescription
id *integerTemplate ID
descriptionstring
namestring
tasksarrayReplaces every task. Omit to leave them alone. {variable} works in title and description.

template_delete

Delete a task template.

ParameterTypeDescription
id *integerTemplate 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.

ParameterTypeDescription
branchstringScope to a git branch: "current" = active branch, "" = branch-agnostic only, omit = all.
include_archivedbooleanInclude archived epics and their tasks.
project_idintegerProject 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.

ParameterTypeDescription
project_descriptionstringDescription for the new project
project_namestringName for a new project (only used if DB is empty)

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.

ParameterTypeDescription
assigned_tostringOnly consider tasks assigned to this person
branchstringGit branch filter: "current" = active branch, omit = all.
project_idintegerScope 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.

ParameterTypeDescription
actionstringFilter by action type
entity_idintegerFilter by specific entity
entity_typestringFilter by entity type
limitinteger
project_idintegerScope to one project. Defaults to SAGA_PROJECT if set, else the whole database.
sincestringISO 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.

ParameterTypeDescription
since *stringISO 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.

ParameterTypeDescription
ids *arrayTask IDs to update
assigned_tostring
forcebooleanProceed despite unmet prerequisites. Only when a human says the blocker no longer applies, never on your own initiative. Logged.
prioritystring
statusstring

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.

ParameterTypeDescription
project_idintegerProject 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.

ParameterTypeDescription
data *objectFull export JSON object from tracker_export