Commit b077b0f
committed
mcp: delete the last hand-written tool shapes from the remote server (#9662)
`grep -cE "^const \w+Shape = \{" src/mcp/server.ts` returns **0**.
Four of them were still a registration's `inputSchema` -- `issueRagShape`, `findOpportunitiesShape`,
`localBranchVariantsShape`, `variantsShape` -- agreeing with their contract entries only by history,
with nothing to keep them agreeing. The other fifteen had stopped being registered but survived as the
TYPE of their handler (`z.infer<z.ZodObject<typeof preflightShape>>`), which is the same defect one
step removed: a handler typed off a hand-written shape can drift from the contract the tool actually
registers with, and the compiler is satisfied either way.
Both variant tools took the narrower element type: `ComparePrVariantsInput.variants` was an array of
the STDIO server's `LocalScoreInput` while the remote's own handler expected the wider one, so the
remote accepted variants its registry entry rejected. The element is the union now, with
`StdioComparePrVariantsInput` / `StdioCompareLocalVariantsInput` as the declared narrowings -- the
same treatment their singular siblings got.
Gone with them: `changedFileSchema`, `validationEntrySchema` and `planRepoIssuesMilestoneShape`, which
existed only to build the shapes above; the contract already declares all three.1 parent 8fbd5c3 commit b077b0f
3 files changed
Lines changed: 43 additions & 301 deletions
File tree
- packages
- loopover-contract/src/tools
- loopover-mcp/bin
- src/mcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
| |||
381 | 385 | | |
382 | 386 | | |
383 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
384 | 394 | | |
385 | 395 | | |
386 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
| 167 | + | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
1620 | 1620 | | |
1621 | 1621 | | |
1622 | 1622 | | |
1623 | | - | |
| 1623 | + | |
1624 | 1624 | | |
1625 | 1625 | | |
1626 | 1626 | | |
1627 | 1627 | | |
1628 | 1628 | | |
1629 | 1629 | | |
| 1630 | + | |
1630 | 1631 | | |
1631 | 1632 | | |
1632 | 1633 | | |
| |||
1757 | 1758 | | |
1758 | 1759 | | |
1759 | 1760 | | |
1760 | | - | |
| 1761 | + | |
1761 | 1762 | | |
1762 | 1763 | | |
1763 | 1764 | | |
| |||
1776 | 1777 | | |
1777 | 1778 | | |
1778 | 1779 | | |
| 1780 | + | |
1779 | 1781 | | |
1780 | 1782 | | |
1781 | 1783 | | |
| |||
0 commit comments