Skip to content

mcp: include decoded batch metadata in Streamable HTTP request summaries - #1286

Closed
CaliLuke wants to merge 1 commit into
modelcontextprotocol:mainfrom
CaliLuke:codex/issue-271-batch-summary
Closed

CaliLuke wants to merge 1 commit into
modelcontextprotocol:mainfrom
CaliLuke:codex/issue-271-batch-summary

Conversation

@CaliLuke

@CaliLuke CaliLuke commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Extend the existing OnRequestSummary hook to report decoded JSON-RPC batches. Batch summaries include a count, sorted unique request methods, and notification-only status while leaving single-message fields empty. The callback runs after SDK parsing and before protocol-version validation or dispatch. No request body is reread or retained. Tests cover mixed and notification-only batches, accepted legacy and rejected current protocol versions, and existing body handling.

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