Skip to content

"Username with spaces causes MCP error" #125

@vincent-k-bae

Description

@vincent-k-bae

Describe the bug
MCP configuration fails when Windows username contains spaces, causing "Invalid MCP configuration" error in Claude Code Chat extension.

To Reproduce
Steps to reproduce the behavior:

  1. Have a Windows username with spaces (e.g., "Vincent K. Bae")
  2. Install Claude Code Chat extension in VSCode
  3. Open any folder in VSCode (e.g., C:\xampp\htdocs\test)
  4. Try to send a message in Claude Code Chat panel
  5. See MCP configuration error

Expected behavior
Extension should handle Windows usernames with spaces correctly and allow normal chat functionality.

Screenshots
Error message:
Error: Invalid MCP configuration:
Failed to read file: Error: EISDIR: illegal operation on a directory, read
MCP config file not found: c:\xampp\htdocs\test\K.
MCP config file not found: c:\xampp\htdocs\test\Bae\AppData\Roaming\Code\User\workspaceStorage...

VS Code (please complete the following information):

  • OS: Windows 11
  • VS Code Version: [너의 VSCode 버전 입력]
  • Extension Version: 1.0.6
  • Node.js: v24.7.0

Additional context

  • The path gets incorrectly split at the space in username
  • Created symlink "C:\Users\Vincent" but issue persists
  • Terminal command npx @anthropic-ai/claude-code chat works fine
  • Issue only occurs with the VSCode extension GUI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions