human-delegation
Enables agents to delegate tasks to humans through a Telegram bot, supporting notifications, questions, and result submissions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@human-delegationDelegate to Bob: proofread the draft contract by 5pm."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Delegate to Human
An MCP server that gives agentic harnesses a human-delegation tool. Agents discover registered humans, delegate asynchronous tasks, answer clarification questions, and accept or request revisions to submitted results.
Humans receive and answer work through:
Web: authenticated inbox with threaded messages, result submission, and files.
Email: assignment notification with a one-time secure web link.
Telegram: bot notifications and
/question,/message, and/resultreplies.
Architecture
The service is harness-neutral. It exposes seven MCP tools over Streamable HTTP:
Tool | Purpose |
| Discover active humans, skills, availability, and channels |
| Create an asynchronous task for a specific human |
| Read task status, thread, result, and attachment links |
| List tasks created by the current agent API key |
| Answer questions or add task context |
| Accept a result or request revision |
| Cancel unfinished work |
The task lifecycle is:
pending_delivery -> awaiting_human
awaiting_human -> awaiting_agent -> awaiting_human
awaiting_human -> awaiting_agent_review -> completed
awaiting_agent_review -> awaiting_human (revision requested)declined, expired, canceled, and delivery_failed are terminal states.
Related MCP server: persistproc
Local setup
Requirements: Node.js 24+, pnpm 11+, and SQLite-compatible native build support.
pnpm install
cp .env.example .envGenerate secrets and place them in .env:
openssl rand -base64 32 # ENCRYPTION_KEY
openssl rand -hex 32 # TOKEN_SECRET
openssl rand -hex 32 # ADMIN_TOKENBuild and run:
pnpm build
pnpm startNote: static assets are content-hashed and enumerated at server start. Always rebuild before starting (or restart after a rebuild) — rebuilding the web bundle under an already-running server serves stale assets.
Open:
Human inbox:
http://localhost:3000/Admin console:
http://localhost:3000/adminMCP endpoint:
http://localhost:3000/mcpHealth check:
http://localhost:3000/health
The admin console uses ADMIN_TOKEN. Create at least one human profile and one API
key there. The raw API key is shown once.
For development, run the API and Vite dev server together:
pnpm devThe UI is then at http://localhost:5173; /api requests are proxied to port 3000.
MCP client configuration
Configure any Streamable HTTP MCP client with:
{
"url": "http://localhost:3000/mcp",
"headers": {
"Authorization": "Bearer dth_REPLACE_WITH_ISSUED_KEY"
}
}For harnesses that only launch local stdio MCP servers, use an HTTP-to-MCP bridge and pass the same URL and authorization header. The service itself intentionally does not depend on a particular agent harness.
The intended agent flow is:
Call
list_humans.Call
delegate_to_humanwith an explicithuman_id.Continue other work and periodically call
get_human_task.When the task is
awaiting_agent, usemessage_human.When it is
awaiting_agent_review, callreview_human_result.
Channel configuration
Channel credentials are encrypted at rest with AES-256-GCM using ENCRYPTION_KEY.
Each human has an ordered preference list. If a preferred channel fails, delivery
falls back to the next configured channel. An explicit channel in
delegate_to_human is strict and does not fall back.
Set SMTP_HOST, SMTP_PORT, SMTP_FROM, and optional authentication values in
.env. Email is outbound-only; recipients answer through the secure web link.
Telegram
Set:
TELEGRAM_BOT_TOKEN=...
TELEGRAM_WEBHOOK_SECRET=...Register the webhook after the service is publicly reachable:
curl -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/setWebhook" \
-H "content-type: application/json" \
-d "{
\"url\": \"https://YOUR_HOST/api/telegram/webhook\",
\"secret_token\": \"${TELEGRAM_WEBHOOK_SECRET}\"
}"Add the recipient's numeric Telegram chat ID to their admin profile. The bot accepts:
/question TASK_UUID clarification needed
/message TASK_UUID progress update
/result TASK_UUID final resultFiles are uploaded and downloaded through signed web links rather than native email or Telegram attachments.
Docker
cp .env.example .env
# Fill in required secrets.
docker compose up --buildSQLite and attachments persist under ./data, mounted at /app/data.
Security model
Agent API keys are stored only as SHA-256 hashes and can be revoked.
Human web sessions use signed, HTTP-only cookies.
Email and generated admin login links are one-time and expire.
Attachment URLs are task-scoped and expire.
Telegram webhook updates are deduplicated and bound to configured chat IDs.
Channel credentials use authenticated encryption at rest.
Task data is isolated by the API key that created it and the assigned human.
Run verification with:
pnpm typecheck
pnpm test
pnpm buildThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tomer-Barak/human-delegation'
If you have feedback or need assistance with the MCP directory API, please join our Discord server