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).

Affected version
0.0.402
Steps to reproduce the behavior
- Use
\mcp add
- Add a tool, see gif attached
- See
~/.copilot/mcp-config.json to confirm bug.
Expected behavior
Only trim trailing whitespace, escape forward slashes / and whitespace on windows.