Commit graph

120 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
Dallin Romney
fbaec428cc
fix: better agent errors in settings agent section (#8198)
fix: better mcp error

Co-authored-by: Nate <sestinj@gmail.com>
2025-10-13 23:19:55 -07: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
Dallin Romney
a6b2b6b6db fix: cubic feedback 2025-10-01 10:52:44 -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
e734ad71ca
fix: json mcp loading (#8002) 2025-09-26 14:12:25 -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
ef9e7ad7f7 fix: support top level claude code mcp servers 2025-09-25 11:49:49 -07:00
Dallin Romney
f1253a74e1 feat: claude code mcp json format support 2025-09-24 19:50:11 -07:00
Dallin Romney
b5300b592f fix: request options for json mcps 2025-09-24 18:40:18 -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
Shawn Smith
d1973e3a6a
fix: HOTFIX 🚑 Fix crypto error (#7938)
* fix: 🚑 Fix crypto error

* fix: 🎨 Prettier

* fix: 🐛 Fix broken test
2025-09-24 13:06:58 -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
Dallin Romney
404f8d7981 feat: mcp json config types 2025-09-23 20:36:25 -07:00
Mattias Andersson
a1114019ca Adjusted the MCPConnection::resoveCwd() logic + added tests. 2025-09-23 23:11:51 +02:00
Dallin Romney
41937a20d2
fix: infos in mcp server status tests (#7906) 2025-09-22 14:34:21 -07:00
Dallin Romney
238d03f0b6
Merge pull request #7651 from JonZeolla/feat/oauth/redirect_uri
feat(oauth): use asExternalUrl to get the correct callback
2025-09-22 13:32:10 -07:00
uinstinct
cb29cee0a1 fix tests 2025-09-18 12:02:44 +05:30
uinstinct
34f7492516 feat: add installation guides for mcp commands 2025-09-18 11:38:17 +05:30
Jon Zeolla
ada6cdd386 feat(oauth): use asExternalUrl to get the correct callback 2025-09-09 08:24:19 -04:00
Dallin Romney
a553c57a48 Merge branch 'main' of https://github.com/continuedev/continue into dallin/indexing-and-mcp-org-settings-CON-3282 2025-09-03 15:26:12 -07:00
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
50b0dec9c4 feat: org policies for indexing and mcp 2025-08-19 01:20:11 -07: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
4b34402401 fix tests 2025-07-29 17:13:03 +05:30
uinstinct
0acda9fbb3 added tests
- correct lints in MCPManagerSingleton
2025-07-29 17:02:35 +05:30
uinstinct
ff07bd4e39 do not start server is already listening 2025-07-29 14:19:18 +05:30
uinstinct
c969f9fffb correct eslint 2025-07-29 14:06:28 +05:30
uinstinct
bc3089ad6c start and stop during mcp server oauth process 2025-07-29 13:02:00 +05:30
uinstinct
64702333a7 remove vscode redirect after authentication 2025-07-29 12:24:27 +05:30
uinstinct
0407836192 fix find authenticating server 2025-07-29 11:53:28 +05:30
uinstinct
a82a340368 store mcp authenticating server as connection status 2025-07-28 23:21:45 +05:30
uinstinct
9438add281 handle mcp oauth callback 2025-07-28 23:03:01 +05:30
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