Commit f1dd4c4
Remove stateless check from ClientSupportsMrtr
ClientSupportsMrtr now purely reflects whether the client negotiated
the MRTR protocol version, independent of server transport mode.
The stateless guard is moved to the call site that gates the high-level
await path (which requires storing continuations). This makes
IsMrtrSupported return true in stateless mode when the protocol matches,
which is correct for the low-level IncompleteResultException API.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 80417c0 commit f1dd4c4
File tree
2 files changed
+45
-10
lines changed- src/ModelContextProtocol.Core/Server
- tests/ModelContextProtocol.AspNetCore.Tests
2 files changed
+45
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | | - | |
1147 | | - | |
| 1146 | + | |
1148 | 1147 | | |
1149 | 1148 | | |
1150 | | - | |
1151 | 1149 | | |
1152 | 1150 | | |
1153 | 1151 | | |
| |||
1217 | 1215 | | |
1218 | 1216 | | |
1219 | 1217 | | |
1220 | | - | |
1221 | | - | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1222 | 1221 | | |
1223 | 1222 | | |
1224 | 1223 | | |
| |||
1262 | 1261 | | |
1263 | 1262 | | |
1264 | 1263 | | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1269 | 1268 | | |
1270 | 1269 | | |
1271 | 1270 | | |
| |||
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
| |||
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
437 | 473 | | |
0 commit comments