Skip to content

[FEATURE]: Allow per-session MCP selection with serve and attach #37168

Description

@mirsella

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When one opencode serve instance has multiple clients connected with opencode attach, the MCP enabled/disabled state is currently shared by clients using the same directory.

Each attached session should be able to independently choose which configured MCP servers are available to it. Disabling an MCP in one session must not change its availability in any other session. The server should continue sharing the underlying MCP processes and connections rather than starting a separate process for every session.

This is distinct from persisting MCP state across restarts and from supplying a different MCP configuration when creating a session.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions