Repository navigation
install: windsurf client writes the Devin user MCP file - #2254
rr-develop wants to merge 6 commits into
Conversation
Devin Desktop documents its user MCP file at ~/.config/devin/mcp_config.json, and the Devin CLI reads the same file. The Windsurf path the installer used (~/.codeium/windsurf/mcp_config.json) is still imported by the CLI until it is removed, so existing installs keep working. The Windows location is inferred from the CLI's %APPDATA%\devin configuration directory. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Signed-off-by: rr-develop <roman8rodionov@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
zlareb1
left a comment
There was a problem hiding this comment.
The native user path matches the current local agent documentation. The path switch also breaks installs for people still using the legacy editor configuration.
zlareb1
left a comment
There was a problem hiding this comment.
The request SLI test reports the same missing _role entry on the clean CI base. The focused test passes on current main after the fixture repair in #2258. Failed job · Repair
Windsurf's user MCP file moved to ~/.config/devin/mcp_config.json. An install still wrote only the new path, which broke people on the legacy editor whose config is ~/.codeium/windsurf/mcp_config.json. Use the legacy file while the new one does not exist and the old one does. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Signed-off-by: rr-develop <roman8rodionov@gmail.com>
|
@zlareb1 Thanks. Pushed 2476f8d: |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 2476f8d. Configure here.
… directory exists The legacy fallback applied only once the legacy file existed, so a home with only ~/.codeium/windsurf/ was not detected and an explicit --client windsurf wrote the Devin file. Use the legacy path while the Devin directory is absent and the legacy file or its directory is present. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Signed-off-by: rr-develop <roman8rodionov@gmail.com>
|
@zlareb1 Thanks, you were right about detection. Pushed 1cd8f4f: the legacy path is now used whenever the Devin directory is absent and the legacy file or its directory is present. So a home with only |
zlareb1
left a comment
There was a problem hiding this comment.
The 139 CLI installer tests passed, and discovery works with only the legacy directory. With both directories present, explicit --client windsurf still reports success while leaving the old token in the legacy editor. The earlier request to keep that install target selectable remains open. Install target finding
…file The Windsurf entry pointed at the Devin user file, so a legacy Windsurf install was not detected and the token setup disagreed with `loom install`. Keep `windsurf` on ~/.codeium/windsurf/mcp_config.json and add a `devin` client for ~/.config/devin/mcp_config.json. Both token setups and the installer now name the same file per client; the legacy fallback in the installer is removed. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Signed-off-by: rr-develop <roman8rodionov@gmail.com>
|
@zlareb1 Agreed, the token setup and the installer disagreed. Pushed 3f35e53: |
zlareb1
left a comment
There was a problem hiding this comment.
The two install targets are now separate, and token setup uses the same paths as the installer. The changed guide fails the pinned formatting check. Update the PR title and description to describe --client devin and the retained --client windsurf target.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Signed-off-by: rr-develop <roman8rodionov@gmail.com>
zlareb1
left a comment
There was a problem hiding this comment.
The installer and token setup use separate client paths. The 191 focused tests pass, and Prettier and Biome pass on the changed files. The title and changelog still say that the windsurf target changes paths. Update them to describe the added devin target and the existing windsurf path.
| [Windsurf import](https://docs.devin.ai/cli/reference/configuration/read-config-from). | ||
| `loom install --client windsurf` writes that imported file; disabling | ||
| `read_config_from.windsurf` removes that route from Devin. The CLI check wrote a native | ||
| and the Devin Desktop [MCP page](https://docs.devin.ai/desktop/cascade/mcp) both name the |
There was a problem hiding this comment.
P3 — The cited page documents the Devin Local agent in Desktop. The editor FAQ lists a different MCP file. Label the target as Devin CLI and Devin Local so a reader following the editor configuration does not write the token to the wrong file. Devin Local MCP configuration · Desktop editor configuration
…ktop's different file Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Signed-off-by: rr-develop <roman8rodionov@gmail.com>
|
@zlareb1 Thanks, fixed in 099fa6a: the paragraph now names the |
zlareb1
left a comment
There was a problem hiding this comment.
The installer retains the Windsurf path and adds a separate devin target. The title and changelog still describe a path switch, and the setup table still labels the devin path for Desktop generally. Please update them to match the shipped behavior. PR metadata finding · Setup label finding
zlareb1
left a comment
There was a problem hiding this comment.
The prepared-bot test fails at first-cell automation on the clean CI base and on current main with the same Postgres 16 and ClickHouse images. The existing fixture repair waits for the first web instance to enforce tenancy. The same test passes locally with that patch. Failed job · Repair #2106

Closes: #614
Changelog category
Changelog entry
loom install --client windsurfnow writes the Devin user MCP file (~/.config/devin/mcp_config.json) instead of~/.codeium/windsurf/mcp_config.json, which Devin Desktop no longer documents as the user file. Existing installs keep working: the Devin CLI still imports the old file until it is removed.Why
Devin Desktop (the renamed Windsurf) documents its user MCP file at
~/.config/devin/mcp_config.jsonon its MCP page, scope "User". The Devin CLI reads the same file in its native configuration. The installer wrote the older~/.codeium/windsurf/path, so a Desktop user following the docs would not find the Loom entry.Evidence and the one conflict:
~/.config/devin/mcp_config.json; project file.devin/mcp_config.json; local override.devin/mcp_config.local.json.~/.codeium/mcp_config.json, and says the~/.codeium/directory is not changing. This conflicts with the MCP page. I chose the MCP page because it is the page that names MCP scope explicitly; the FAQ table may be stale. I did not run Devin Desktop, so this rests on the docs.~/.codeium/<channel>/mcp_config.jsonby default (stable:~/.codeium/windsurf/). That is why the old file is kept in this PR's docs rather than removed.%APPDATA%\devin\mcp_config.jsonis inferred from the CLI's%APPDATA%\devinconfiguration directory. I could not verify it on Windows.Decision: I wrote the path the Desktop MCP page names. In the issue I had said I would not change a path before the maintainer confirmed the file. The maintainer asked us to take this issue instead of #1175, so I went ahead on the evidence above. If the maintainer's reading differs (for example the FAQ path is current), the change is one line in
server/identity/app/token_clients.pyplus the doc row.Scope and risk
CONFIG_PATHS["windsurf"]inserver/identity/app/token_clients.py: darwin and linux now~/.config/devin/mcp_config.json; win32 is the inferred path above.docs/features/integrations/mcp-clients.md: the windsurf row and the Devin CLI paragraph.--clientauto-detection checks whether the client's config directory exists. For windsurf that directory is now~/.config/devin, not~/.codeium/windsurf. A machine with only the old Windsurf directory is no longer detected as windsurf until~/.config/devinexists or--client windsurfis passed explicitly.Compatibility, rollout and rollback
url+headers) is unchanged; only the file it is written to changes.~/.codeium/windsurf/mcp_config.jsonor setread_config_from.windsurftofalsein the CLI config.loom install --client windsurfwrites the old file again. A file already written to~/.config/devin/mcp_config.jsonstays there; delete it by hand if you want it gone.Tests
Scope: a change to a path table in
token_clients.pyreaches every module that imports it transitively, so I ran the full transitive set of unit modules rather than only the modules named after the change. The set is 291 modules: everytests/unitmodule that importsserver.identity.app.token_clients, directly or throughserver.cli.install,server.cli.up,server.cli.initorserver.identity.app.me_service_accounts, plustest_doc_links.pyandtest_public_copy.pybecause the doc changed. I ran them withpytest -q -n 2in.venv.Result: 12078 passed, 105 skipped, 1 failed in 8m28s.
tests/unit/test_request_sli.py::test_only_answers_whole_without_the_namespace_leave_an_unverified_refusal_unmarked. It fails identically onorigin/main(063d9d6e1), with an extra('server/knowledge/app/sources.py', '_role', 'never')entry. It is unrelated to this change. I did not fix it here.tests/integration) were not run: they need a running ClickHouse and server, which this environment does not have. CI runs them.test_windsurf_install_targets_the_devin_user_file(linux and darwin) fails on the old path and passes on the new one.ruff checkandruff format --checkpass.scripts/gates/check_no_secrets.pypasses. I did not runmake lint,make typecheckor the Prettier check on the Markdown.AI assistance in the code
AI-generated: an agent (Claude) wrote the diff and the doc text. I checked the three Devin URLs quoted above against the pages, read the path table in
token_clients.py, and ran the tests listed above. I have not run Devin Desktop or Windows.I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
docs/describe the system as it now is; the doc says the old file is still imported by the CLI until removed.git commit -s).🤖 Generated with Claude Code
Note
Low Risk
Localized installer path and client-list changes with no auth or server behavior changes; users must pick
devinexplicitly for the documented Devin Desktop file.Overview
Introduces a dedicated
devintarget forloom installand the settings UI so Loom writes the Devin user MCP file at~/.config/devin/mcp_config.json(with a Windows%APPDATA%\devin\equivalent).windsurfis unchanged and still updates the legacy~/.codeium/windsurf/mcp_config.jsonpath.Docs spell out when to use
--client devinvs--client windsurf, including that Devin CLI may still import the old Windsurf file until it is removed or import is disabled. Token minting, frontend client pickers, and CLI help snapshots now includedevin; unit tests assert the separate install paths for windsurf and devin.Reviewed by Cursor Bugbot for commit 099fa6a. Bugbot is set up for automated code reviews on this repo. Configure here.