Commit 5941b54
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 support1 parent 60a011f commit 5941b54
3 files changed
Lines changed: 234 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments