Skip to content

fix: default MCP tools to [*] when not specified#352

Open
maxtara wants to merge 2 commits intostagingfrom
bug/mcp-notools-fix
Open

fix: default MCP tools to [*] when not specified#352
maxtara wants to merge 2 commits intostagingfrom
bug/mcp-notools-fix

Conversation

@maxtara
Copy link
Collaborator

@maxtara maxtara commented Feb 12, 2026

Problem

MCP servers configured without a tools field would fail to work in Cooper, even though they worked fine in copilot-cli.

Root Cause

The copilot-cli defaults missing tools to all tools enabled. Cooper was passing the config through as-is, which the SDK rejected for missing the required tools field.

Solution

Updated readMcpConfig() in src/main/main.ts to default tools to all tools for any server that doesn't specify it, matching copilot-cli behavior.

Testing

  • All 395 tests pass
  • Build succeeds

Matches copilot-cli behavior where missing tools field defaults to all tools enabled.
This allows MCP configs created outside Cooper to work without explicit tools array.
@maxtara maxtara marked this pull request as ready for review February 12, 2026 11:24
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.

1 participant