Skip to content

Conversation

@Kehrlann
Copy link
Contributor

@Kehrlann Kehrlann commented Oct 23, 2025

Introduce a ClosedMcpTransportSession, representing what remains of a session after calling .closeGracefully() on a client transport.

Motivation and Context

The McpTransport#closeGracefully docs say that it "releases any associated resources asynchronously". This was not the case, as a new session was created. The current implementation from streamable transports would instead recreate a session.

See also #610

…concrete types

Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
@Kehrlann Kehrlann requested review from chemicL and tzolov October 23, 2025 13:07
@Kehrlann Kehrlann added the bug Something isn't working label Oct 23, 2025
Copy link
Contributor

@tzolov tzolov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @Kehrlann

@tzolov tzolov removed the request for review from chemicL October 28, 2025 13:25
@tzolov tzolov merged commit 9bbfbe5 into modelcontextprotocol:main Oct 28, 2025
1 check passed
@Kehrlann Kehrlann deleted the dgarnier/closeable-mcp-session branch October 28, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants