fix: prevent builtin MCPs from overwriting user MCP configs #956
+1
−1
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
Changes
config.mcp = {
};
Testing
bun run typecheck
bun run build
Manual verification:
{
mcp: {
context7: {
type: remote,
url: https://mcp.context7.com/mcp,
headers: { CONTEXT7_API_KEY: your-key }
}
}
}
Related Issues
Summary by cubic
Prevent built-in MCP configs (context7, websearch, grep_app) from overwriting user MCP settings so custom headers and other overrides are preserved.
Written for commit 7b41d4a. Summary will update on new commits.