Repository navigation
feat(setup): inspect, refresh and remove five mcp-add-only clients - #10694
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] The reviewed changes appear safe to merge. SummaryMoves Cline’s editor extensions, Kiro, Mastra Code, Zed and Amp into the shared client table so setup, doctor, update and uninstall use the same definitions.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
Table["Shared client table"] --> Add["mcp add"]
Table --> Setup["Setup"]
Table --> Doctor["Doctor"]
Table --> Update["Update"]
Table --> Uninstall["Uninstall"]
Reviews (8) · Last reviewed commit: "test(setup): expect doctor to report the..." · Reviewed by Greptile |
morluto
force-pushed
the
refactor/fold-mcp-add-clients
branch
from
November 15, 2026 00:45
d47e88f to
bb48de8
Compare
This was referenced Nov 15, 2026
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
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.
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.
…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.
morluto
force-pushed
the
refactor/fold-mcp-add-clients
branch
from
November 15, 2026 03:44
e00a1c5 to
02f9936
Compare
…indsurf (#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 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
2 of 19 tasks
Merged
22 tasks
This was referenced Nov 22, 2026
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
Cline VS Code extension, Kiro, Mastra Code, Zed and Amp become rows in the client table.
rea mcp addalready wrote registrations for them, but doctor, update and uninstall never saw those registrations. Now they do, and setup offers each client when its directory exists.Refs #7181 (this PR covers 5 of the 10 mcp-add-only clients; the other 5 are listed below).
Problem and expected behavior
rea mcp add --agent zed(likewisecline,kiro-cli,mastracode,amp) wrote a registration from aregistration-onlycatalog entry (McpRegistrationCatalog.ts). Doctor (readClientRegistrationInspections), update (existingMaintenanceScope→rea setup --client) and uninstall only iteratesupportedClients(), so:rea doctordid not report the registration;rea updateleft it pinned to the old entrypoint;rea uninstallreported success while it remained.Expected: a client REA registers can also be inspected, refreshed and removed by REA.
Change and scope
SupportedClients.ts: five newdefineClientrows (cline_vscode,kiro,mastracode,zed,amp) with the paths, formats, markers, stdio profiles and add-mcp aliases/project paths the catalog used to declare.SetupClient["format"]gainszedandamp, soClientConfigurationFormatno longer lists them separately.McpRegistrationCatalog.ts: those ids becometableClient(...)projections. The duplicate location functions are removed fromMcpRegistrationLocations.ts.mcp addsection, a client-configuration section, and the skill's client-id list.Not included (each needs native read rules modeled first, so its own PR; the research is in the audit's report 18):
/etc/goose/config.yamlandGOOSE_ADDITIONAL_CONFIG_FILESlayers, merged field by field.mcp add.FX_HOMEis ignored; setup's writer has no private-profile (0700/0600) mode.XDG_CONFIG_HOMEandMCPORTER_CONFIGare ignored. MCPorter also imports setup-managed clients by default.Collapsed into this PR from its stack: Cline in VS Code Insiders, VSCodium, Cursor and Windsurf (#10729); Amp
settings.jsonc(#10717); Linux Flatpak Zed, includingFLATPAK_XDG_CONFIG_HOMEand a native folder linked to the Flatpak folder (#10721).Scope: this was a maintainer request ("research and address"). Clients are not providers, and nothing here adds target execution, injection, mutation or protection recovery.
Contract and boundary impact
Semantic owner and earliest changed stage: the client table (
SUPPORTED_CLIENT_DEFINITIONS) now owns these five clients. The mcp-add catalog projects the rows, so the registration-only descriptors and their location functions are deleted.Contribution scope fit and linked maintainer decision: maintainer-requested W8/D5 workstream.
CLI and MCP/tool-catalog contract:
rea setup --client,rea doctor --clientand uninstall accept and reportcline_vscode,kiro,mastracode,zedandamp.rea mcp addids and aliases are unchanged.Provider, bridge, target-format, or platform compatibility: paths are unchanged from the mcp-add catalog on macOS, Linux and Windows.
Evidence, artifact, provenance, or reconstruction contract: none.
Target selection, authority, upstream behavior, and cleanup details: setup writes only after approval, with backups, as for every row. Uninstall removes only REA-owned rows.
Generated metadata: the product catalog's
setup_clientsgains five ids (generated in CI). 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/boundary/filesystem/mcpAddClientLifecycle.test.tscovers each of the five clients through production code. It registers withresolveMcpRegistrationClients+registerMcpClients, checks the path is the table row's, then:owned;existingMaintenanceScopeselects it for update;invalid;removedand leaves the file withoutrea.clientLifecycle.test.ts: the detection list includes the five new ids.srcreverted toorigin/main, all five cases of the new test fail.Validation performed
tests/boundary/cli/packageRunnerRegistration.test.ts:doctor --client ompnow also reports the Amp registrationmcp add --agent ampwrote, because Amp is a table row (doctor reports every detected registration;--clientonly forces inclusion). The test now expects bothampandompaligned (30a89ba).npm run test:focused -- tests/boundary/cli/packageRunnerRegistration.test.tsplus 12 related setup/doctor/mcp-add boundary and acceptance files — 242 passed, 11 skipped.npm run test:focused -- tests/boundary/filesystem/mcpAddClientLifecycle.test.ts tests/boundary/filesystem/clientLifecycle.test.ts— 68 passed. Withsrcstashed: 5 failed.npm run test:focused -- tests/boundary/filesystem/clientRegistrationStatus.test.ts tests/boundary/filesystem/clientLifecycle.test.ts tests/boundary/filesystem/clientConfigurationDialects.test.ts tests/process-global/updateMaintenance.test.ts tests/acceptance/setup/automaticClientSetup.test.ts tests/boundary/cli/cliSetup.test.ts— 219 passed. The one failure was the expected detection list, now updated.npm run test:local -- src/application/McpRegistrationCatalog.test.ts src/application/McpClientRegistration*.test.ts src/application/SetupPlan.test.ts src/application/Setup.planning.test.ts src/application/Doctor.test.ts src/application/Uninstall.test.ts— 215 passed, 1 skipped.npm run test:local -- src/cliMcpRegistration.test.ts src/application/ClientRegistration.test.ts src/application/ClientConfigurationDocument.shape.test.ts src/setupEnvironment.test.ts src/application/Setup.configuration.test.ts— 96 passed.npm run check:fast— passed.npm run docs:check— passed.npm run test:focused -- tests/boundary/filesystem/mcpAddClientLifecycle.test.ts— 11 passed; the new linked-folder case failed with thezedLocationchange reverted. Pre-pushnpm run check:fastpassed.Compatibility, safety, and release
rea setupnow detects and offers these five clients, and setup's plan shows each change before approval.Author readiness
Human owner:
Before merge
type(scope): outcome.