Repository navigation
Let McpClient connect with the 2025-03-26 and 2025-06-18 revisions - #10943
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 1a497cb The changes in this PR will be included in the next version bump. This PR includes changesets to release 40 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
Merged
This branch is waiting to be deployed
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.
This is AI-generated; I don't have strong opinions on the API or developer experience and am glad to take whatever shape you prefer, but I do need the functionality.
Problem
McpClientcannot connect to a server that only speaks2025-03-26or2025-06-18. Many deployed MCP servers still do.McpClient.ProtocolVersionis"2025-11-25" | "2026-07-28", solayerHttpandlayerStdiorefuseMcpProtocol.v2025_06_18andv2025_03_26at the type level.The client itself already handles them. Everything except
2026-07-28goes through the sameinitializepath (modernisversion === "2026-07-28"), and the server adapters for both revisions exist.Change
ProtocolVersionbecomes"2025-03-26" | "2025-06-18" | "2025-11-25" | "2026-07-28". There is no runtime change.MCP.mdlists the four revisions and notes that2025-03-26has no structured tool results, socallToolhas nostructuredContentto decode when given aschema.Tests
McpClient.test.tskeeps the existing2025-11-25and2026-07-28per-revision matrix (including cancellation and skills) and adds one focused HTTP test connecting and calling a tool on2025-03-26and2025-06-18(checking text content on both,structuredContent: undefinedon2025-03-26, andstructuredContenton2025-06-18).typetest/ai/McpClient.tst.tsverifies thatMcpClientacceptsv2025_03_26,v2025_06_18,v2025_11_25, andv2026_07_28, and rejectsv2024_11_05.Run on this branch (based on
mainatdb1629c626):pnpm test --run packages/effect/test/ai/McpClient.test.ts: 55 passed.pnpm test-types McpClient: 24 tests, 74 assertions passed (TypeScript 5.9 and 6.0).oxlint,pnpm --filter effect check, andpnpm jsdocs --checkpass.A separate PR proposes continuing paused
2026-07-28tool calls in the client. It touches the same paragraph ofMCP.md, so whichever lands second needs a small rebase.Closes EFF-4369