Commit 7ad4702
Fix stateless IncompleteResultException and add stateless MRTR tests
Allow IncompleteResultException to serialize as IncompleteResult in
stateless mode where ClientSupportsMrtr() returns false. The low-level
API is designed for stateless servers that cannot determine client MRTR
support.
Add 5 end-to-end tests using Streamable HTTP in stateless mode:
- Elicitation, sampling, and roots individually
- All three concurrent (with TCS concurrency proof barriers)
- Multi-round-trip with requestState across 2 retries
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9d20c02 commit 7ad4702
File tree
2 files changed
+444
-3
lines changed- src/ModelContextProtocol.Core/Server
- tests/ModelContextProtocol.AspNetCore.Tests
2 files changed
+444
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
1250 | | - | |
1251 | | - | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
1252 | 1253 | | |
1253 | 1254 | | |
1254 | 1255 | | |
| |||
1261 | 1262 | | |
1262 | 1263 | | |
1263 | 1264 | | |
1264 | | - | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
1265 | 1269 | | |
1266 | 1270 | | |
1267 | 1271 | | |
| |||
0 commit comments