Commit acda69c
fix: [release] scope MCP annotation-hint classifier to the path array
Follow-up to the v0.9.1 adversarial review. `isAnnotationHintValidationError`
previously AND-ed three independent substring checks (`"path"`, `annotations`,
a hint name) anywhere in the error text, so an unrelated field's Zod validation
error whose message merely co-mentioned those words could trip the tolerant
`tools/list` retry. Require the hint to sit immediately after `annotations`
inside a serialized `"path"` array (`"path":[...,"annotations","<hint>"]`), which
pins the retry to a genuine annotation-hint error while still matching the real
Microsoft Fabric payload. Covered by the v0.9.1 adversarial suite.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 4baf41b commit acda69c
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
0 commit comments