Commit 584adf7
committed
fix: resolve all remaining test failures
Root cause: extractInboundTaskContext tried to create a RequestTaskStore
even when the Protocol had no taskStore configured (client-side). When a
client received a task-related elicitation request, the store creation
threw, silently breaking the handler response flow.
Fix: Only create taskContext (with RequestTaskStore) when _taskStore is
configured. Clients receiving task-related requests (elicitation, sampling)
still get relatedTaskId for metadata propagation but don't get a taskStore.
Also:
- Fix McpServer handleAutomaticTaskPolling to construct JSONRPCRequest for
createRequestTaskStore
- Remove debug logging
Results:
- Core: 430/430 pass
- Integration: 487/487 pass
- Type errors: 01 parent 32ad855 commit 584adf7
File tree
1 file changed
+11
-8
lines changed1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
468 | 471 | | |
469 | 472 | | |
470 | 473 | | |
| |||
0 commit comments