Repository navigation
Port the MCP layer to mcp 2.x - #157
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Moves Ragbot from mcp 1.27.1 to 2.3.0, the current release. This replaces Dependabot #148, which could not carry the change as a version bump. The full record is in the "mcp 2.x port" section of
docs/security/dependabot-triage-2026-11.md.Port
params=, string URIs,ClientRequestContextcallbacks, snake_case attributes.synthesis_engine.mcp.tasks: 2.x has no client task helpers, so the module sends the 2025-11-25 task requests itself and polls at the server's suggested interval.httpx2.AsyncClientcarrying headers, timeout and OAuth. The OAuth callback returnsAuthorizationCodeResult, including RFC 9207iss.RagbotMCPServer: handlers are passed to the 2.x constructor. Tool calls validate input and output schemas and return structured content plus error results, which 1.x did implicitly.isErrorand structured content.Defects fixed along the way
isError. On 2.x that attribute does not exist, so failed MCP tool calls would have reached the agent as successful output.ContextVarthe SDK's session tasks may not see. The handler now resolves the token from the request it is serving, and refuses an unauthenticated HTTP request.streamable_http_appand serves at/mcp.errorquery parameter unescaped.web/src/lib/api.tsalready declares.requirements.txt:mcp>=2.3.0,<3, plushttpx2andjsonschemadeclared because Ragbot imports them directly.Verification: clean Python 3.12 install,
pip checkclean, 1035 passed / 13 skipped (main: 1015). New tests cover:INVALID_PARAMS;allowed_toolsenforced with one.🤖 Generated with Claude Code