Commit e92fb9a
fix(mcp): use FORBIDDEN for read-only upsert rejection (RAAE-1607)
Align the read-only write rejection with the FORBIDDEN error code used on the
1604 branch, instead of INVALID_REQUEST. A read-only binding is a permission
policy denial (the request is well-formed but not allowed), so FORBIDDEN is the
correct category; INVALID_REQUEST remains for malformed/unroutable requests
(unknown index, omitted index, bad shapes). Keeps the two stacked branches
consistent so they reconcile cleanly when the stack is collected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2270ccd commit e92fb9a
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- redisvl/mcp/tools
- tests
- integration/test_mcp
- unit/test_mcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
0 commit comments