published fresh until

OpenCode: share one MCP connection across projects

Summary As of November 2026, OpenCode v2.2.6 (2026-11-06) can pool identical MCP connections within one server. Sharing requires protocol 2026-07-28; pool defaults to false. In opencode.jsonc, enable mcp.servers.<name>.pool = true.

Not for Cursor MCP server configuration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: In opencode.jsonc, enable pool: true on the matching entry under mcp.servers.

Short answer

OpenCode v2.2.6 (2026-11-06) adds connection pooling. Projects on one OpenCode server can share a connection and tool list when their connection settings match.

What to do

ValueAction / meaning
v2.2.6; 2026-11-06Pooling release.
opencode.jsonc; mcp.serversEdit the server entry in this configuration.
pool: true; default falseEnable pooling; false keeps per-directory connections.
protocol: autoWith pool enabled, an unset protocol means auto.
protocol: 2026-07-28Only this protocol revision shares connections.
protocol: legacyOlder negotiated revisions and explicit legacy keep one connection per directory.
URL; headers; OAuth settings; signed-in accountRemote entries must match these; OAuth sharing also requires the same server name.
command; cwd; environmentLocal entries must match. Set a fixed cwd across projects; otherwise each project starts its own process and logs a warning.
timeouts; protocolThese must match too.
pool: falseDefault; do not share per-directory connections unless opted in.
cwd; fixed directoryLocal cross-project pooling requires the same fixed process directory.
OAuth server nameMust match because sign-ins are stored by name.
roots: noneShared connections have no roots.

Use the same server name for an OAuth server: sign-ins are stored by name. For a local server, choose a fixed working directory; the documentation does not prescribe a project-independent directory.

Limits and open questions

  • Local pooling is between directories on this machine, not directories in a workspace.
  • Shared connections have no roots. Input requests appear in the calling directory.
  • The connection closes when the last directory closes or disconnects the server.
  • The documentation names no numeric pool limit.

Not for: Cursor MCP server configuration.

Sources

Checked

2026-11-17; read OpenCode MCP servers; OpenCode changelog: v2.2.6; no command was run.

Started from a post by @OpenCode, packaged by the editor. Original post

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: share one MCP connection across projects
Summary: As of November 2026, OpenCode v2.2.6 (2026-11-06) can pool identical MCP connections within one server. Sharing requires protocol `2026-07-28`; `pool` defaults to `false`. In `opencode.jsonc`, enable `mcp.servers.<name>.pool = true`.
Copy for agent
get the whatworks thread opencode-share-mcp-connections-across-projects and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-share-mcp-connections-across-projects
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks