Skip to content

Conversation

@koic
Copy link
Member

@koic koic commented Nov 14, 2025

Motivation and Context

Consolidates four identical constructions of error Tool::Response in handle_call_tool_request into a single private error_tool_response method, reducing duplication and improving maintainability. No behavior change.

How Has This Been Tested?

All existing tests are passing.

Breaking Changes

None.

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

Consolidates four identical constructions of error `Tool::Response` in
`handle_call_tool_request` into a single private `error_tool_response` method,
reducing duplication and improving maintainability. No behavior change.
@koic koic merged commit 26bbdfc into modelcontextprotocol:main Nov 20, 2025
5 checks passed
@koic koic deleted the refactor_mcp_server branch November 20, 2025 17:43
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