Skip to content

Commit 54207a2

Browse files
test(mcp): Use TestClient for Streamable HTTP (#5383)
Stop mocking transport layer of the `mcp` package in tests. Convert functions annotated with `@mcp.call_tool`, and analogous resource and prompt decorators, to async if, and only if, an exception is raised when going through the transport layer.
1 parent 0c38bd5 commit 54207a2

File tree

1 file changed

+244
-113
lines changed

1 file changed

+244
-113
lines changed

0 commit comments

Comments
 (0)