Skip to content

Conversation

@jknlsn
Copy link
Contributor

@jknlsn jknlsn commented Dec 11, 2025

Allow project configs to override the 'enabled' field of MCP servers defined in global config without redefining the full configuration. This enables two patterns:

  • Define MCPs globally, disable per-project
  • Define MCPs globally disabled, enable per-project

Added 'Missing configuration' error when an override references an MCP that has no base config defined.

UI: Right-align MCP status labels in sidebar to match Modified Files.

As discussed in #4525.

@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

Allow project configs to override the 'enabled' field of MCP servers
defined in global config without redefining the full configuration.
This enables two patterns:
- Define MCPs globally, disable per-project
- Define MCPs globally disabled, enable per-project

Added 'Missing configuration' error when an override references an MCP
that has no base config defined.

UI: Right-align MCP status labels in sidebar to match Modified Files.
Update plugin package and plugin loader to import from @opencode-ai/sdk/v2
instead of the legacy v1 SDK. Required for compatibility with McpOverrideConfig
type added in the MCP config overrides feature.
Add type guard functions to safely distinguish between full MCP configs
(local/remote) and override-only configs which only have the 'enabled' field.

- Add isFullMcpConfig, isLocalMcpConfig, isRemoteMcpConfig helpers
- Update MCP CLI commands to use type guards
- Update OAuth flow to use type guards
- Filter override configs when adding MCP servers via ACP

Fixes type errors introduced by McpOverrideConfig in the per-project
MCP config overrides feature.
@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

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.

2 participants