Skip to content

MCP: in a codespace, filepaths are rewritten for windows. #244178

@pelikhan

Description

@pelikhan

Does this issue occur when all extensions are disabled?:

  • VS Code Version: 1.99-insiders
  • OS Version: codespace/windows 11

Steps to Reproduce:

  1. create a dummy mcp javascript file and place it in the file system. In this case "../cli/built/genaiscript.cjs".
  2. update .vscode/mcp.json to mount a MCP server on that file.
{
    "servers": {
        "genaiscript": {
            "type": "stdio",
            "command": "node",
            "args": ["${workspaceFolder}/../cli/built/genaiscript.cjs", "mcp"],
            "envFile": "${workspaceFolder}/.env"
        }
    }
}
  1. Try to launch the server. If your file is loaded and contains a mcp server, it should succeed.

On WIndows, the filepath is resolved correctly and the MCP server starts correctly.
In the codespace, the filepath somewhat becomes a windows path and fails to load.

2025-03-20 14:41:00.910 [info] Error: Cannot find module 'C:\workspaces\genaiscript\packages\cli\built\genaiscript.cjs'

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugchat-mcpinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions