SuperAPI AI Directory

delega-mcp

Self-hostable task management for AI agents: create, delegate and track tasks with agent identity, delegation chains, webhooks and persistent context.

Open website

About this tool

Purpose

Delega is a production-grade task coordination system for AI agents. This repository, delega-mcp, is its MCP server client, used to let AI agents create, delegate, and track tasks through the MCP protocol.

Maintenance status

Delega's public hosted service was retired on July 28, 2026. This client remains public as a verifiable engineering artifact and serves Ryan McMillan's existing private deployment. New public accounts and hosted access are no longer offered. This package is maintained only as needed for Ryan's private operational use. The default hosted endpoint accepts only existing owner credentials.

Main capabilities

  • Task management: create, delegate, and track tasks, with support for agent identity, delegation chains, and persistent context.
  • Delegation chain: get_task_chain returns the complete parent-child chain for any task, indented by delegation_depth, with nodes sorted by depth and then by creation order.
  • Task output format: list_tasks returns single-line summaries including assignment/claim ID, status, priority, and project/due/evidence/entry markers; defaults to 25 tasks and a 6,000-character response budget, with offset-based pagination. get_task returns bounded JSON details; context must be read separately with get_task_context.
  • Bounded context and history: get_task_context defaults to view=summary, providing canonical current-state keys and a paginated key index; supports max_chars (1,000–16,000, default 6,000) and a text cursor; history is read via history_cursor for earlier ledger entries.
  • Claiming tasks: includes session_state and session_state_detail; heartbeat_task can set these states while extending the lease, while set_task_state only changes state without extending the lease.
  • Recurring tasks: manage templates from which the hosted scheduler creates ordinary task instances; completing an instance does not delete or pause the recurrence.
  • Automation rules: respond to the same events as webhooks, but run inside Delega, with no need to build your own receiver; text actions support placeholder templates; safety semantics are enforced server-side (cascade limit of 3 hops, at most 25 actions per source event, rules do not respond to tasks they create themselves, field-change actions do nottouch tasks in an active claim by another agent, and rules are automatically disabled after 10 consecutive failures).
  • Decision answers: agents report waiting_input when blocked by a human decision; the hosted API's escalation email carries a hashed, one-time, 72-hour-expiring answer link; POST records the human reply as a task comment and a human_stated context key; there is no automatic resumption. Escalation delivery has a 30-minute per-task cooldown.
  • Inbound connectors (ingress): signed public endpoints turn external events into tasks; HMAC-SHA256 signatures with a 5-minute tolerance; templates map payload dot paths; filters control which payloads create tasks; dedupe_key ensures retry idempotency. Ingress tasks carry an ingress label, source fields, and an external-source warning, and are ignored by automation rules by default unless explicitly opted in.

Usage

Add this MCP server to your MCP client configuration (for example Claude Code's claude_code_config.json). Existing owner agents use https://api.delega.dev,这不是公开注册端点。智能体密钥通过环境变量传递而非命令行参数,避免进程列表泄露。非本地 DELEGA_API_URL must use https://。Cloudflare Access credentials are optional for custom deployments, but the client rejects some configurations. MCP tool output redacts the full agent API key by default.

Network resilience

Read-only API calls retry up to three times for transient network failures within a single 35-second deadline. Mutating calls (POST, PUT, DELETE) are never automatically retried, to avoid duplicate writes. Non-success HTTP responses are surfaced immediately, without retry. HTTP redirects are rejected (including same-host different-path), redirects are reported as API errors and are not retried, and their target and response body are omitted from the error.

Use cases

Suitable for private deployment environments that need to provide AI agents with task coordination, delegation chains, persistent context, automation rules, and external event ingestion.

Limitations

  • The public hosted service has been retired; there are no public accounts and no public hosting plans available for purchase.
  • The default hosted endpoint only accepts existing owner credentials.
  • Task content, comments, and context are user-authored untrusted data and should be treated as data rather than instructions; external side effects (publishing, deleting, deploying, sending messages) require operator approval.
  • Do not set DELEGA_REVEAL_AGENT_KEYS=1 in production; this flag is only for initial setup.
  • The private human request API must be enabled separately on the API side; installing the MCP client will not enable it.
  • Before upgrading MCP, the API's pagination/context selector support must be deployed first.
  • Pagination is offset-based, not a snapshot of concurrent writes.