Skip to content

fix: merge MCP config files with built-in servers#1546

Open
hogeheer499-commits wants to merge 1 commit into
anthropics:mainfrom
hogeheer499-commits:agent/merge-mcp-config-files-1544
Open

fix: merge MCP config files with built-in servers#1546
hogeheer499-commits wants to merge 1 commit into
anthropics:mainfrom
hogeheer499-commits:agent/merge-mcp-config-files-1544

Conversation

@hogeheer499-commits

Copy link
Copy Markdown

Fixes #1544.

When the action prepends its built-in MCP config, a later --mcp-config <file> is currently remembered but never included in the merged value. The user's servers therefore disappear without an error while the built-in servers still work.

This reads file-path configs when multiple MCP configs need to be combined and merges their mcpServers in argument order, preserving the existing later-value precedence. A regression test exercises the built-in inline config plus user file-path case.

Tests:

  • bun test (804 passed)
  • bun run typecheck
  • bun run format:check

@hogeheer499-commits
hogeheer499-commits marked this pull request as ready for review July 24, 2026 12:56
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.

--mcp-config <file> in claude_args is silently dropped whenever built-in MCP servers are present

1 participant