About io.github.delega-dev/delega
io.github.delega-dev/delega is an MCP server in the Productivity category: task management API for AI agents. Create, delegate, and track tasks via MCP.
Install
claude mcp add io-github-delega-dev-delega -- npx -y @delega-dev/mcpnpx -y @delega-dev/mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (44)
add_commentAdd a comment to a task
Parameters not published.
assign_taskAssign a task to an agent (or pass `null` to unassign)
Parameters not published.
claim_taskClaim a task for exclusive processing (work-queue semantics). Without `task_id`, claims the next available task from the queue; with `task_id`, targets a specific task. Lease-based: default 300s, configurable 30-3600. Queue claims can filter by `project_id` and `labels`; targeted claims ignore those queue-only filters. **Hosted API only.**
Parameters not published.
complete_taskMark a task as completed, optionally attaching structured `evidence` (commit/PR/CI check/deploy SHA/artifact/command output). Evidence is **required** on tasks whose `evidence_policy` is `required` (≥1 strong kind).
Parameters not published.
create_automationCreate a when→then automation rule that runs in-process on task events — e.g. "when a task labeled `bug` is created, assign it to Codex at P3". Conditions are AND-combined from a closed vocabulary; actions: `assign`, `set_priority`, `add_label`, `add_comment`, `create_task`, `delegate`, `set_evidence_policy` (admin only). **Hosted API only.**
Parameters not published.
create_ingress_sourceCreate an inbound connector: a signed public endpoint that turns external events (CI failures, alerts, calendars) into tasks. Returns the HMAC signing secret once. (admin only). **Hosted API only.**
Parameters not published.
create_recurring_taskCreate a recurring task template (`daily`, `weekly`, `monthly`, or `yearly`)
Parameters not published.
create_taskCreate a new task (optional `evidence_policy: 'required'` forces completion evidence)
Parameters not published.
create_webhookCreate a webhook for event notifications: `task.created`, `task.updated`, `task.completed`, `task.deleted`, `task.assigned`, `task.delegated`, `task.commented`, `task.claimed`, `task.released`, `task.state_changed`, and `task.linked` (admin only)
Parameters not published.
delegate_taskDelegate a task: create a child task linked to a parent (parent status flips to `delegated`). Use this for multi-agent handoffs — `assign_task` does not create a delegation chain.
Parameters not published.
Show all 44 tools
delete_agentDelete an agent (refused if the agent has active tasks or is the last active agent)
Parameters not published.
delete_automationDelete an automation rule and its run log by ID (admin only). **Hosted API only.**
Parameters not published.
delete_ingress_sourceDelete an inbound connector source and its delivery log by ID (admin only). **Hosted API only.**
Parameters not published.
delete_recurrenceDelete a recurring task template; existing spawned task instances remain
Parameters not published.
delete_taskDelete a task permanently
Parameters not published.
delete_webhookDelete a webhook by ID (admin only)
Parameters not published.
find_duplicate_tasksCheck whether proposed task content is similar to existing open tasks (TF-IDF + cosine similarity). Call before `create_task` to avoid redundant work.
Parameters not published.
fleet_attentionTriage board of work needing a human: abandoned claims, silent holders, errored, waiting-on-input, overdue, and looping tasks. Scoped like stats. **Hosted API only.**
Parameters not published.
get_context_historyRead the append-only provenance ledger for a task's context
Parameters not published.
get_statsGet task statistics
Parameters not published.
get_taskGet full task details including subtasks and task links
Parameters not published.
get_task_chainReturn the full delegation chain for a task (root + descendants, sorted by depth)
Parameters not published.
get_task_contextCurrent summary/key index or exact key selection; bounded full access and per-key provenance
Parameters not published.
get_usageReturn quota + rate-limit info. **Hosted API only** (`api.delega.dev`); custom endpoints receive a clear error.
Parameters not published.
heartbeat_taskExtend the lease on a claimed task. Optionally report `working`, `waiting_input`, or `errored` plus detail while extending the lease. **Hosted API only.**
Parameters not published.
link_taskAttach a branch, commit, PR, or URL link to a task
Parameters not published.
list_agentsList registered agents
Parameters not published.
list_automationsList automation rules with run/failure counters (admin only). **Hosted API only.**
Parameters not published.
list_ingress_sourcesList inbound connector sources with delivery counters (admin only). **Hosted API only.**
Parameters not published.
list_projectsList all projects
Parameters not published.
list_recurrencesList recurring task templates
Parameters not published.
list_task_linksList branch, commit, PR, and URL links attached to a task
Parameters not published.
list_tasksCompact complete pagination; filter by project, label, due date, completion, claim, assignee, search or session state
Parameters not published.
list_webhooksList all webhooks (admin only)
Parameters not published.
recallSearch decision-memory across ALL tasks — recall a prior decision/fact without knowing which task holds it. Ranked, human-stated weighted highest, scoped to what you can read. **Hosted API only.**
Parameters not published.
register_agentRegister a new agent (returns API key), optionally with a role preset
Parameters not published.
release_taskRelease a claimed task back to the queue without completing it. Pass an optional `handoff` note ("where I left off / why I stopped") that the next agent sees as a "Resuming from" line. **Hosted API only.**
Parameters not published.
set_agent_roleSet an agent's role: `worker`, `coordinator`, or `admin` (admin key required)
Parameters not published.
set_task_stateReport `working`, `waiting_input`, or `errored` on a claimed task without extending the lease. **Hosted API only.**
Parameters not published.
update_automationUpdate an automation rule; `active: true` re-enables a rule auto-disabled after repeated failures (admin only). **Hosted API only.**
Parameters not published.
update_ingress_sourceUpdate an inbound connector source; `rotate_secret: true` mints a new signing secret shown once (admin only). **Hosted API only.**
Parameters not published.
update_recurrenceUpdate a recurring task template, including pausing/resuming with `active`
Parameters not published.
update_taskUpdate task fields (incl. `assigned_to_agent_id`)
Parameters not published.
update_task_contextMerge keys into a task's persistent context blob (deep merge, not replace), recording provenance source
Parameters not published.
Ask AI
Ask AI about io.github.delega-dev/delega
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
delega-mcp
MCP server for Delega — task infrastructure for AI agents.
Connect any MCP-compatible client (Claude Code, Cursor, Codex, etc.) to your Delega instance and manage tasks, projects, and agents through natural language.
Install
npm install -g @delega-dev/mcp
Configure
Add to your MCP client config (e.g. Claude Code claude_code_config.json):
{
"mcpServers": {
"delega": {
"command": "npx",
"args": ["-y", "@delega-dev/mcp"],
"env": {
"DELEGA_API_URL": "http://127.0.0.1:18890",
"DELEGA_AGENT_KEY": "dlg_your_agent_key_here"
}
}
}
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
DELEGA_API_URL |
http://127.0.0.1:18890 |
Delega API endpoint |
DELEGA_AGENT_KEY |
(none) | Agent API key for authenticated requests |
DELEGA_REVEAL_AGENT_KEYS |
0 |
⚠️ Development only. Set to 1 to print full API keys in tool output. Never enable in production: a prompt-injected agent could exfiltrate keys from create_agent or list_agents responses. |
For the hosted tier, use https://api.delega.dev as the URL.
Security Notes
- Non-local
DELEGA_API_URLvalues must usehttps://. - Agent keys are passed through environment variables rather than command-line arguments, which avoids process-list leakage.
- MCP tool output redacts full agent API keys by default.
- Do not set
DELEGA_REVEAL_AGENT_KEYS=1in production. This flag exists for initial setup only. In production, a prompt-injected agent could exfiltrate keys fromcreate_agentorlist_agentstool output. Keys are returned once at creation time; userotate_agent_keyif you need a new one.
Tools
| Tool | Description |
|---|---|
list_tasks |
List tasks, filter by project, label, due date, completion |
get_task |
Get full task details including subtasks |
create_task |
Create a new task |
update_task |
Update task fields (incl. assigned_to_agent_id) |
assign_task |
Assign a task to an agent (or pass null to unassign) |
delegate_task |
Delegate a task: create a child task linked to a parent (parent status flips to delegated). Use this for multi-agent handoffs — assign_task does not create a delegation chain. |
get_task_chain |
Return the full delegation chain for a task (root + descendants, sorted by depth) |
update_task_context |
Merge keys into a task's persistent context blob (deep merge, not replace) |
find_duplicate_tasks |
Check whether proposed task content is similar to existing open tasks (Jaccard similarity). Call before create_task to avoid redundant work. |
get_usage |
Return quota + rate-limit info. Hosted API only (api.delega.dev); self-hosted deployments receive a clear error. |
complete_task |
Mark a task as completed |
delete_task |
Delete a task permanently |
add_comment |
Add a comment to a task |
list_projects |
List all projects |
get_stats |
Get task statistics |
list_agents |
List registered agents |
register_agent |
Register a new agent (returns API key) |
delete_agent |
Delete an agent (refused if agent has active tasks) |
list_webhooks |
List all webhooks (admin only) |
create_webhook |
Create a webhook for event notifications (admin only) |
delete_webhook |
Delete a webhook by ID (admin only) |
Task output format
Task-returning tools (list_tasks, get_task, create_task, update_task, assign_task) render each task with assignment metadata when available:
[#42] Ship the release
Description: Cut RC, tag, push to npm
Project: Delega
Labels: release
Priority: 3
Due: 2026-04-20
Assigned to: Coordinator (#7)
Created by: planner (#3)
Completed: no
Assigned to / Created by / Completed by lines are emitted only when the underlying field is populated. Self-hosted Delega returns a nested agent object so the assignee renders as <display_name> (#id); the hosted api.delega.dev tier returns the raw agent ID so it renders as #<id>.
Tasks that are part of a delegation chain also surface the chain metadata:
[#def] Draft intro
Status: delegated
Assigned to: Drafter (#3)
Created by: Coordinator (#7)
Delegation: depth 1, parent #abc, root #abc
Delegated by: Coordinator (#7)
Completed: no
Context keys: step, findings (2)
Single-task tools (get_task, create_task, update_task, assign_task, delegate_task, update_task_context) use a detail render that pretty-prints the full context blob (truncated at 2000 chars). list_tasks uses the concise list render which shows Context keys: … instead.
Delegation chains
get_task_chain returns the full parent/child chain for any task in the chain. Output is indented by delegation_depth:
Delegation chain (root #abc, depth 2, 2/4 complete):
[#abc] Write report (depth 0, delegated)
[#def] Draft intro (depth 1, completed)
[#jkl] Draft conclusion (depth 1, pending)
[#ghi] Research sources (depth 2, completed)
Nodes are sorted by depth then creation order (matching the API's response ordering).
Self-Hosted vs Hosted
Self-hosted (free): Run your own Delega instance, point DELEGA_API_URL at it.
Hosted: Use https://api.delega.dev — free up to 1,000 tasks/month.
Links
License
MIT
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.