Skip to content

Instantly share code, notes, and snippets.

@lilyjma
lilyjma / README.md
Last active June 9, 2026 18:39
Long-running MCP tools using Durable Functions

Long-running MCP tools using Durable Functions

Status: workaround. This sample demonstrates a pragmatic way to run long-running MCP tools today, before the MCP Task extension (SEP-2663) is available in the Azure Functions MCP trigger. Once tasks land, the protocol handles async natively (server returns resultType: "task", client polls tasks/get via the SDK) and this two-tool workaround becomes unnecessary.

The problem