Repository navigation
feat(setup): manage Cline in VS Code Insiders, VSCodium, Cursor and Windsurf - #10729
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
[Medium impact] No code issue blocks this change, but it has already landed through #10694. SummaryThis PR adds setup, doctor and uninstall support for Cline in VS Code Insiders, VSCodium, Cursor and Windsurf.
Reviews (4) · Last reviewed commit: "test(setup): cover VSCODE_PORTABLE for C..." · Reviewed by Greptile |
morluto
force-pushed
the
fix/cline-editor-hosts
branch
from
November 15, 2026 01:45
8e8ca2b to
f67cd43
Compare
morluto
force-pushed
the
refactor/fold-mcp-add-clients
branch
from
November 15, 2026 03:44
e00a1c5 to
02f9936
Compare
…indsurf The Cline extension keeps its MCP settings in the global storage of whichever editor runs it. REA resolved only VS Code's, so a Cline in another editor was never configured, inspected or cleaned. Add one client-table row per editor, resolved through the shared Code-OSS user data rule, and detected where that editor's Cline settings exist.
Address review: VSCODE_PORTABLE moves only VS Code's own storage, so the other editors keep their settings path; and the older-release note now says which hosts mcp add could register before.
morluto
force-pushed
the
fix/cline-editor-hosts
branch
from
November 15, 2026 05:40
d35fe8d to
5e97cbe
Compare
19 tasks
morluto
added a commit
that referenced
this pull request
Nov 15, 2026
…10694) * feat(setup): give five mcp-add clients one client-table row Cline VS Code extension, Kiro, Mastra Code, Zed and Amp move from registration-only catalog entries to rows in the client table. rea mcp add projects those rows, so doctor, update and uninstall now inspect, refresh and remove what it wrote, and setup offers each client when detected. Refs #7181 * refactor(setup): keep FreeBuff's comment on its declaration The client helpers added for the folded mcp-add clients were inserted between FreeBuff's profile-directory comment and its declaration. Move them above it, and drop an import the folded locations no longer use. * test(setup): refresh an older mcp-add registration through setup Address review: seed each folded client with an older REA-owned package runner launcher, then check that doctor reports it stale, update selects it, setup plans and applies the update, and doctor then reads the current launcher. * fix(setup): register Amp in settings.jsonc when that is its settings file (#10717) Amp reads ~/.config/amp/settings.json or settings.jsonc. REA always used settings.json, creating a second file beside an existing settings.jsonc. Use settings.jsonc when it is the only file, and refuse when both exist because Amp does not document which one it reads. * feat(setup): manage Cline in VS Code Insiders, VSCodium, Cursor and Windsurf (#10729) * feat(setup): manage Cline in VS Code Insiders, VSCodium, Cursor and Windsurf The Cline extension keeps its MCP settings in the global storage of whichever editor runs it. REA resolved only VS Code's, so a Cline in another editor was never configured, inspected or cleaned. Add one client-table row per editor, resolved through the shared Code-OSS user data rule, and detected where that editor's Cline settings exist. * test(setup): cover VSCODE_PORTABLE for Cline's editor hosts Address review: VSCODE_PORTABLE moves only VS Code's own storage, so the other editors keep their settings path; and the older-release note now says which hosts mcp add could register before. * fix(setup): find a Linux Flatpak Zed's configuration (#10721) * fix(setup): find a Linux Flatpak Zed's configuration Zed's config_dir honors FLATPAK_XDG_CONFIG_HOME first, and a Flathub Zed reads ~/.var/app/dev.zed.Zed/config/zed inside its sandbox. REA always wrote ~/.config/zed, which that Zed never reads. Honor the override, use the sandbox folder when it is the only one, and refuse when both a native and a Flatpak configuration exist. * fix(setup): treat an XDG_CONFIG_HOME naming the Flatpak folder as one Zed folder * fix(setup): treat linked native and Flatpak Zed folders as one configuration * test(setup): expect doctor to report the Amp registration mcp add wrote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Cline extension keeps its MCP settings in the global storage of whichever editor runs it (
HostProvider.get().globalStorageFsPathin disk.ts). REA resolved only VS Code's storage, so Cline running in VS Code Insiders, VSCodium, Cursor or Windsurf was never configured, inspected or cleaned. This PR adds one client-table row per editor.Stacked on #10694 (the
cline_vscoderow). Refs #7181.Problem and expected behavior
Trigger: Cline installed in Cursor.
rea setupdid not offer it, doctor did not report it, and uninstall did not clean it. Expected: each editor's Cline settings file is a client REA can detect, register, inspect and remove.Change and scope
ClientConfigRoots.vscodeUserDirectorytakes the product's data folder (defaultCode).VSCODE_APPDATAapplies to every build.VSCODE_PORTABLEstays attributed to VS Code only. It describes the portable build that set it, and applying it to other editors would redirect them wrongly.SupportedClients.ts: new rowscline_vscode_insiders,cline_vscodium,cline_cursorandcline_windsurf, sharing aclineSettingsDirectory(dataFolder)helper withcline_vscode. Each is detected by its own Cline settings folder.rea mcp add --agent clinekeeps add-mcp's meaning (VS Code). The new rows have nomcp addids.Contract and boundary impact
Semantic owner and earliest changed stage: the table rows and the shared Code-OSS user-data rule.
Contribution scope fit and linked maintainer decision: coordinator request ("fix the Cline non-VS-Code host gap").
CLI and MCP/tool-catalog contract: four new
--clientids for setup and doctor.Provider, bridge, target-format, or platform compatibility: macOS, Linux and Windows default user-data roots per editor.
Evidence, artifact, provenance, or reconstruction contract: none.
Target selection, authority, upstream behavior, and cleanup details: writes only after setup approval, into the editor's own Cline settings file.
Generated metadata: the product catalog
setup_clientsgains four ids. The cursor-plugin skill copy was regenerated.Read existing files or captured data.
Launch or attach to a process.
Inject instrumentation or run scripts/code.
Change process memory, registers, files, or configuration.
Contact network services.
Recover protected code or work around protections.
Documentation or usability only; no target interaction.
Not sure yet; investigation or maintainer guidance needed.
Evidence and regression coverage
Tests added: for each host, a case in
tests/boundary/filesystem/mcpAddClientLifecycle.test.tsusingplatform: "linux". It checks the path under~/.config/<Folder>/User/globalStorage/..., then:owned;The
clientLifecycle.test.tsdetection list is updated.Base reproduction: none of these rows exist on the base.
Remaining proof gaps: no editor or Cline was run. The data folder names follow each product's user-data directory.
Validation performed
npm run test:focused -- tests/boundary/filesystem/mcpAddClientLifecycle.test.ts tests/boundary/filesystem/clientLifecycle.test.ts— 72 passed.npm run test:local -- src/application/ClientConfigRoots.test.ts src/application/McpRegistrationCatalog.test.ts src/application/McpClientRegistration.test.ts— 49 passed.npm run check:fast— passed (pre-push hook).npm run docs:check— passed.Compatibility, safety, and release
platform: "linux"on macOS.Author readiness
Human owner:
Before merge
type(scope): outcome.