When the extension runs in the Local Extension Host on Windows while
connected to a remote workspace (SSH, Dev Container, etc.),
getWorkspaceDirs() returns vscode-remote:// URIs. These cannot be used
as a cwd for child_process.spawn(), causing "spawn cmd.exe ENOENT"
when starting MCP stdio servers.
Fall back to the user's home directory for non-file:// URIs so the
spawn has a valid local working directory.
Fixes#10842
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
When Windows host connects to WSL remote, getEnvPathFromUserShell() was
returning undefined because it checked only process.platform === "win32".
Add remoteName parameter to getEnvPathFromUserShell() and use the
isWindowsHostWithWslRemote pattern (consistent with resolveCommandForPlatform)
to allow shell PATH detection for WSL remotes.
Fixes#9737
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
When Windows host connects to WSL remote, getEnvPathFromUserShell() was
returning undefined because it checked only process.platform === "win32".
Add remoteName parameter to getEnvPathFromUserShell() and use the
isWindowsHostWithWslRemote pattern (consistent with resolveCommandForPlatform)
to allow shell PATH detection for WSL remotes.
Fixes#9737
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fixes#9151
When Windows VS Code connects to WSL, MCP servers failed to start with
"cmd.exe not found" because resolveCommandForPlatform() wrapped batch
commands (npx, uvx, etc.) with cmd.exe even when the remote is WSL.
Changes:
- Make resolveCommandForPlatform() async to fetch IDE info
- Add isWindowsHostWithWslRemote check (same pattern as PR #9679)
- Skip cmd.exe wrapping when remoteName === "wsl"
- Add tests for WSL, local Windows, Linux, and non-batch scenarios
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add apiKey field to mcpServers schema and implement Bearer token auth
- Add apiKey field to sseOrHttpMcpServerSchema in packages/config-yaml
- Update MCPConnection.ts to merge apiKey as Bearer token in Authorization header
- Update CLI MCPService to merge apiKey as Bearer token in Authorization header
- Add apiKey to InternalSseMcpOptions and InternalStreamableHttpMcpOptions types
- Update yamlToContinueConfig converter to pass through apiKey field
Fixes CON-4281
Generated with [Continue](https://continue.dev)
Co-authored-by: Continue Agent <agent@continue.dev>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: nate <nate@continue.dev>
* add tooltips for showing mcp connection status
* add type
* explicit message to clarify no mcps are available in chat mode
* ability to disconnect mcp server
* move buttons inside a kebab menu
* use a listbox instead
* remove server and mcp suffixes
change reconnect to reload
* add anchor
This commit refactors how IdeSettings and ControlPlaneClient are accessed throughout
the configuration system to improve state management and reduce coupling.
Previously, ideSettingsPromise was passed down from the top-level ConfigHandler
through various profile loaders and clients. This created a rigid dependency chain
and required manual promise replacement when settings were updated. Similarly,
downstream components could hold onto stale instances of ControlPlaneClient after a
change in authentication state.
The key changes are:
- Removed ideSettingsPromise prop drilling: Components that require IDE settings
now fetch them directly from the IDE object (ide.getIdeSettings()) when
needed.
- Updated globalLocalProfileManager during every cascadeInit: This ensures it
always holds the most recent ControlPlaneClient, preventing issues with stale
client objects after re-authentication.
- Simplified constructors: The constructors for ConfigHandler, ControlPlaneClient,
and various loaders have been simplified to reflect these changes, primarily by
passing the IDE object directly instead of its derived promises.