Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 24 additions & 20 deletions docs/features/integrations/mcp-clients.md

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions frontend/src/lib/clientSetups.fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@
"command": "",
"env": {}
},
"devin": {
"config_key": "mcpServers",
"config": {
"mcpServers": {
"loom": {
"url": "http://x/mcp",
"headers": {
"Authorization": "Bearer T"
}
}
}
},
"config_toml": "",
"command": "",
"env": {}
},
"zed": {
"config_key": "context_servers",
"config": {
Expand Down Expand Up @@ -278,6 +294,22 @@
"command": "",
"env": {}
},
"devin": {
"config_key": "mcpServers",
"config": {
"mcpServers": {
"loom": {
"url": "http://x/mcp?a=1",
"headers": {
"Authorization": "Bearer T"
}
}
}
},
"config_toml": "",
"command": "",
"env": {}
},
"zed": {
"config_key": "context_servers",
"config": {
Expand Down Expand Up @@ -458,6 +490,22 @@
"command": "",
"env": {}
},
"devin": {
"config_key": "mcpServers",
"config": {
"mcpServers": {
"loom": {
"url": "http://x/mcp?mytoolset=x",
"headers": {
"Authorization": "Bearer T"
}
}
}
},
"config_toml": "",
"command": "",
"env": {}
},
"zed": {
"config_key": "context_servers",
"config": {
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/lib/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type ClientId =
| "vscode"
| "cline"
| "windsurf"
| "devin"
| "zed"
| "gemini"
| "opencode";
Expand All @@ -33,6 +34,7 @@ export const CLIENTS: MCPClient[] = [
{ id: "vscode", label: "VS Code" },
{ id: "cline", label: "Cline" },
{ id: "windsurf", label: "Windsurf" },
{ id: "devin", label: "Devin" },
{ id: "zed", label: "Zed" },
{ id: "gemini", label: "Gemini CLI" },
{ id: "opencode", label: "OpenCode" },
Expand Down
8 changes: 8 additions & 0 deletions server/identity/app/token_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@
"linux": "~/.codeium/windsurf/mcp_config.json",
"win32": "%USERPROFILE%\\.codeium\\windsurf\\mcp_config.json",
},
# Windsurf is now Devin Desktop; its user MCP file is ~/.config/devin/mcp_config.json
# (docs.devin.ai/desktop/cascade/mcp, scope "User"). The Devin CLI reads the same file.
# The Windows location is inferred from the CLI's %APPDATA%\devin config directory.
"devin": {
"darwin": "~/.config/devin/mcp_config.json",
Comment thread
zlareb1 marked this conversation as resolved.
Resolved
Comment thread
zlareb1 marked this conversation as resolved.
Resolved
"linux": "~/.config/devin/mcp_config.json",
"win32": "%APPDATA%\\devin\\mcp_config.json",
},
"zed": {
"darwin": "~/.config/zed/settings.json",
"linux": "~/.config/zed/settings.json",
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/snapshots/cli_help.json
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@
"options: -h, --help show this help message and exit"
],
"loom install": [
"usage: loom install [-h] [--client {claude-desktop,claude-code,codex,cursor,vscode,cline,windsurf,zed,gemini,opencode,kiro} [{claude-desktop,claude-code,codex,cursor,vscode,cline,windsurf,zed,gemini,opencode,kiro} ...]] [--server-url SERVER_URL] [--token TOKEN] [--name NAME] [--toolset TOOLSET] [--dry-run] [--force]",
"options: -h, --help show this help message and exit --client {claude-desktop,claude-code,codex,cursor,vscode,cline,windsurf,zed,gemini,opencode,kiro} [{claude-desktop,claude-code,codex,cursor,vscode,cline,windsurf,zed,gemini,opencode,kiro} ...] Which client(s) to wire. Omit to auto-detect and wire every supported client found on this machine. --server-url SERVER_URL Loom server URL (default LOOM_BASE_URL, else http://localhost:7777). --token TOKEN JWT to embed in the client config. Defaults to LOOM_API_KEY, then ~/.loom/token. Use `loom mint-token` to generate one. --name NAME Server name: the key under mcpServers (cursor) or servers (vscode), and the name `claude mcp add` / `codex mcp add` registers. --toolset TOOLSET MCP toolset the client lists, as `?toolset=` on the URL; when omitted, `coding` for claude-code, codex, cursor, gemini, opencode, else the server default (LOOM_MCP_TOOLSET). --dry-run Print what would be written without touching the file. --force claude-code: add the user-scope MCP entry even when the loom plugin is installed (it mounts the server itself; both = every tool listed twice)."
"usage: loom install [-h] [--client {claude-desktop,claude-code,codex,cursor,vscode,cline,windsurf,devin,zed,gemini,opencode,kiro} [{claude-desktop,claude-code,codex,cursor,vscode,cline,windsurf,devin,zed,gemini,opencode,kiro} ...]] [--server-url SERVER_URL] [--token TOKEN] [--name NAME] [--toolset TOOLSET] [--dry-run] [--force]",
"options: -h, --help show this help message and exit --client {claude-desktop,claude-code,codex,cursor,vscode,cline,windsurf,devin,zed,gemini,opencode,kiro} [{claude-desktop,claude-code,codex,cursor,vscode,cline,windsurf,devin,zed,gemini,opencode,kiro} ...] Which client(s) to wire. Omit to auto-detect and wire every supported client found on this machine. --server-url SERVER_URL Loom server URL (default LOOM_BASE_URL, else http://localhost:7777). --token TOKEN JWT to embed in the client config. Defaults to LOOM_API_KEY, then ~/.loom/token. Use `loom mint-token` to generate one. --name NAME Server name: the key under mcpServers (cursor) or servers (vscode), and the name `claude mcp add` / `codex mcp add` registers. --toolset TOOLSET MCP toolset the client lists, as `?toolset=` on the URL; when omitted, `coding` for claude-code, codex, cursor, gemini, opencode, else the server default (LOOM_MCP_TOOLSET). --dry-run Print what would be written without touching the file. --force claude-code: add the user-scope MCP entry even when the loom plugin is installed (it mounts the server itself; both = every tool listed twice)."
],
"loom demo": [
"usage: loom demo [-h] [--file FILE] [--question QUESTION] [--tags TAGS] [--base-url BASE_URL] [--token TOKEN] [--org ORG] [--namespace NAMESPACE] [--root ROOT] [--search-only]",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/snapshots/cli_tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -17582,6 +17582,7 @@
"vscode",
"cline",
"windsurf",
"devin",
"zed",
"gemini",
"opencode",
Expand Down
23 changes: 23 additions & 0 deletions tests/unit/test_cli_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1788,3 +1788,26 @@ def test_install_with_no_client_wires_opencode_when_its_config_dir_exists(
assert cli._cmd_install(p.parse_args(["--token", "T", "--server-url", "https://h"])) == 0
written = json.loads((tmp_path / "config" / "opencode" / "opencode.json").read_text())
assert written["mcp"]["servers"]["loom"] == _opencode_entry("T")


@pytest.mark.parametrize("platform", ["linux", "darwin"])
def test_windsurf_install_targets_its_own_user_file(
tmp_path, monkeypatch: pytest.MonkeyPatch, platform: str
) -> None:
monkeypatch.setenv("HOME", str(tmp_path))
monkeypatch.setattr(sys, "platform", platform)
assert (
cli._resolve_install_path("windsurf")
== tmp_path / ".codeium" / "windsurf" / "mcp_config.json"
)


@pytest.mark.parametrize("platform", ["linux", "darwin"])
def test_devin_install_targets_the_devin_user_file(
tmp_path, monkeypatch: pytest.MonkeyPatch, platform: str
) -> None:
"""Windsurf is now Devin Desktop, whose user MCP file is ~/.config/devin/mcp_config.json
(docs.devin.ai/desktop/cascade/mcp); the Windsurf file is not read by it."""
monkeypatch.setenv("HOME", str(tmp_path))
monkeypatch.setattr(sys, "platform", platform)
assert cli._resolve_install_path("devin") == tmp_path / ".config" / "devin" / "mcp_config.json"
1 change: 1 addition & 0 deletions tests/unit/test_token_mint.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ async def test_the_default_token_follows_live_grants_and_drops_org_wide_roles(
"vscode",
"cline",
"windsurf",
"devin",
"zed",
"gemini",
"opencode",
Expand Down
Loading