G: F5 document the MCP stream and session delete
This commit is contained in:
1 parent
abd5b12cd0
commit
a1117da01d
4 files changed
+183
-8
No files matched your search
+4
-5
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user