Repository navigation
refactor(cli): squirrel channel on the v2 MCP SDK, drop @modelcontextprotocol/sdk v1 (#570) - #654
Merged
Merged
Conversation
nc9
marked this pull request as ready for review
October 11, 2026 12:51
|
Review of #654 (channel moved to the v2 MCP SDK, v1 SDK dropped). I read the full diff but did not run the tests or the notices generator. The changes look sound.
Positives: the e2e test pins |
…protocol/sdk v1 (#570) Signed-off-by: Nik Cubrilovic <[email protected]>
…h committed license texts (#570) Signed-off-by: Nik Cubrilovic <[email protected]>
…n fail (#570) Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/channel-sdk-v2-570
branch
from
October 11, 2026 13:31
794f1e8 to
b22d96b
Compare
|
Review of #654 (channel moved to MCP SDK v2). No blocking problems found. I read the diff only. I did not run the tests or the notices generator.
🤖 Generated with Claude Code |
3 tasks
Contributor
Author
|
Replies to the 13:32 review on b22d96b:
|
This was referenced Oct 11, 2026
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.
Closes #570
The two boxes left on #570 after #572: the CLI still depended on
@modelcontextprotocol/sdkv1, becausesquirrel channelimported the v1ServerandStdioServerTransport.Change
apps/cli/src/channel/server.tsnow uses the v2 low-levelServerfrom@modelcontextprotocol/server, connected straight toStdioServerTransportfrom@modelcontextprotocol/server/stdio(notserveStdio). It setssupportedProtocolVersionsto the 2025-era versions only (CHANNEL_PROTOCOL_VERSIONS). Connected this way, the v2Servernegotiates throughinitializeand installs noserver/discoverhandler, so the channel keeps the legacy handshake that Claude Code needs to register it. Lifecycle,oninitialized, the customnotifications/claude/channelnotification, instructions andexperimental["claude/channel"]are unchanged.apps/cli/package.jsondrops@modelcontextprotocol/sdk^1.31.0.bun.lockloses it and its HTTP stack (express, hono, cors, and others).dist. The generator only walks declared dependencies, so those notices had been coming along by accident through the v1 SDK's declared deps. The generator now finds packages a runtime dependency bundles, from the bundler'snode_modules/.pnpm/<name>@<version>source markers. It records them from committed texts underscripts/third-party-embedded/(taken from the npm tarballs) and fails if one is missing. The notices now list [email protected], [email protected], [email protected], [email protected], [email protected], [email protected] and @cfworker/[email protected].docs/cli/channel.mdxgets a "Protocol version" section, anddocs/cli/mcp.mdxnames the channel as the exception to the two-era support. CHANGELOG[Unreleased]has a Changed entry.Verification
tests/channel/server.test.tsandtests/channel/e2e.test.tsnow run on the v2 client, 12/12 passing.legacywith the channel capability, and a client pinned to 2026-07-28 is refused.getProtocolEra() === "legacy". Mutation check: connecting the channel throughserveStdioturns itmodern, and the e2e fails.tests/mcp/protocol.test.tsandtests/mcp/server.test.tspass (18), sosquirrel mcpstill serves both eras.tsgo --noEmit, oxlint and oxfmt --check are clean.notices:checkpasses (67 packages) and fails when a bundled package's text is missing.make validatein docs passes.bun build --compilesucceeds.Hold-list note: this removes a runtime dependency (
@modelcontextprotocol/sdk) and changes the lockfile, so it needs a human decision before merge. The private gitlink bump that picks this up has to regenerate the rootbun.lock.Skill: no change needed.