Skip to content

Commit 5941b54

Browse files
committed
feat: add MCP tasks support to example server
Add task-based execution support for the longRunningOperation tool, demonstrating the MCP Tasks protocol. Changes include: - Add InMemoryTaskStore and InMemoryTaskMessageQueue - Declare tasks capability with list, cancel, and tool call support - Extract runLongOperation helper for background task execution - Add task status updates and cancellation checking during long operations - Update SDK to 1.26.0 for tasks support
1 parent 60a011f commit 5941b54

3 files changed

Lines changed: 234 additions & 110 deletions

File tree

package-lock.json

Lines changed: 38 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@modelcontextprotocol/ext-apps": "^1.0.1",
27-
"@modelcontextprotocol/sdk": "1.24.2",
27+
"@modelcontextprotocol/sdk": "1.26.0",
2828
"@modelcontextprotocol/server-budget-allocator": "^1.0.1",
2929
"@modelcontextprotocol/server-cohort-heatmap": "^1.0.1",
3030
"@modelcontextprotocol/server-customer-segmentation": "^1.0.1",

0 commit comments

Comments
 (0)