Skip to content

Conversation

@3leapsdave
Copy link

Documents the MCP protocol version (2024-11-05) and supported transports in the MCP servers documentation.

Closes #7054

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found


## Protocol

OpenCode implements MCP protocol version **2024-11-05**.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r u sure? I thought we were more recent than that...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found at packages/opencode/src/cli/cmd/mcp.ts:580:

protocolVersion: "2024-11-05",
The SDK version is @modelcontextprotocol/sdk 1.15.1 (in package.json). Happy to update if there's a newer version I missed!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thats just 1 file tho when we connect we should update but thats not the version used for agent

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right! I was looking at the debug command in mcp.ts:580 which has a hardcoded version. The actual MCP client uses the SDK's LATEST_PROTOCOL_VERSION. With SDK 1.15.1, that's 2025-06-18.
I'll amend the PR to reflect the current version. Should I add a note explaining how to trace this (i.e., mcp.ts:580 hardcodes for debug but the client uses LATEST_PROTOCOL_VERSION from the SDK)? This is why I make doc changes as first PR :)

@3leapsdave 3leapsdave force-pushed the docs/mcp-protocol-version branch from e5a2298 to 114fbab Compare January 6, 2026 21:41
@3leapsdave 3leapsdave force-pushed the docs/mcp-protocol-version branch from 114fbab to 73fe2af Compare January 6, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Which version of MCP protocol does Opencode support ?

2 participants