Skip to content

install: windsurf client writes the Devin user MCP file - #2254

Open
rr-develop wants to merge 6 commits into
ClickHouse:mainfrom
rr-develop:fix/614-windsurf-devin-path
Open

rr-develop wants to merge 6 commits into
ClickHouse:mainfrom
rr-develop:fix/614-windsurf-devin-path

Conversation

@rr-develop

@rr-develop rr-develop commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes: #614

Changelog category

  • Bug Fix (user-visible misbehavior in a release)

Changelog entry

loom install --client windsurf now 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.json on 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:

  • Devin Desktop MCP page: user file ~/.config/devin/mcp_config.json; project file .devin/mcp_config.json; local override .devin/mcp_config.local.json.
  • Devin Desktop FAQ (devin-desktop-faq): its per-user table still lists ~/.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.
  • Devin CLI config import (read-config-from): the CLI imports MCP servers from ~/.codeium/<channel>/mcp_config.json by default (stable: ~/.codeium/windsurf/). That is why the old file is kept in this PR's docs rather than removed.
  • The Windows path %APPDATA%\devin\mcp_config.json is inferred from the CLI's %APPDATA%\devin configuration 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.py plus the doc row.

Scope and risk

  • CONFIG_PATHS["windsurf"] in server/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.
  • Behaviour change in auto-detection: --client auto-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/devin exists or --client windsurf is passed explicitly.
  • Not touched: the other clients, the token format, the server.

Compatibility, rollout and rollback

  • Wire: none. The MCP entry content (url + headers) is unchanged; only the file it is written to changes.
  • Operator steps: none. Users who installed before this change keep the old entry, which the Devin CLI still imports. To drop it, remove ~/.codeium/windsurf/mcp_config.json or set read_config_from.windsurf to false in the CLI config.
  • Rollback: reverting the PR means loom install --client windsurf writes the old file again. A file already written to ~/.config/devin/mcp_config.json stays there; delete it by hand if you want it gone.

Tests

Scope: a change to a path table in token_clients.py reaches 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: every tests/unit module that imports server.identity.app.token_clients, directly or through server.cli.install, server.cli.up, server.cli.init or server.identity.app.me_service_accounts, plus test_doc_links.py and test_public_copy.py because the doc changed. I ran them with pytest -q -n 2 in .venv.

Result: 12078 passed, 105 skipped, 1 failed in 8m28s.

  • The failure is tests/unit/test_request_sli.py::test_only_answers_whole_without_the_namespace_leave_an_unverified_refusal_unmarked. It fails identically on origin/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.
  • Integration modules that import the same code (35 of them under tests/integration) were not run: they need a running ClickHouse and server, which this environment does not have. CI runs them.
  • New test test_windsurf_install_targets_the_devin_user_file (linux and darwin) fails on the old path and passes on the new one.
  • Lint on the two changed Python files: ruff check and ruff format --check pass. scripts/gates/check_no_secrets.py passes. I did not run make lint, make typecheck or 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

  • Local format, lint and focused tests pass (see Tests).
  • Docs under docs/ describe the system as it now is; the doc says the old file is still imported by the CLI until removed.
  • Commits are signed off (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 devin explicitly for the documented Devin Desktop file.

Overview
Introduces a dedicated devin target for loom install and the settings UI so Loom writes the Devin user MCP file at ~/.config/devin/mcp_config.json (with a Windows %APPDATA%\devin\ equivalent). windsurf is unchanged and still updates the legacy ~/.codeium/windsurf/mcp_config.json path.

Docs spell out when to use --client devin vs --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 include devin; 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.

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>
@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 6, 2026 5:04am UTC
loom-telemetry Ready Ready Preview Dec 6, 2026 5:04am UTC

Request Review

@zlareb1 zlareb1 self-assigned this Dec 5, 2026

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The native user path matches the current local agent documentation. The path switch also breaks installs for people still using the legacy editor configuration.

Comment thread server/identity/app/token_clients.py Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@rr-develop

Copy link
Copy Markdown
Contributor Author

@zlareb1 Thanks. Pushed 2476f8d: loom install now keeps the legacy Windsurf file (~/.codeium/windsurf/mcp_config.json) while it exists and the new Devin file does not. Once the new file exists, it is used. Added a unit test for the legacy-only case. tests/unit/test_cli_install.py: 135 passed. Ruff clean.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 2476f8d. Configure here.

Comment thread server/cli/install.py Resolved
… 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>
@rr-develop

Copy link
Copy Markdown
Contributor Author

@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 ~/.codeium/windsurf/ is detected by bare loom install, and --client windsurf writes the legacy file. When ~/.config/devin exists, the Devin file is used even if the legacy file also exists. Tests cover the five combinations: 145 passed across test_cli_install.py and test_cursor_plugin.py; ruff check and format clean. I did not change the token-mint table in token_clients.py yet; say if you want that entry to follow the legacy path too.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread server/identity/app/token_clients.py Resolved
…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>
@rr-develop

Copy link
Copy Markdown
Contributor Author

@zlareb1 Agreed, the token setup and the installer disagreed. Pushed 3f35e53: windsurf keeps the Windsurf editor's file (~/.codeium/windsurf/mcp_config.json) in the token table and the installer, and a new devin client carries the Devin Desktop/CLI file (~/.config/devin/mcp_config.json). me.service_accounts.create and loom install now name the same file per client, and the legacy fallback in the installer is gone. The new client is added to the CLI choices, the help and tree snapshots, test_token_mint, the dashboard CLIENTS list and its fixture, and the MCP clients doc. Checks: 196 passed across the install, token mint/clients, plugin and extension tests, plus the snapshot tests; ruff clean. I did not run the dashboard's vitest suite, since the frontend has no node_modules here.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@rr-develop

Copy link
Copy Markdown
Contributor Author

@zlareb1 Thanks, fixed in 941e2bf: ran npx --yes prettier@3.9.9 --write on docs/features/integrations/mcp-clients.md; the check passes now. Nothing else changed.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@rr-develop

Copy link
Copy Markdown
Contributor Author

@zlareb1 Thanks, fixed in 099fa6a: the paragraph now names the devin target as the file Devin CLI and Devin Local read, cites the Devin Local customizations page, and says that the Desktop editor FAQ lists ~/.codeium/mcp_config.json instead and must not be written to. Prettier 3.9.9 check passes; doc tests pass.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

loom install --client windsurf writes a file the renamed client (Devin Desktop) no longer documents

2 participants