Commit 5dcfd78
committed
fix(mcp): fail-closed on reserved-path collision; drop dead reserved entry (review)
- Reserved-path collision now throws (refuses to start) instead of warning, so
a QVERIS_MCP_HTTP_PATH set to /health or the catalog path can't silently start
a server whose MCP endpoint is shadowed (every POST -> 405). Consistent with
the fail-closed non-loopback-without-auth check.
- Drop the dead '${config.path}/server-card' reserved entry — it's always longer
than config.path and could never match. Added a collision test.1 parent 924e0af commit 5dcfd78
2 files changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
308 | 318 | | |
309 | 319 | | |
310 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
289 | 292 | | |
290 | | - | |
291 | | - | |
292 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| |||
0 commit comments