Skip to content

Copilot CLI mcp wizard trims last character and slashes #1302

@elefthei

Description

@elefthei

Describe the bug

When using the /mcp add wizard it trims the last character in the MCP name, in the HTTP server URL and messes up the slashes (on 0.0.402 on windows).

Bug

Affected version

0.0.402

Steps to reproduce the behavior

  1. Use \mcp add
  2. Add a tool, see gif attached
  3. See ~/.copilot/mcp-config.json to confirm bug.

Expected behavior

Only trim trailing whitespace, escape forward slashes / and whitespace on windows.

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