GeezerVison is showing github.com — feat(mcp): negotiate the newest protocol by default by rekram1-node · Pull Request #65282 · anomalyco/opencode
Conversation
rekram1-node
commented
Nov 20, 2026
•
edited by opencodejr
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
MCP servers without a protocol setting used the legacy initialize handshake, so they never got 2026-07-28 even when they supported it. This makes auto the default: probe with server/discover first, then fall back to legacy.
protocol defaults to auto. legacy stays as the per-server escape hatch. Pooled servers no longer need their own default.
- The probe waits at most 5s, or the startup timeout if shorter, instead of the full startup timeout.
- Stdio: some old servers exit on the unknown probe request, for example servers on Python SDK 1.3. If an auto connect closes or negotiation fails, I respawn the server once with the legacy handshake.
- HTTP: the SDK treats a probe timeout as an outage and fails the connect. If an auto probe times out, I reconnect once with the legacy handshake.
I checked this against real servers. Current Node and Python servers, DeepWiki and Context7 negotiate 2026-07-28. Node servers from April 2025, Python SDK 1.9 to 1.22, and Exa fall back right away. A Python SDK 1.3 stdio server never answers the probe and then crashes on the in-place fallback; with the respawn it connects in about 5s.
How did you verify your code works?
Ran the servers above through McpClient.connect with no protocol set. Updated tests that assumed the legacy default: the query fallback cases pin legacy, the OAuth fixture answers server/discover with method not found like a real legacy server, and the pool test counts the extra legacy respawn. MCP, automation and tool suites pass (337), plus bun run check.
Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Added by the opencode bot (AI-generated).
Public API: changes the default of the MCP protocol config key from legacy to auto (configs keep working; servers with no protocol now get a server/discover probe first)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as described. With no protocol set, the stdio fixture mcp-modern-stdio.ts now negotiates 2026-07-28 (it got 2025-11-25 on base). mcp-legacy-silent.ts still connects on legacy, now after the ~5s probe. The MCP and OAuth test suites pass, except one stdio-descendant test that also fails on base. tsc -b in packages/core passes.
Public API: this changes the default of the mcp.<name>.protocol config key from legacy to auto, and the Mcp.Protocol description in the schema and openapi.json changes to match. No keys are added or removed. Existing configs keep working: servers already set to legacy, auto or 2026-07-28 behave as before. A server with no setting now gets a server/discover probe first. If it never answers the probe, every connect waits up to 5s longer; setting protocol: "legacy" avoids that.
Concerns:
- The user docs are out of date.
services/site/src/docs/content/mcp-servers.mdx still says `legacy` (default) in both config tables (lines 122 and 178). The "Protocol version" section (line 338) says every server opens with initialize by default, and the pooling note (line 382) says an unset protocol means auto only with pool set. These need updating in this PR.
- HTTP fallback can take longer than the startup timeout (see the inline comment).
- Pooled servers get an extra legacy respawn (see the inline comment).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit only updates fetch-option.test.ts to expect the server/discover probe through the embedder's fetch. It passes locally, and it matches the new auto default. There are no source changes, so the two earlier inline points are still open: the HTTP legacy reopen can run past the startup timeout, and pooled servers get an extra legacy respawn. The public API impact is unchanged from the last review: the default of the MCP protocol config key changes from legacy to auto, and existing configs keep working.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both earlier points are addressed. The HTTP legacy reopen now stays within the remaining startup budget, and shared pool connections skip the stdio legacy respawn, so the pool test is back to one probe. The MCP, OAuth and server fetch-option tests pass; the one MCP failure also fails on base. tsc -b in packages/core passes. The public API impact is unchanged: the default of the MCP protocol config key changes from legacy to auto, and existing configs keep working. Nothing new to flag.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 21, 2026
andrelandgraf
added a commit
to neon-solutions/ismcpgoodyet
that referenced
this pull request
Nov 24, 2026
## Problem
The scoreboard still describes OpenCode's stateless handshake as opt-in and Claude Code's MCP skills as an unpublished prototype. [OpenCode 2.4](https://github.com/anomalyco/opencode/releases/tag/v2.4.0) defaults to protocol negotiation, and [Claude Code's MCP reference](https://code.claude.com/docs/en/mcp#use-skills-from-mcp-servers) documents live skills in public beta. The board also excludes cloud providers from Code Mode despite [Claude Code 2.1.331](https://github.com/anthropics/claude-code/releases/tag/v2.1.331).
## Solution
Update `content/site.ts`, which supplies the scoreboard, timeline, news and RSS feed. The six clients, twelve features and scoring rules stay unchanged.
Score: **45/72 → 46/72**, or **62.5% → 63.89%**; the displayed score changes **63% → 64%**. The answer remains **No** against the 80% threshold. OpenCode changes **8/12 → 8.5/12** and Claude Code **8.5/12 → 9/12**; other clients' scores stay unchanged.
Cell changes:
- OpenCode / Stateless spec, **Partial → Yes**: default `auto` negotiation, legacy fallback and restart behavior; retain OpenCode 1 and 2.2 history. [Release](https://github.com/anomalyco/opencode/releases/tag/v2.4.0), [protocol change](anomalyco/opencode#65282).
- OpenCode / Push events, **Partial → Partial**: add default-on Beta push delivery, reconnects, event automations and removal of `mcp_events`; retain Partial because the tagged client API still calls Events experimental. [Release](https://github.com/anomalyco/opencode/releases/tag/v2.4.0), [delivery details](anomalyco/opencode#65271), [tagged API](https://github.com/anomalyco/opencode/blob/v2.4.0/packages/core/src/mcp/client.ts).
- Claude Code / Tasks, **Partial → Partial**: add eligible non-fork subagents, VS Code/local Desktop and connector-backed cloud support, with input-dialog and server restrictions. [Docs](https://code.claude.com/docs/en/mcp#mcp-tasks-that-run-on-the-server).
- Claude Code / Code mode, **Partial → Partial**: replace the cloud-provider exclusion with 2.1.331 support; retain experiment, model, account and gateway limits. [Docs](https://code.claude.com/docs/en/code-mode), [release](https://github.com/anthropics/claude-code/releases/tag/v2.1.331).
- Cursor / Deferred tool descriptions, **Yes → Yes**: add description-based search and startup/failure reporting in IDE 3.30. [Release notes](https://cursor.com/docs/release-notes/ide), [existing discovery behavior](https://cursor.com/blog/dynamic-context-discovery).
- Claude Code / Deferred tool descriptions, **Yes → Yes**: add longer MCP descriptions in Code Mode search. [Release](https://github.com/anthropics/claude-code/releases/tag/v2.1.331).
- Cursor / Per-tool filter, **Yes → Yes**: add IDE 3.30 allowlist matching by URL scheme, host, port and path. [Release notes](https://cursor.com/docs/release-notes/ide).
- Factory Droid / Per-tool filter, **Yes → Yes**: add 1.17 group-specific entries on top of the organization allowlist. [Release notes](https://docs.factory.com/changelog/release-notes).
- Cursor / MCP Apps, **Yes → Yes**: add IDE 3.30 app calls to their own server without an approval prompt; hidden tools remain unavailable. [Release notes](https://cursor.com/docs/release-notes/ide).
- Claude Code / Skills over MCP, **No → Partial**: replace the prototype-only claim with 2.1.331 live skills, `/server:skill` commands and beta availability restrictions; preserve filesystem/plugin skills. [Docs](https://code.claude.com/docs/en/mcp#use-skills-from-mcp-servers).
- Factory Droid / In-client OAuth, **Yes → Yes**: add the 1.19 per-server option to skip forced consent when it blocks sign-in. [Release notes](https://docs.factory.com/changelog/release-notes).
News added:
- November 24: Claude Code documents live MCP skills in public beta, verified on that date. [Docs](https://code.claude.com/docs/en/mcp#use-skills-from-mcp-servers).
- November 24: Claude Code documents expanded MCP task support, verified on that date. [Docs](https://code.claude.com/docs/en/mcp#mcp-tasks-that-run-on-the-server).
- November 24: Factory Droid 1.19 adds the MCP consent option. [Release notes](https://docs.factory.com/changelog/release-notes).
- November 23: OpenCode 2.4 defaults to stateless negotiation and event automations. [Release](https://github.com/anomalyco/opencode/releases/tag/v2.4.0).
- November 23: Claude Code 2.1.331 adds cloud-provider Code Mode, richer MCP search descriptions and a malformed-reply hang fix. [Release](https://github.com/anthropics/claude-code/releases/tag/v2.1.331).
- November 23: Codex 0.172 delays optional cached stdio server startup until first use and completes `/mcp login` arguments. [Release](https://github.com/openai/codex/releases/tag/rust-v0.172.0).
- November 21: Factory Droid 1.17 adds group MCP allowlist entries and moves live MCP health to the footer. [Release notes](https://docs.factory.com/changelog/release-notes).
Timeline and historical news:
- Add November 23 timeline milestone for OpenCode's default stateless negotiation and event automations. [Release](https://github.com/anomalyco/opencode/releases/tag/v2.4.0).
- Add November 24 timeline milestone for the documented Claude Code Skills beta. [Docs](https://code.claude.com/docs/en/mcp#use-skills-from-mcp-servers).
- Events Beta news: describe the initial OpenCode watches historically instead of asserting their current score. [Events overview](https://modelcontextprotocol.io/extensions/events/overview), [current release](https://github.com/anomalyco/opencode/releases/tag/v2.4.0).
- OpenCode 2.3.1 news: scope the flag requirements to that version. [Release](https://github.com/anomalyco/opencode/releases/tag/v2.3.1).
- Roadmap news: describe OpenCode 2.3's experimental events as their introduction. [2.3 release](https://github.com/anomalyco/opencode/releases/tag/v2.3.0), [2.4 release](https://github.com/anomalyco/opencode/releases/tag/v2.4.0).
- Skills working-group news: remove the claim that all board clients still load skills only from disk. [Current Claude Code docs](https://code.claude.com/docs/en/mcp#use-skills-from-mcp-servers).
## Verification
- `bun run typecheck`, `bun run lint` and `bun run build` pass.
- Checked all 72 cells, exact status/score changes, unique news slugs, date ordering, preserved historical items and HTTPS evidence URLs.
- Production homepage and `/feed.xml` return HTTP 200. All seven added news items appear in both; RSS parses as XML.
- Browser checks at 1440×1000 and 390×844 confirm readable notes/news, working horizontal table scrolling and evidence link targets. No browser errors or failed requests observed.
- The [recording](../media/scoreboard.webm) shows the score, changed status rows, task and Code Mode notes, timeline and news. The [mobile screenshot](../media/mobile-news.png) shows news at 390×844. Verification exercises the scoreboard; client capability claims come from the linked primary documentation and releases.
| Before | After |
| --- | --- |
|  |  |
|  |  |
|  |  |
|  |  |
## Review media
**scoreboard**: [watch the recording](https://br-silent-voice-b54gf9v8.storage.c-7.us-east-2.aws.neon.tech/review-media/jobs/add-mcp/job-82d840284f899a99/scoreboard.webm)
































---
Opened by Aileen job `job-82d840284f899a99` (factory `add-mcp`).
Next: Aileen's reviewer classifies and reviews this PR; the factory policy decides whether it merges without Andre.
<!-- aileen -->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Content-only updates to static site data in `content/site.ts`; no runtime logic or auth changes.
>
> **Overview**
> Updates **`content/site.ts`** so the MCP scoreboard, timeline, news feed, and RSS reflect recent client releases. Overall score shifts **63% → 64%** (46/72 cells); the 80% “good yet” answer stays **No**.
>
> **OpenCode 2.4** now scores **Yes** on the stateless spec (default `auto` negotiation with legacy fallback). Push events stay **Partial** with refreshed notes on Beta delivery, default automations, and removed `mcp_events`.
>
> **Claude Code 2.1.331** drives several cell updates: **Skills over MCP** moves **No → Partial** (documented public beta); Tasks and Code Mode notes add subagent/VS Code/Desktop coverage and **Bedrock / Google Agent Platform / Foundry / Claude Platform on AWS** for Code Mode; deferred tool descriptions cite richer Code Mode search.
>
> **Cursor IDE 3.30** evidence refreshes deferred tool descriptions, per-tool filtering (URL allowlist rules), and MCP Apps (apps calling their own server without extra approval).
>
> **Factory Droid** notes add **1.17** group MCP allowlists and **1.19** optional skip of forced OAuth consent.
>
> Adds **seven news items** and **two timeline milestones** (Nov 23–24); tweaks older news copy for historical accuracy (Events, OpenCode flags, SEP-2640).
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit b6cef47. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Documentation**
* Updated client-support information for OpenCode, Claude Code, Cursor, and Factory Droid, including details on negotiation, Events, Tasks, Code Mode, filtering, MCP Apps, Skills over MCP, and OAuth.
* Added timeline and news entries for November 23–24 releases, including Codex lazy stdio startup.
* Revised existing news summaries about event support and automations, the MCP roadmap, and Skills over MCP.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
heunghingwan
added a commit
to heunghingwan/opencode
that referenced
this pull request
Nov 26, 2026
…lize
Since anomalyco#65282 a local server with no protocol gets a 5 s server/discover
probe, after which the SDK sends the legacy initialize on the same
connection. A server that is still starting reads the probe late, which
moves that connection to 2026-07-28, and then refuses the initialize
(Python mcp 2.3: "the initialize handshake is not accepted"). The stdio
path respawned only on ConnectionClosed and EraNegotiationFailed, so the
connect failed whenever the start outlived the probe.
Respawn once for the legacy handshake on UnsupportedProtocolVersionError
as well, so that initialize arrives first. This is what negotiate already
does over HTTP after a probe timeout. A slow server now connects on the
legacy protocol; pinning protocol keeps the modern one.
The fixture is shaped like the Python server: the first request decides
the connection's era, and it starts once the test releases it.
Addresses anomalyco#66577
heunghingwan
added a commit
to heunghingwan/opencode
that referenced
this pull request
Nov 27, 2026
…lize
Since anomalyco#65282 a local server with no protocol gets a 5 s server/discover
probe, after which the SDK sends the legacy initialize on the same
connection. A server that is still starting reads the probe late, which
moves that connection to 2026-07-28, and then refuses the initialize
(Python mcp 2.3: "the initialize handshake is not accepted"). The stdio
path respawned only on ConnectionClosed and EraNegotiationFailed, so the
connect failed whenever the start outlived the probe.
Respawn once for the legacy handshake on UnsupportedProtocolVersionError
as well, so that initialize arrives first. This is what negotiate already
does over HTTP after a probe timeout. A slow server now connects on the
legacy protocol; pinning protocol keeps the modern one.
The fixture is shaped like the Python server: the first request decides
the connection's era, and it starts once the test releases it.
Addresses anomalyco#66577
heunghingwan
added a commit
to heunghingwan/opencode
that referenced
this pull request
Nov 27, 2026
…lize
Since anomalyco#65282 a local server with no protocol gets a 5 s server/discover
probe, after which the SDK sends the legacy initialize on the same
connection. A server that is still starting reads the probe late, which
moves that connection to 2026-07-28, and then refuses the initialize
(Python mcp 2.3: "the initialize handshake is not accepted"). The stdio
path respawned only on ConnectionClosed and EraNegotiationFailed, so the
connect failed whenever the start outlived the probe.
Respawn once for the legacy handshake on UnsupportedProtocolVersionError
as well, so that initialize arrives first. This is what negotiate already
does over HTTP after a probe timeout. A slow server now connects on the
legacy protocol; pinning protocol keeps the modern one.
The fixture is shaped like the Python server: the first request decides
the connection's era, and it starts once the test releases it.
Addresses anomalyco#66577
heunghingwan
added a commit
to heunghingwan/opencode
that referenced
this pull request
Nov 27, 2026
…lize
Since anomalyco#65282 a local server with no protocol gets a 5 s server/discover
probe, after which the SDK sends the legacy initialize on the same
connection. A server that is still starting reads the probe late, which
moves that connection to 2026-07-28, and then refuses the initialize
(Python mcp 2.3: "the initialize handshake is not accepted"). The stdio
path respawned only on ConnectionClosed and EraNegotiationFailed, so the
connect failed whenever the start outlived the probe.
Respawn once for the legacy handshake on UnsupportedProtocolVersionError
as well, so that initialize arrives first. This is what negotiate already
does over HTTP after a probe timeout. A slow server now connects on the
legacy protocol; pinning protocol keeps the modern one.
The fixture is shaped like the Python server: the first request decides
the connection's era, and it starts once the test releases it.
Addresses anomalyco#66577
heunghingwan
added a commit
to heunghingwan/opencode
that referenced
this pull request
Nov 28, 2026
…lize
Since anomalyco#65282 a local server with no protocol gets a 5 s server/discover
probe, after which the SDK sends the legacy initialize on the same
connection. A server that is still starting reads the probe late, which
moves that connection to 2026-07-28, and then refuses the initialize
(Python mcp 2.3: "the initialize handshake is not accepted"). The stdio
path respawned only on ConnectionClosed and EraNegotiationFailed, so the
connect failed whenever the start outlived the probe.
Respawn once for the legacy handshake on UnsupportedProtocolVersionError
as well, so that initialize arrives first. This is what negotiate already
does over HTTP after a probe timeout. A slow server now connects on the
legacy protocol; pinning protocol keeps the modern one.
The fixture is shaped like the Python server: the first request decides
the connection's era, and it starts once the test releases it.
Addresses anomalyco#66577
heunghingwan
added a commit
to heunghingwan/opencode
that referenced
this pull request
Nov 28, 2026
…lize
Since anomalyco#65282 a local server with no protocol gets a 5 s server/discover
probe, after which the SDK sends the legacy initialize on the same
connection. A server that is still starting reads the probe late, which
moves that connection to 2026-07-28, and then refuses the initialize
(Python mcp 2.3: "the initialize handshake is not accepted"). The stdio
path respawned only on ConnectionClosed and EraNegotiationFailed, so the
connect failed whenever the start outlived the probe.
Respawn once for the legacy handshake on UnsupportedProtocolVersionError
as well, so that initialize arrives first. This is what negotiate already
does over HTTP after a probe timeout. A slow server now connects on the
legacy protocol; pinning protocol keeps the modern one.
The fixture is shaped like the Python server: the first request decides
the connection's era, and it starts once the test releases it.
Addresses anomalyco#66577
heunghingwan
added a commit
to heunghingwan/opencode
that referenced
this pull request
Nov 28, 2026
…lize
Since anomalyco#65282 a local server with no protocol gets a 5 s server/discover
probe, after which the SDK sends the legacy initialize on the same
connection. A server that is still starting reads the probe late, which
moves that connection to 2026-07-28, and then refuses the initialize
(Python mcp 2.3: "the initialize handshake is not accepted"). The stdio
path respawned only on ConnectionClosed and EraNegotiationFailed, so the
connect failed whenever the start outlived the probe.
Respawn once for the legacy handshake on UnsupportedProtocolVersionError
as well, so that initialize arrives first. This is what negotiate already
does over HTTP after a probe timeout. A slow server now connects on the
legacy protocol; pinning protocol keeps the modern one.
The fixture is shaped like the Python server: the first request decides
the connection's era, and it starts once the test releases it.
Addresses anomalyco#66577
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|