Skip to content

/mcp enable/disable ignores list of defined MCP servers #1062

@jack5github

Description

@jack5github

Describe the bug

The CLI freely allows you to enable and disable MCP servers that do not exist, not showing an error of any sort.

Affected version

0.0.389 Commit: 95ae76e

Steps to reproduce the behavior

  1. Open copilot.
  2. Execute /mcp disable this_mcp_server_does_not_exist. CLI will return MCP server "this_mcp_server_does_not_exist" has been disabled for this session.
  3. Execute /mcp enable this_mcp_server_does_not_exist. CLI will return MCP server "this_mcp_server_does_not_exist" has been enabled for this session.

Expected behavior

An error should appear telling the user that the named MCP server does not exist.

Additional context

  • Operating system: Microsoft Windows 11 Pro 10.0.26200 Build 26200
  • CPU architecture: x64-based PC
  • Terminal emulator: PowerShell

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions