-
Notifications
You must be signed in to change notification settings - Fork 747
Description
Problem
Workspace-scoped MCP configuration does not work under Windows. Attempting to change a global MCP configuration to a workspace configuration causes an error.
Steps to reproduce the issue
- Define any valid Global MCP configuration (gets saved in %USERPROFILE%.aws\amazonq\mcp.json)
- Go to VS Code's Amazon Q extension tab
- Click the MCP server configuration icon
- Select the MCP server
- Click Edit Setup
- Change the scope selection from "Global" to "This workspace"
- Click Save
- See error message l;ike: ENOENT: no such file or directory, mkdir 'C:\Users\bmarty\AppData\Local\Programs\Microsoft VS Code\file:\c%3A\landmark\ox3\src\hcm.amazonq\agents'
Expected behavior
The configuration should be moved from mcp.json to the root of the workspace in a directory called .amazonq. If a file is created in that location it should be picked up.
Actual Behavior
The extension is apparently failing to combine paths correctly or process the path representing the root of the workspace as a local path leading to an error like:
ENOENT: no such file or directory, mkdir 'C:\Users\bmarty\AppData\Local\Programs\Microsoft VS Code\file:\c%3A\landmark\ox3\src\hcm.amazonq\agents'
If a file is created in the correct location, it is not honored (no MCP configuration is seen).
System details
OS: Windows_NT x64 10.0.22631
Visual Studio Code extension host: 1.102.2
Amazon Q: 1.85.0
node: 22.15.1
electron: 35.6.0