Commit graph

51 commits

Author SHA1 Message Date
shanevcantwell
5ddd0d37a1
fix: skip remote URIs when resolving MCP server cwd (#10844)
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>
2026-03-20 17:12:29 -07:00
Dallin Romney
a7a5351b9c
feat: limited MCP App support (#10132)
* feat: MCP apps part 1

* feat: MCP app support part 3

* chore: cleanup PR

* chore: clean up mcp ui app types

* fix: address cubic feedback
2026-02-05 19:07:44 -08:00
Dallin Romney
895632c0a5
fix: detect WSL remote for shell PATH resolution (#9934)
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>
2026-01-31 15:26:05 -08:00
Dallin Romney
03e5fc3b92 chore: hub.continue.dev -> continue.dev 2026-01-30 15:47:00 -08:00
shanevcantwell
939b44b39f fix: detect WSL remote for shell PATH resolution
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>
2026-01-26 18:51:11 -07:00
shanevcantwell
1219985ce1 fix: skip cmd.exe wrapping for MCP servers when Windows host connects to WSL
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>
2026-01-21 01:32:12 -07:00
Dallin Romney
90f52a3b0e fix: another tweak 2025-11-17 15:03:22 -08:00
Dallin Romney
2688fc9f6d fix: CLI warnings/errors for unresolved MCP secrets 2025-11-09 19:54:36 -08:00
continue[bot]
9164448c73
Add apiKey field to mcpServers block schema for Bearer token auth (#8120)
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>
2025-10-08 08:33:30 -07:00
Dallin Romney
e321fa9235 Merge branch 'main' of https://github.com/continuedev/continue into meanderix/feature/mcp-make-workspace-root-default-cwd 2025-10-06 14:35:42 -07:00
Dallin Romney
0fd58f6c48 merge: main 2025-10-06 10:50:24 -07:00
Dallin Romney
d5e8c28912 Merge branch 'main' of https://github.com/continuedev/continue into fbricon/fix-mcp-env 2025-10-06 10:43:34 -07:00
Fred Bricon
b1f147c12e fix: use common process.env values to launch MCP
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2025-09-30 10:42:22 +02:00
Dallin Romney
a7e392bdde feat: better settings page and open settings fixes 2025-09-29 15:59:46 -07:00
Dallin Romney
1332f52839 fix: negated condition 2025-09-26 10:42:46 -07:00
Dallin Romney
c286e046f4 fix: core mcp test with invalid type 2025-09-25 17:45:57 -07:00
Dallin Romney
f995a0e45f fix: cubic feedback, lint, format 2025-09-24 16:55:18 -07:00
Dallin Romney
6c211718ea merge main 2025-09-24 15:36:59 -07:00
Dallin Romney
8b158b38cc fix: mcp tweak 2025-09-24 15:35:45 -07:00
Dallin Romney
7b5ae7a50f fix: MCP types and sse/http fallback logic 2025-09-24 15:30:08 -07:00
Dallin Romney
8b9b72de7b feat: yaml <-> json conversion functions 2025-09-24 11:26:31 -07:00
Aditya Mitra
0d3b7d60a3
feat: better mcp connection status (#7830)
* 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
2025-09-24 09:01:14 -07:00
Mattias Andersson
a1114019ca Adjusted the MCPConnection::resoveCwd() logic + added tests. 2025-09-23 23:11:51 +02:00
uinstinct
34f7492516 feat: add installation guides for mcp commands 2025-09-18 11:38:17 +05:30
Mattias Andersson
7ea4d85f1e Adjusted MCPConnection logic so the cwd is resolved to current workspace folder. 2025-09-01 09:07:52 +02:00
Dallin Romney
15892b0cd2 Verify SSL for MCP
Co-authored-by: Paul Negedu <paul.negedu@yahoo.com>
2025-08-18 17:48:52 -07:00
uinstinct
ab66938a66 added mcp remove authentication
- add protectedresource key to mcp server status
- shift mcp server auth status handling to core
2025-07-28 22:42:47 +05:30
uinstinct
a062f26559 add authenticate button in gui
- added a startAuthentication protocol
2025-07-28 21:51:47 +05:30
uinstinct
35a58c0c9d handle authentication callback
- add storage to store tokens
- in mcp connection, add headers
2025-07-28 12:26:03 +05:30
uinstinct
2473a3993f handle mcp authenticated token
- spin up a local server to handle redirects
- create an MCPOauth class to handle oauths
2025-07-25 19:11:55 +05:30
Dallin Romney
1a87532cdc
Merge pull request #6446 from continuedev/nate/async-exec-shell-path
run shell path async to avoid blocking config load
2025-07-10 16:01:34 -07:00
Nate
3668ba636d run shell path async to avoid blocking config load 2025-07-03 23:07:15 -07:00
Brian 'bdougie' Douglas
79d74977d3 adds cwd to the MCP yaml as an option. 2025-06-24 11:28:10 -07:00
Nate
76b4ac8ad3 add support for MCP resource templates 2025-05-28 21:58:33 -07:00
Maxx Rodriguez
40818eb783 Merge remote-tracking branch 'continue/main' into mcp-streamable-http 2025-05-26 12:01:48 -07:00
Nate
b82bd26b85 show stderr in the error message for failed MCP servers 2025-05-24 15:26:21 -07:00
Maxx Rodriguez
fcc90c9947 added streamable-http as a valid connection type in the constructTransport case statement 2025-05-24 10:10:37 -07:00
Patrick Erichsen
60ec3ac452 fix: grab PATH for mcp connections 2025-05-19 17:35:22 -07:00
Patrick Erichsen
0eb0545916 Update MCPConnection.ts 2025-05-12 10:23:34 -07:00
Patrick Erichsen
569695e650 Update MCPConnection.ts 2025-05-12 09:49:46 -07:00
Patrick Erichsen
5e184e25ff Update MCPConnection.ts 2025-05-12 09:42:27 -07:00
Patrick Erichsen
b8ca4cb6ee fix: use cmd for windows MCP connections 2025-05-12 09:38:11 -07:00
Camilo
18832e05a9 refactor: replace transport headers with requestOptions 2025-05-05 19:04:39 -05:00
04cfb1ed
d392d7736d feat: add support for custom headers in SSE transport 2025-05-05 18:04:38 -05:00
Owen W. Taylor
9e05f745a5 MCPConnection: avoid accidentally mutating options.transport.env
The code that added the PATH to the stdio transport environment was
mutating the original options.transport.env object, which can lead
to an infinite loop of reloading the continue config since
MCPMananagerSingletone.setConnections() compares the old and new
options and forces a refresh if any existing server changed transport
options. This triggers a config reload because in core.ts we have:

  MCPManagerSingleton.getInstance().onConnectionsRefreshed = async () => {
     await this.configHandler.reloadConfig();
  };
Which thens calls setConnections() and so forth...
2025-05-02 13:51:02 -04:00
uinstinct
ef0e7a490f introduce custom mcp server timeout 2025-05-01 13:30:09 +05:30
Nate Sesti
e9f9fd8b86
Merge pull request #4887 from lkk214/feat/mcp-conn-refresh-logic
feat: Enhance MCP connection refresh logic
2025-04-29 10:00:36 -07:00
Dallin Romney
49b6663ef2 fix mcp connections! 2025-04-28 18:40:43 -07:00
Nate
72f6f0ac92 Merge branch 'main' into feat/mcp-conn-refresh-logic 2025-04-23 14:50:42 -07:00
Nate
1ec10a3cbb disconnect 2025-04-18 12:43:13 -07:00