feat(config): support user MCP settings merge#2976
Open
Eilen6316 wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
Detailed rollout plan for #2949: This PR is intentionally scoped as stage 1 only. It adds the configuration-layer foundation for user-level MCP settings, but it does not yet change runtime MCP tool loading, cache behavior, APIs, or frontend settings. Stage 1: configuration foundation, covered by this PR
Stage 2: runtime MCP loading and cache isolation
Stage 3: user-level MCP config APIs
Stage 4: frontend settings integration
The main risk area is stage 2. MCP tools are currently cached globally, so user-level config must not be wired into runtime loading until the cache is made user-aware. That is why this first PR stops at the config layer. |
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
Refs #2949.
This is the first small PR for user-level MCP settings support. It only adds the configuration-layer foundation and intentionally does not change the current default MCP loading behavior yet.
Multi-stage plan
mcp_settings.json.This PR
ExtensionsConfig.user_mcp_settings_path(user_id)for.deer-flow/users/<user_id>/mcp_settings.json.user_id/user_config_patharguments toExtensionsConfig.from_file().mcpServersinto the global config.skillsand other extension-level fields owned by the global config.user_idoruser_config_pathis passed.Tests
uv run pytest tests/test_extensions_config_user_mcp.py tests/test_runtime_paths.pyuvx ruff check .uvx ruff format --check .