Skip to content

VS Code install command on the Connect page breaks in cmd.exe and Windows PowerShell 5.1 #217

Closed

Description

@TMHSDigital

Why it matters

This is a Windows-only product, and the copy-paste install command fails in both default Windows shells. Someone who hits that on their first try may not come back.

Evidence

  • docs/connect.html:98 and its generator scripts/build-docs-pages.mjs:267 give code --add-mcp '{"name":...}'.
  • Tested: cmd.exe passes '{name:screencast,...}' and Windows PowerShell 5.1 passes {name:screencast,...}, both invalid JSON. Only pwsh 7.3+ passes it intact.

Suggested approach

Show tabs for PowerShell and cmd with correctly escaped JSON ("{\"name\":...}"), or lead with the vscode:mcp/install?… deeplink button (see #178) and keep the CLI as a secondary option. Test each variant in its shell.

Done when

  • Each command shown works when pasted into cmd.exe, Windows PowerShell 5.1, and pwsh 7.

Activity

  1. added
    bug
    documentation
    effort: small
    impact: medium
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentationeffort: smallimpact: mediumpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions