delega-mcp
delega-mcp
Servidor MCP para Delega — infraestructura de tareas para agentes de IA.
Conecta cualquier cliente compatible con MCP (Claude Code, Cursor, Codex, etc.) a tu instancia de Delega y gestiona tareas, proyectos y agentes mediante lenguaje natural.
Instalación
npm install -g @delega-dev/mcpRelated MCP server: task-passport
Configuración
Añádelo a la configuración de tu cliente MCP (por ejemplo, claude_code_config.json de Claude Code):
{
"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"
}
}
}
}Variables de entorno
Variable | Predeterminado | Descripción |
|
| Endpoint de la API de Delega |
| (ninguno) | Clave de API del agente para solicitudes autenticadas |
|
| ⚠️ Solo para desarrollo. Establece en |
Para el nivel alojado (hosted), utiliza https://api.delega.dev como URL.
Notas de seguridad
Los valores de
DELEGA_API_URLque no sean locales deben usarhttps://.Las claves de agente se pasan a través de variables de entorno en lugar de argumentos de línea de comandos, lo que evita fugas en la lista de procesos.
La salida de la herramienta MCP redacta las claves de API completas del agente de forma predeterminada.
No establezcas
DELEGA_REVEAL_AGENT_KEYS=1en producción. Esta bandera existe solo para la configuración inicial. En producción, un agente con inyección de prompts podría exfiltrar claves de la salida de la herramientacreate_agentolist_agents. Las claves se devuelven una vez en el momento de la creación; utilizarotate_agent_keysi necesitas una nueva.
Herramientas
Herramienta | Descripción |
| Lista tareas, filtra por proyecto, etiqueta, fecha de vencimiento, finalización |
| Obtiene detalles completos de la tarea, incluidas las subtareas |
| Crea una nueva tarea |
| Actualiza los campos de la tarea (incl. |
| Asigna una tarea a un agente (o pasa |
| Delega una tarea: crea una tarea secundaria vinculada a una principal (el estado de la principal cambia a |
| Devuelve la cadena de delegación completa de una tarea (raíz + descendientes, ordenados por profundidad) |
| Fusiona claves en el blob de contexto persistente de una tarea (fusión profunda, no reemplazo) |
| Comprueba si el contenido de la tarea propuesta es similar a las tareas abiertas existentes (similitud de Jaccard). Llama antes de |
| Devuelve información de cuota + límite de tasa. Solo API alojada ( |
| Marca una tarea como completada |
| Elimina una tarea permanentemente |
| Añade un comentario a una tarea |
| Lista todos los proyectos |
| Obtiene estadísticas de tareas |
| Lista los agentes registrados |
| Registra un nuevo agente (devuelve la clave de API) |
| Elimina un agente (rechazado si el agente tiene tareas activas) |
| Lista todos los webhooks (solo administrador) |
| Crea un webhook para notificaciones de eventos (solo administrador) |
| Elimina un webhook por ID (solo administrador) |
Formato de salida de tarea
Las herramientas que devuelven tareas (list_tasks, get_task, create_task, update_task, assign_task) muestran cada tarea con metadatos de asignación cuando están disponibles:
[#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: noLas líneas Assigned to / Created by / Completed by se emiten solo cuando el campo subyacente está poblado. Delega autohospedado devuelve un objeto de agente anidado para que el asignado se muestre como <display_name> (#id); el nivel alojado api.delega.dev devuelve el ID de agente sin procesar, por lo que se muestra como #<id>.
Las tareas que forman parte de una cadena de delegación también muestran los metadatos de la cadena:
[#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)Las herramientas de tarea única (get_task, create_task, update_task, assign_task, delegate_task, update_task_context) utilizan una representación detallada que formatea el blob de context completo (truncado a 2000 caracteres). list_tasks utiliza la representación de lista concisa que muestra Context keys: … en su lugar.
Cadenas de delegación
get_task_chain devuelve la cadena completa de padre/hijo para cualquier tarea en la cadena. La salida está sangrada por 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)Los nodos se ordenan por profundidad y luego por orden de creación (coincidiendo con el orden de respuesta de la API).
Autohospedado vs Alojado
Autohospedado (gratis): Ejecuta tu propia instancia de Delega, apunta DELEGA_API_URL hacia ella.
Alojado: Usa https://api.delega.dev — gratis hasta 1,000 tareas/mes.
Enlaces
Delega — Sitio principal
GitHub — Código fuente
Documentación de la API — Referencia de la API REST
Licencia
MIT
Available Tools
48 toolsadd_commentC
Add a comment to a task
Inputs: content (required), task_id (required), author.
assign_taskB
Assign a task to an agent (or unassign by passing null)
Inputs: task_id (required), agent_id (required).
cancel_human_requestA
Record cancellation using the request version from get_human_request. Prevents new capabilities, accepted replies and completion; the controller releases its own claim. Does not take ownership or reopen completed work. Repeating an already-recorded cancellation is a no-op.
Inputs: task_id (required), expected_version (required).
claim_taskA
Claim a task for exclusive processing (work-queue semantics). Without task_id, atomically picks the highest-priority claimable task from the queue — open, unclaimed, and unassigned or assigned to you. With task_id, claims that specific task (e.g. one you found via list_tasks, or after a write was rejected with 'claim it first'); fails with a conflict if it is completed, assigned to another agent, or claimed with a live lease. Returns the claimed task, or reports an empty queue. The claim is a lease (default 300 seconds): extend it with heartbeat_task while working, requeue with release_task, or finish with complete_task. Hosted API only.
Inputs: labels, task_id, project_id, lease_seconds.
complete_taskA
Mark a task as completed. Attach evidence — structured proof the work happened (commit, PR, CI check, deploy SHA, artifact/URL, command output). Evidence is always welcome and is REQUIRED on tasks whose evidence_policy is 'required' (there, at least one strong kind — commit/pr/ci_check/deploy_sha/artifact_url — must be present; command_output alone is rejected). Evidence is a durable, falsifiable claim recorded on the task; it is not executed or verified by Delega.
Inputs: task_id (required), evidence, claim_generation, expected_revision.
create_automationA
Create an automation rule: when an event fires and all conditions match, run the actions in-process — no webhook receiver needed (admin only). Example: when a task labeled bug is created, assign it to an agent at priority 3. Safety: cascades are depth- and budget-capped, rules never react to tasks they created, and field mutations on tasks under a live claim are always skipped (comments are append-only and still allowed). Hosted API only.
Inputs: name (required), event (required), actions (required), active, +1 more.
create_ingress_sourceA
Create an inbound connector: a signed public endpoint that turns external events (CI failures, alerts, calendars) into Delega tasks (admin only). The sender signs each POST body with HMAC-SHA256 (header X-Delega-Ingress-Signature: t=,v1=<hex of HMAC(secret, 't.body')>, 5-minute tolerance). Ingress can ONLY create tasks; routing (project/assignee) is pinned here and never payload-controlled; every created task carries the 'ingress' label and provenance marker, and automation rules ignore ingress tasks unless they explicitly opt in with a source=ingress condition. Hosted API only.
Inputs: name (required), template (required), active, filters, +2 more.
create_recurring_taskA
Create a recurring task template. The hosted scheduler spawns normal task instances from this template and links them with source_recurrence_id.
Inputs: content (required), rule_type (required), labels, interval, +10 more.
create_taskC
Create a new task in Delega
Inputs: content (required), labels, due_date, priority, +3 more.
create_webhookA
Create a webhook to receive event notifications (admin only). Events: task.created, task.updated, task.completed, task.deleted, task.assigned, task.delegated, task.commented, task.claimed, task.released, task.state_changed, task.linked
Inputs: url (required), events (required).
delegate_taskA
Delegate a task: create a child task linked to a parent. The parent's status flips to 'delegated'. Use this (not assign_task) for multi-agent handoffs so the delegation chain is recorded.
Inputs: content (required), task_id (required), labels, due_date, +4 more.
delete_agentA
Delete an agent. The API may refuse if the agent has active tasks or is the last active agent.
Inputs: agent_id (required).
delete_automationA
Delete an automation rule and its run log by ID (admin only). Hosted API only.
Inputs: automation_id (required).
delete_ingress_sourceA
Delete an inbound connector source and its delivery log by ID (admin only). Its endpoint immediately returns 404. Hosted API only.
Inputs: source_id (required).
delete_recurrenceB
Delete a recurring task template. Existing spawned task instances remain as normal tasks.
Inputs: recurrence_id (required).
delete_taskB
Delete a task permanently
Inputs: task_id (required).
delete_webhookA
Delete a webhook by ID (admin only)
Inputs: webhook_id (required).
find_duplicate_tasksA
Check whether a proposed task is similar to existing open tasks (TF-IDF + cosine similarity). Call this before create_task to avoid redundant work.
Inputs: content (required), threshold.
fleet_attentionA
Triage board: one call returning everything across the account that needs a human or coordinator — abandoned claims (a crashed/silent agent's expired lease), silent holders, errored and input-blocked tasks, overdue, and looping (repeatedly reopened) tasks. Scoped like stats: coordinators/admins see the whole account, workers see their own involvement. Read-only. Hosted API only.
Inputs: no named parameters.
get_context_historyA
Read a bounded page of the append-only context provenance ledger. Prefer key to narrow history. Follow the JSON next_cursor using history_cursor for older entries; a Next text cursor instead continues a large current page with identical selectors. History remains complete and explicitly paginated.
Inputs: task_id (required), key, limit, cursor, +2 more.
get_human_requestB
Read a registered human request's immutable scope, phase, version and protected reply evidence. Read-only; never starts a run.
Inputs: task_id (required).
get_human_resultA
Read the canonical human request result. Result is null until two affirmative task-bound replies and completion by the original executor/claim. Human attestation does not independently verify physical state. No recipient identifiers or bearer capabilities are returned.
Inputs: task_id (required).
get_statsA
Get task statistics from Delega (totals, completed today, due today, overdue, by project)
Inputs: no named parameters.
get_taskA
Get a task's details, ownership, handoff, links and subtasks as bounded JSON. Context is retrieved separately through get_task_context. Follow text cursors with the same task ID for large details; do not treat a fragment as complete.
Inputs: task_id (required), cursor, max_chars.
get_task_chainA
Get the full delegation chain for a task (root + all descendants, sorted by depth). Use this to inspect parent/child accountability.
Inputs: task_id (required).
get_task_contextA
Read selected persistent task state. Default summary returns canonical current-state keys plus a paginated key index, not the whole history. Supply exact keys to retrieve particular values, view=keys to browse the index, or view=full for explicit complete access. Large responses use text cursors; never mistake a fragment for a complete document. Preserve version for guarded updates. Historical noncanonical keys remain available through the index and exact key reads.
Inputs: task_id (required), keys, view, cursor, +4 more.
get_usageA
Get quota and rate-limit information for the current plan. Hosted API only (api.delega.dev) — custom endpoints receive a clear error.
Inputs: no named parameters.
heartbeat_taskA
Extend the lease on a task you have claimed. Call this periodically (before lease_expires_at) while working on a long task so the claim is not reclaimed by another agent. Optionally report a session state at the same time (working / waiting_input / errored) so humans and orchestrators can see why the claim is held. Fails with 409 if you no longer hold an active claim — in that case, claim a task again rather than continuing. Hosted API only.
Inputs: task_id (required), state, detail, lease_seconds.
link_taskA
Attach a branch, commit, pull request, or URL link to a task. Use this when work in a repo, PR, or external artifact should travel with the task.
Inputs: ref (required), kind (required), task_id (required), url, +1 more.
list_agentsA
List all registered agents in Delega. Admin keys get the full view; coordinators get a read-only directory (name, role, activity) for resolving agent IDs on tasks.
Inputs: no named parameters.
list_automationsA
List all automation rules configured for your account, with run/failure counts (admin only). Hosted API only.
Inputs: no named parameters.
list_ingress_sourcesA
List inbound connector sources with delivery counters (admin only). Hosted API only.
Inputs: no named parameters.
list_projectsA
List all projects in Delega
Inputs: no named parameters.
list_recurrencesA
List recurring task templates. Recurrences spawn normal task instances on schedule; completing an instance does not delete the schedule.
Inputs: no named parameters.
list_task_linksB
List branch, commit, pull request, and URL links attached to a task.
Inputs: task_id (required).
list_tasksA
List compact, paginated task summaries with total/has_more/next_offset. Default 25 tasks and 6000 characters; follow next_offset with identical filters for complete discovery. A page is not the whole queue. Workers see involved tasks; coordinators/admins see all account tasks. Act only on your assignments or unowned tasks you claim; coordinate on others through comments. Use get_task for details and get_task_context for selected current state, not a full backlog dump.
Inputs: due, sort, label, limit, +8 more.
list_webhooksB
List all webhooks configured for your account (admin only)
Inputs: no named parameters.
recallA
Search your decision-memory across ALL tasks — recall a prior decision, fact, or constraint without knowing which task recorded it. Returns the best-matching context entries (key, value, source, and the task they live on) ranked by relevance, with human-stated facts weighted highest. Use at the START of new work to avoid re-deciding something already settled. Lexical match for now (exact-ish terms beat paraphrases). Read-only; scoped to what you can read. Hosted API only.
Inputs: q (required), key, limit, source, +2 more.
register_agentA
Register a new agent in Delega. Returns the API key (shown only at creation — save it!)
Inputs: name (required), role, description, permissions, +1 more.
register_human_requestA
Register one immutable checklist on an existing open, unclaimed, autopilot-hold, evidence-required task assigned to the configured human-request runtime. Recipient is the existing self chat. Equal retries replay; different input conflicts. Registration does not send, run, claim, or grant execution approval. Hosted API must enable this feature.
Inputs: task_id (required), criteria (required), expected_revision (required), timeout_seconds.
release_taskA
Release a task you have claimed back to the queue without completing it. Use when you cannot finish the work or another agent should take over — the task returns to open status and becomes immediately claimable. Leave a handoff note so the next agent resumes instead of restarting. Hosted API only.
Inputs: task_id (required), handoff.
set_agent_roleA
Set an agent's role (admin key required): worker (own-task scope), coordinator (sees + can comment on all account tasks), or admin (full account management). Sandbox agents graduate via the claim flow and cannot be assigned a role.
Inputs: role (required), agent_id (required).
set_task_stateA
Report the session state of a task you have claimed — working, waiting_input, or errored — without extending the lease. Use this to flag that you are blocked on input or hit an error: the claim stays visible as held-but-stuck instead of faking liveness. Humans and orchestrators see the state via list_tasks/get_task. Fails with 409 if you no longer hold an active claim. Hosted API only.
Inputs: state (required), task_id (required), detail.
update_automationA
Update an automation rule (admin only). Only supplied fields change; setting active true re-enables a rule that was auto-disabled after repeated failures. Hosted API only.
Inputs: automation_id (required), name, event, active, +2 more.
update_ingress_sourceA
Update an inbound connector source (admin only). Only supplied fields change; pass rotate_secret true to mint a new signing secret (shown once — the old secret stops working immediately). Hosted API only.
Inputs: source_id (required), name, active, filters, +4 more.
update_recurrenceB
Update a recurring task template, including pausing/resuming with active=false/true.
Inputs: recurrence_id (required), active, labels, content, +12 more.
update_taskC
Update an existing task's fields
Inputs: task_id (required), labels, content, due_date, +5 more.
update_task_contextA
Merge keys into persistent task context, preserving other keys. Keep a compact current_state/next_step and retrieve history only when needed. Pass expected_version from get_task_context to guard concurrent writes. Returns a compact acknowledgment, not merged history. A conflict applies no write: read the relevant current keys, merge and retry explicitly.
Inputs: context (required), task_id (required), source, expected_version.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 48 tools
Many tools are distinct, but several boundaries are blurry: assign_task vs delegate_task, update_task vs set_task_state, get_task vs get_task_context vs get_context_history, and recall vs context reads all require careful reading. Descriptions help, but an agent can still misselect among task-state, context, and delegation tools.
Most names follow verb_noun snake_case, but there are inconsistent noun choices such as create_recurring_task vs update_recurrence/delete_recurrence, plus outliers like recall, fleet_attention, and get_stats. The pattern is readable but not uniformly predictable.
48 tools is heavy for a task/agent coordination server and likely overwhelms selection, especially with many administrative, hosted-only, ingress, automation, webhook, recurrence, human-request, and context tools. The surface feels like several products combined into one server.
Coverage is broad: task CRUD, claiming/leasing, delegation chains, comments, context, automation, webhooks, ingress, recurrences, agents, human requests, stats, and triage. Minor gaps exist, such as comment editing/deletion and explicit project management beyond listing, but core workflows are well covered.
Maintenance
Related MCP Connectors
Task management for teams building with AI agents. Agents claim tasks and report progress.
Task manager for AI agents. Orchestrate agents to achieve large goals in unified control plane.
Shared task layer for AI agents: tasks, handoffs and decisions that persist across tools.
Task and sprint coordination for humans and AI agents, with scoped API keys and full audit trail.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA minimal task management system for LLM agent collaboration via the Model Context Protocol, supporting CRUD operations, task blocking, subtasks, queues, and comments.2MIT
- AlicenseNot gradedqualityBmaintenanceProvides a task passport system for handoff across AI harnesses, enabling users to list, open, create, and checkpoint tasks with stable IDs and verified state.418 npm10MIT

agent-taskofficial
FlicenseNot gradedqualityDmaintenanceAgentTask is a governed work platform where human teams and AI agents share one backlog. Hosted remote MCP server (streamable HTTP, OAuth 2.1 or org API keys) with 60+ tools for tasks, subtasks, projects, groups, labels, notes, comments, attachments, search, crews, and agent runs.-- AlicenseAqualityBmaintenanceEnables AI agents to publish, claim, submit, and settle tasks with each other, including automatic decomposition of complex work into subtasks assigned to specialized agents. Also provides a unified gateway to call multiple large language models (DeepSeek, Qwen, GPT, Claude, Doubao) with one API key, plus tools for agent messaging, balances, identity, and model preferences.16MIT