Skip to content

Use missing_session_id_response method in handle_delete#260

Merged
koic merged 1 commit intomodelcontextprotocol:mainfrom
koic:use_missing_session_id_response_helper_in_handle_delete
Mar 18, 2026
Merged

Use missing_session_id_response method in handle_delete#260
koic merged 1 commit intomodelcontextprotocol:mainfrom
koic:use_missing_session_id_response_helper_in_handle_delete

Conversation

@koic
Copy link
Member

@koic koic commented Mar 18, 2026

Motivation and Context

handle_delete had an inline error response for "Missing session ID" that was identical to the existing missing_session_id_response helper method. handle_get already uses this helper for the same purpose.

How Has This Been Tested?

All existing tests pass. The behavior is unchanged.

Breaking Change

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

## Motivation and Context

`handle_delete` had an inline error response for "Missing session ID" that
was identical to the existing `missing_session_id_response` helper method.
`handle_get` already uses this helper for the same purpose.

## How Has This Been Tested?

All existing tests pass. The behavior is unchanged.

## Breaking Change

None.
@koic koic force-pushed the use_missing_session_id_response_helper_in_handle_delete branch from c084197 to 75d03f3 Compare March 18, 2026 03:17
@koic koic merged commit 283c7a4 into modelcontextprotocol:main Mar 18, 2026
11 checks passed
@koic koic deleted the use_missing_session_id_response_helper_in_handle_delete branch March 18, 2026 03:47
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