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

1 file changed

Lines changed: 244 additions & 113 deletions

File tree

0 commit comments

Comments
 (0)