Commit bc3f863
fix(mcp): normalize names in CLI lookup commands, guard empty names
Address follow-up review feedback:
- Add normalize_server_name() to remove_server, auth_server,
test_server, and toggle_server CLI commands so lookups match
the normalized name stored by add_server
- Add empty-name guard in web API extensions install handler to
reject names like "@#$" that normalize to ""
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent deb16af commit bc3f863
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
303 | 304 | | |
304 | 305 | | |
305 | 306 | | |
| |||
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
| 425 | + | |
424 | 426 | | |
425 | 427 | | |
426 | 428 | | |
| |||
505 | 507 | | |
506 | 508 | | |
507 | 509 | | |
| 510 | + | |
508 | 511 | | |
509 | 512 | | |
510 | 513 | | |
| |||
630 | 633 | | |
631 | 634 | | |
632 | 635 | | |
| 636 | + | |
633 | 637 | | |
634 | 638 | | |
635 | 639 | | |
| |||
0 commit comments