Skip to content

Conversation

@Randgalt
Copy link
Contributor

Support an HTTP GET handler for HttpServletStatelessServerTransport

Currently, HttpServletStatelessServerTransport always returns
SC_METHOD_NOT_ALLOWED for GET. With this change, consumers of the
library can implement their own GET handler so that they can implement
the Session semantics of the MCP protocol.

Motivation and Context

Combined with #641 we'd have enough to implement support for MCP sessions.

How Has This Been Tested?

It's a very simple change - is a test needed?

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

Additional context

Currently, `HttpServletStatelessServerTransport` always returns
`SC_METHOD_NOT_ALLOWED` for GET. With this change, consumers of the
library can implement their own GET handler so that they can implement
the Session semantics of the MCP protocol.
@Randgalt Randgalt changed the title Jordanz/support get handler Support an HTTP GET handler for HttpServletStatelessServerTransport Oct 30, 2025
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.

1 participant