Commit ce24274
fix: quote ProtocolVersion in DESCRIBE CONSUMED MCP SERVICE output (issue #435)
ProtocolVersion was emitted unquoted (e.g. ProtocolVersion: 2024-11-05),
which the parser reads as integer arithmetic (2024 minus 11 minus 5) and
rejects. The value is a version string, not a number, and must be quoted.
Changed the format string from `%s` to `'%s'` (matching how Version and
Documentation are already handled). The quoted form already round-trips
correctly via the STRING_LITERAL alternative in modelProperty.
Updated TestDescribeAgentEditorConsumedMCPService_Mock to assert the
quoted form and added a parse roundtrip check.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d930199 commit ce24274
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
527 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
528 | 536 | | |
529 | 537 | | |
530 | 538 | | |
| |||
0 commit comments