Commit 6e1bfac
committed
Add multi-version protocol types: two wire-shape surface packages
One superset type set in mcp.types plus two hand-validated model
packages: mcp.types.v2025_11_25, whose models serve every protocol
version up to and including 2025-11-25 (the schemas through that
revision evolve strictly additively; a structural coverage test proves
the newest one covers them all), and mcp.types.v2026_07_28 for the new
protocol revision.
Serialization is additive-only: nothing is ever removed from a model's
dump at any version. Sessions at 2025-11-25 and earlier emit the plain
dump byte for byte; on 2026-07-28 sessions the wire boundary injects
the protocol-required fields the caller left unset (resultType, the
ttlMs/cacheScope don't-cache defaults, the reserved protocolVersion
_meta entry) and validates the result through the 2026-07-28 models as
a check before emitting the injected dump unchanged.1 parent 7267818 commit 6e1bfac
32 files changed
Lines changed: 27067 additions & 194 deletions
File tree
- docs
- scripts
- src/mcp
- types
- v2025_11_25
- v2026_07_28
- tests
- spec_oracles
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1166 | 1166 | | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | | - | |
| 1169 | + | |
1170 | 1170 | | |
1171 | | - | |
| 1171 | + | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1174 | 1181 | | |
1175 | 1182 | | |
1176 | 1183 | | |
| |||
1214 | 1221 | | |
1215 | 1222 | | |
1216 | 1223 | | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
1217 | 1228 | | |
1218 | 1229 | | |
1219 | 1230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
146 | 159 | | |
147 | 160 | | |
148 | 161 | | |
| |||
177 | 190 | | |
178 | 191 | | |
179 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
180 | 196 | | |
181 | 197 | | |
182 | 198 | | |
| |||
0 commit comments