Repository navigation
Conversation
Author
|
Oof - apologies for the slop PR. I gave no human review into this whatsoever. Right now I'm working on a project and wanted to reuse this sdk, but updated to the new stateless MCP specifications. My intent was to submit a PR only after giving it a run, some reviews, and sitting on it for a bit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clients using MCP 2026-07-28 need per-request metadata and discovery instead of an initialize/session handshake. This adds that path alongside the existing 2025-06-18, 2025-03-26 and 2024-11-05 behavior, based on
client-support(PR #5).The change adds stdio/HTTP server dispatch, modern client discovery and request metadata, explicit multi-round results, request-scoped subscriptions, mirrored HTTP headers, tool input-schema validation and bounded stdio frames. It also preserves application JSON key spelling and maps external integer request IDs around jsonrpc4clj's narrower ID constraint.
Validation:
make format,make check: pass.make test: 63 tests, 292 assertions, zero failures/errors; includes real HTTP client/server multi-round calls and legacy regressions.This is initial modern protocol support, not a full conformance/tier claim. OAuth, Tasks, progress/log streaming and the complete content/client/multi-round conformance suites are not validated. Applications remain responsible for authenticating opaque request state, validating returned inputs, and bounding backend execution. The intervening 2025-11-25 revision is not added.
docs/mcp-2026-07-28.mddocuments the APIs and these limits.The PR targets
client-supportto keep it separate from the existing PR #5 changes.