Subscribe to the Non-Human & AI Identity Journal

Notifications
Clear all

MCP async tasks: what changes for AI agent governance?


(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 2827
Topic starter  

TL;DR: MCP Tasks add durable, requestor-driven async execution to the Model Context Protocol, letting long-running tool calls return a task handle for later polling, cancellation, or result retrieval, according to WorkOS. The governance issue is that task IDs become capability-bearing handles, so authorization, TTL, and follow-up access binding now matter as much as the work itself.

NHIMG editorial — based on content published by WorkOS: MCP Async Tasks: Building long-running workflows for AI Agents

By the numbers:

Questions worth separating out

Q: How should security teams govern MCP async task handles in production?

A: Security teams should treat MCP task handles as sensitive, scoped capabilities tied to the original user, tenant, or API client.

Q: Why do MCP Tasks change the risk profile of non-human identities?

A: MCP Tasks turn a one-shot call into a durable execution path, so the access decision no longer ends when the initial request returns.

Q: What breaks when task IDs are not bound to the original identity context?

A: If task IDs are not bound to the original identity context, any later poll or result request can become a replayable access path into in-flight work.

Practitioner guidance

  • Bind every taskId to the originating identity context Require tasks/get, tasks/result, and tasks/cancel to succeed only for the same tenant, user, or API client that created the task.
  • Set short, enforceable TTLs for background executions Use the receiver’s returned TTL as the operational limit, not the requestor’s preference.
  • Scope async eligibility per tool, not just per server Review which operations are allowed to become tasks and mark sensitive or fast-path actions as forbidden where background execution adds no value.

What's in the full article

WorkOS's full article covers the implementation detail this post intentionally leaves for the source:

  • The full task lifecycle examples for tools/call, tasks/get, tasks/result, and tasks/cancel in MCP.
  • The exact JSON structures for task metadata, including taskId, ttl, status, and related-task correlation.
  • The protocol edge cases around input_required, pollInterval, and status notifications that affect client UX.
  • The security implementation notes for durable task storage, idempotency, and auth-context binding.

👉 Read WorkOS's guide to MCP async tasks and long-running agent workflows →

MCP async tasks: what changes for AI agent governance?

Explore further

View Full Forum →  |  NHI Foundation Course →



   
Quote
Share: