G: F5 document the MCP stream and session delete

This commit is contained in:
ari committed 2026-10-20 15:54:13 -04:00
1 parent abd5b12cd0
commit a1117da01d
4 files changed
+183 -8

No files matched your search

+4 -5
View File
@@ -494,11 +494,10 @@ fn every_operation_is_read_only() {
("patch", item.patch.is_some()),
] {
if present {
assert_eq!(
(method, path.as_str()),
("post", "/mcp"),
"{method} {path} is a write path"
);
// `DELETE /mcp` ends an MCP session, a server-local session
// only; it is not a write path to the host.
let session = matches!((method, path.as_str()), ("post" | "delete", "/mcp"));
assert!(session, "{method} {path} is a write path");
}
}
}