Commit 08a6ca3
Revert optimization tool from task-based to synchronous
No MCP clients currently support the experimental Tasks API:
- MCP Inspector: task support not available
- Claude Desktop/CLI: returns error -32601 (task augmentation required)
- Goose: falls back to other tools
Changes:
- Remove task-based OptimizationTask.ts implementation
- Re-enable synchronous OptimizationTool.ts (with polling)
- Remove task capabilities from server (taskStore, InMemoryTaskStore, etc.)
- Update OptimizeDeliveriesPrompt to remove task-based language
- Tool now blocks for 5-10 seconds during optimization (necessary trade-off)
The synchronous version:
- Works in all current MCP clients
- Still does async polling internally (POST job, GET results)
- Returns results when optimization completes
- All 422 tests passing
We can convert back to task-based when clients add support.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 79d72f5 commit 08a6ca3
3 files changed
Lines changed: 4 additions & 447 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
27 | | - | |
28 | | - | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
| |||
68 | 62 | | |
69 | 63 | | |
70 | 64 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 65 | | |
75 | 66 | | |
76 | 67 | | |
| |||
81 | 72 | | |
82 | 73 | | |
83 | 74 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 75 | + | |
| 76 | + | |
89 | 77 | | |
90 | 78 | | |
91 | 79 | | |
92 | 80 | | |
93 | 81 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 82 | | |
99 | 83 | | |
100 | 84 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 85 | | |
105 | 86 | | |
106 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | | - | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
| |||
0 commit comments