Commit 6184030
test(mcp): lock in over-length rejection + unlisted-v4 readability
Turn two /verify observations into assertions:
- answer rejects an over-length (1200-char) question via validateQuestion's
MAX_QUESTION cap, before any retrieve/generate.
- resources/list omits legacy v4, but a v4 page still reads through the
template — listing is discovery, not an allowlist.
Both verified live on :9936.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eijma5uKcPZi9tqV2aJBeh1 parent 1d6a9de commit 6184030
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
115 | 126 | | |
116 | 127 | | |
117 | 128 | | |
| |||
0 commit comments