diff --git a/changelog/4034.changed.md b/changelog/4034.changed.md new file mode 100644 index 000000000..4b4637ffe --- /dev/null +++ b/changelog/4034.changed.md @@ -0,0 +1 @@ +- MCPClient now requires async with MCPClient(...) as mcp: or explicit start()/close() calls to manage the connection lifecycle. diff --git a/changelog/4034.fixed.md b/changelog/4034.fixed.md new file mode 100644 index 000000000..18d000d07 --- /dev/null +++ b/changelog/4034.fixed.md @@ -0,0 +1 @@ +- Fixed MCPClient opening a new connection for every tool call instead of reusing the session.