delega-mcp
delega-mcp
Delega 用のMCPサーバー — AIエージェントのためのタスクインフラストラクチャ。
MCP互換クライアント(Claude Code、Cursor、Codexなど)をDelegaインスタンスに接続し、自然言語を通じてタスク、プロジェクト、エージェントを管理します。
インストール
npm install -g @delega-dev/mcpRelated MCP server: task-passport
設定
MCPクライアントの設定(例: 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"
}
}
}
}環境変数
変数 | デフォルト | 説明 |
|
| Delega APIエンドポイント |
| (なし) | 認証済みリクエスト用エージェントAPIキー |
|
| ⚠️ 開発専用。 |
ホスト型ティアの場合は、URLとして https://api.delega.dev を使用してください。
セキュリティに関する注意点
ローカル以外の
DELEGA_API_URL値にはhttps://を使用する必要があります。エージェントキーはコマンドライン引数ではなく環境変数を介して渡されるため、プロセスリストからの漏洩を防ぎます。
MCPツールの出力では、デフォルトで完全なエージェントAPIキーが隠蔽されます。
本番環境で
DELEGA_REVEAL_AGENT_KEYS=1を設定しないでください。 このフラグは初期設定専用です。本番環境では、プロンプトインジェクションを受けたエージェントがcreate_agentやlist_agentsツールの出力からキーを流出させる可能性があります。キーは作成時に一度だけ返されます。新しいキーが必要な場合はrotate_agent_keyを使用してください。
ツール
ツール | 説明 |
| タスクの一覧表示(プロジェクト、ラベル、期限、完了状態でフィルタリング可能) |
| サブタスクを含むタスクの詳細を取得 |
| 新しいタスクを作成 |
| タスクフィールドを更新( |
| タスクをエージェントに割り当て( |
| タスクを委任:親にリンクされた子タスクを作成(親のステータスは |
| タスクの完全な委任チェーンを返す(ルート + 子孫、深さ順) |
| タスクの永続的なコンテキストBLOBにキーをマージ(置換ではなくディープマージ) |
| 提案されたタスクの内容が既存のオープンタスクと類似しているかを確認(Jaccard類似度)。重複作業を避けるため |
| クォータとレート制限情報を返す。ホスト型API専用 ( |
| タスクを完了としてマーク |
| タスクを完全に削除 |
| タスクにコメントを追加 |
| すべてのプロジェクトを一覧表示 |
| タスク統計を取得 |
| 登録済みエージェントを一覧表示 |
| 新しいエージェントを登録(APIキーを返す) |
| エージェントを削除(アクティブなタスクがある場合は拒否されます) |
| すべてのWebhookを一覧表示(管理者のみ) |
| イベント通知用のWebhookを作成(管理者のみ) |
| IDでWebhookを削除(管理者のみ) |
タスクの出力形式
タスクを返すツール(list_tasks、get_task、create_task、update_task、assign_task)は、利用可能な場合に割り当てメタデータとともに各タスクを表示します:
[#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: noAssigned to / Created by / Completed by の行は、基盤となるフィールドが入力されている場合にのみ出力されます。セルフホスト版Delegaはネストされたエージェントオブジェクトを返すため、割り当て先は <display_name> (#id) として表示されます。ホスト版 api.delega.dev ティアは生のエージェントIDを返すため、#<id> として表示されます。
委任チェーンの一部であるタスクは、チェーンのメタデータも表示します:
[#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)単一タスクツール(get_task、create_task、update_task、assign_task、delegate_task、update_task_context)は、完全な context BLOBをプリティプリントする詳細表示を使用します(2000文字で切り詰め)。list_tasks は簡潔なリスト表示を使用し、代わりに Context keys: … を表示します。
委任チェーン
get_task_chain は、チェーン内の任意のタスクに対して完全な親/子チェーンを返します。出力は 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)ノードは深さ順、次に作成順にソートされます(APIのレスポンス順序と一致)。
セルフホスト vs ホスト型
セルフホスト(無料): 独自のDelegaインスタンスを実行し、DELEGA_API_URL をそこに向けます。
ホスト型: https://api.delega.dev を使用します。月間1,000タスクまで無料です。
リンク
ライセンス
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