Skip to content

fix(client): Fixes a bug in McpClientSession.sendRequest()#324

Closed
logan-querypie wants to merge 1 commit intomodelcontextprotocol:mainfrom
logan-querypie:fix/handle_message_404
Closed

fix(client): Fixes a bug in McpClientSession.sendRequest()#324
logan-querypie wants to merge 1 commit intomodelcontextprotocol:mainfrom
logan-querypie:fix/handle_message_404

Conversation

@logan-querypie
Copy link
Copy Markdown

Motivation and Context

Fixes a bug in McpClientSession.sendRequest() where it waited until timeout when receiving error responses such as 4xx or 5xx.
Returning failedFuture() when an error is detected in HttpClientSseClientTransport.sendMessage() resolves the issue.

How Has This Been Tested?

Our project’s server uses this SDK to relay MCP communication, and we’ve confirmed that it works well in that environment.

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants