Repository navigation
fix(mcp): move experimental mcp_events setting to global user settings - #5034
Merged
Merged
Conversation
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the change to make MCP Events opt-in a global user preference.
No open issues 🎉
What changed in this PR
Moves experimental MCP Events opt-in from agent toolset configuration to global user settings, making it a user-wide preference while keeping it disabled by default.
Changes:
- Adds
settings.experimental.mcp_eventsand applies it to MCP creation paths, including ACP and the MCP catalog. - Removes the toolset-level setting from Go types, validation, schemas, and generated TypeScript definitions.
- Updates tests, documentation, and examples for the global setting.
| File | Description |
|---|---|
sdk/typescript/src/generated/config.ts |
Removes toolset experimental fields and their type. |
sdk/typescript/schemas/docker-agent.schema.json |
Removes the corresponding generated schema entries. |
pkg/userconfig/userconfig.go |
Adds experimental settings and a nil-safe MCP Events accessor. |
pkg/userconfig/userconfig_test.go |
Tests defaults, opt-in, and YAML loading. |
pkg/tools/mcp/remote_test.go |
Removes the toolset-level opt-in assertion. |
pkg/tools/mcp/mcp.go |
Reads the global setting when creating MCP toolsets. |
pkg/tools/mcp/events_experimental_test.go |
Tests both MCP creation paths against global settings. |
pkg/tools/builtin/mcpcatalog/mcpcatalog.go |
Applies the global setting to catalog-enabled remote servers. |
pkg/config/mcps.go |
Removes experimental-setting inheritance from shared definitions. |
pkg/config/mcps_test.go |
Removes the obsolete inheritance test. |
pkg/config/latest/validate.go |
Removes validation for the deleted toolset field. |
pkg/config/latest/validate_test.go |
Removes the obsolete field-validation test. |
pkg/config/latest/types.go |
Removes the toolset experimental field and configuration type. |
pkg/acp/mcp.go |
Applies the global setting to client-provided MCP servers. |
examples/mcp-events/README.md |
Documents global opt-in instead of per-toolset configuration. |
examples/mcp-events/agent-stdio.yaml |
Removes local opt-in from the stdio example. |
examples/mcp-events/agent-http.yaml |
Removes local opt-in from the HTTP example. |
docs/configuration/user-settings/index.md |
Documents the new user setting and its default. |
docs/configuration/tools/index.md |
Updates MCP Events configuration instructions. |
agent-schema.json |
Removes experimental properties from MCP definitions and toolsets. |
Review effort: Balanced
rumpl
enabled auto-merge
November 24, 2026 21:15
mpailloncy
approved these changes
Nov 24, 2026
dgageot
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Moves the experimental MCP Events opt-in (
experimental.mcp_events) out of agent toolset YAML config and into global user settings (~/.config/cagent/config.yaml):Changes
Toolset.Experimental/ToolsetExperimentalConfigfrompkg/config/latest,pkg/config/mcps.go,agent-schema.json, and regenerated TypeScript SDK types/schemas.Settings.Experimental(ExperimentalSettings{MCPEvents bool}) and(*Settings).MCPEventsEnabled()inpkg/userconfig.userconfig.Get().MCPEventsEnabled()inpkg/tools/mcp(CreateToolSet,NewRemoteToolsetFromConfig),pkg/acp, andpkg/tools/builtin/mcpcatalog.examples/mcp-events.