Commit 278880a
authored
mcp: surface task statusMessage notifications in chat progress (#298369)
- When a tool call returns a CreateTaskResult, the MCP server now forwards
task statusMessage from notifications/tasks/status into the chat progress
stream via the ToolProgress callback
- Adds onStatusMessage optional callback to McpTask constructor to report
status messages as they come in from server notifications
- Updates callTool method signature to accept onStatusMessage callback,
passed from _callWithProgress in mcpServer.ts
- This allows task-mode MCP tools to communicate progress through the
established progress channel without requiring duplicate progress
notifications
Fixes #298013
(Commit message generated by Copilot)1 parent 3cfe883 commit 278880a
File tree
2 files changed
+8
-4
lines changed- src/vs/workbench/contrib/mcp/common
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | | - | |
| 1090 | + | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
| 607 | + | |
607 | 608 | | |
608 | 609 | | |
609 | 610 | | |
| |||
735 | 736 | | |
736 | 737 | | |
737 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
738 | 742 | | |
739 | 743 | | |
740 | 744 | | |
| |||
0 commit comments