Skip to content

fix: send SEP-2243 streamable HTTP headers#2724

Open
he-yufeng wants to merge 1 commit into
modelcontextprotocol:mainfrom
he-yufeng:fix/streamable-http-sep2243-headers
Open

fix: send SEP-2243 streamable HTTP headers#2724
he-yufeng wants to merge 1 commit into
modelcontextprotocol:mainfrom
he-yufeng:fix/streamable-http-sep2243-headers

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • add SEP-2243 mcp-method headers to streamable HTTP POST requests
  • add mcp-name for tool calls, prompt gets, and resource read/subscribe/unsubscribe requests
  • cover the method/name mapping without changing existing session or protocol-version headers

To verify

  • uv run pytest tests/shared/test_streamable_http.py -q
  • uv run ruff check src/mcp/client/streamable_http.py tests/shared/test_streamable_http.py
  • uv run ruff format --check src/mcp/client/streamable_http.py tests/shared/test_streamable_http.py
  • git diff --check

@he-yufeng he-yufeng force-pushed the fix/streamable-http-sep2243-headers branch from 9ce1a60 to 47e5ddd Compare May 29, 2026 23:50
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