Skip to content

loom install --client gemini writes Gemini CLI's MCP entry #724

Closed

Description

@zlareb1

Company or project name

No response

Component

CLI

Use case

Gemini CLI users install Loom through the Gemini extension or by editing settings.json; loom install --client has no Gemini entry.

Describe the solution you'd like

Goal. loom install --client gemini writes mcpServers.loom into ~/.gemini/settings.json, merging with what is there, and the dashboard's token dialog offers Gemini CLI.

Files to change

  • server/identity/app/token_clients.py:
    • a CONFIG_PATHS row for gemini, ~/.gemini/settings.json per platform (%USERPROFILE%\.gemini\settings.json on Windows);
    • the default mcpServers key from config_key() fits;
    • Gemini reads the URL from httpUrl, not url, so mcp_entry() needs its own branch: {"httpUrl": …, "headers": {"Authorization": "Bearer …"}};
    • gemini in CODING_CLIENTS, so the URL carries ?toolset=coding.
  • server/cli/install.py: the merge in _install_one already writes one top-level section; check that a settings.json holding Gemini's other settings keeps them.
  • frontend/src/lib/clients.ts: gemini in ClientId, CLIENTS, CODING_TOOLSET_CLIENTS, and an httpUrl branch in formatMcpConfig(); clients.test.ts; clientSetups.fixture.json.
  • tests/unit/test_token_clients.py, tests/unit/test_cli_install.py, tests/unit/test_token_mint.py, and tests/unit/snapshots/cli_tree.json and cli_help.json.
  • docs/features/integrations/mcp-clients.md, each spot that names the loom install or coding-toolset clients:
    • the --client row of the flag table (its list of client names);
    • the --toolset row, whose default reads "coding for Claude Code, Codex and Cursor";
    • the sentence under "Plugin or plain MCP" that ends "the default only for Claude Code, Codex and Cursor";
    • the "Plugin or plain MCP" row that lists the loom install --client <name> clients (Claude Desktop, VS Code, Cline, Windsurf, Zed);
    • the "What it writes per client" table.
  • docs/getting-started/connect-a-coding-agent.md: the token dialog's client list under Connect ("Cursor, VS Code, Cline, Windsurf, Zed or Claude Desktop", around line 81) and the "--client also takes …" list after the command.
  • docs/features/integrations/index.md: the row that lists the loom install clients ("Claude Desktop, Cursor, VS Code, Cline, Windsurf, Zed | … loom install --client …", around line 19), and docs/getting-started/quickstart.md: the sentence that lists the clients loom install writes an MCP entry for (around lines 528–529). The MCP clients page has checked entries for nine more agents and the hosted builders' routes #695 and Google ADK memory services use Loom in both SDKs #696 also edit index.md (Google ADK memory services use Loom in both SDKs #696 re-pads its Map table), and The MCP clients page has checked entries for nine more agents and the hosted builders' routes #695 edits mcp-clients.md: rebase onto whichever is still open.

Acceptance criteria

  • A unit test writes the file, then rewrites it, without losing other servers or settings.
  • Gemini CLI reads settings.json through strip-json-comments (packages/cli/src/config/settings.ts in https://github.com/google-gemini/gemini-cli; its configuration docs do not mention comments), so the file may hold // and /* */ comments, which json.load refuses; today _install_one then says "fix or delete it and re-run". When the file holds comments, loom install --client gemini writes nothing and refuses with a message that names the file and prints the entry to paste; a unit test covers it.
  • Say whether loom install with no --client should wire Gemini CLI when ~/.gemini/ exists only for Google Antigravity (which also uses ~/.gemini/), and test the choice.
  • gemini mcp list, run in a trusted folder, shows loom connected (Gemini CLI 0.68.0 is the version the MCP clients page checked; say which version you used).
  • make format-check lint typecheck, npm --prefix frontend test and npm --prefix frontend run build (tsc -b && vite build, as CI runs it) pass.
  • npx --prefix frontend playwright install chromium && npm --prefix frontend run e2e passes (the specs in frontend/e2e/, as CI's frontend-e2e job runs them).
  • The docs checks pass:
.venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q
.venv/bin/python -m scripts.codegen.docs_reference --check
  • LOOM_UPDATE_CLI_SNAPSHOT=1 .venv/bin/python -m pytest tests/unit/test_cli_surface_snapshot.py regenerates cli_tree.json and cli_help.json (the command tests/unit/snapshots/README.md gives), and .venv/bin/python -m pytest tests/unit/test_token_clients.py tests/unit/test_cli_install.py tests/unit/test_token_mint.py tests/unit/test_cli_surface_snapshot.py -q passes.

Describe alternatives you've considered

gemini extensions install https://github.com/ClickHouse/loom and gemini mcp add already work; this makes loom install cover Gemini like the other clients.

Where the need comes from

The need is mine, an AI tool helped shape the proposal

Additional context

#722 (OpenCode) and #709 (Zed) change the same files: server/identity/app/token_clients.py, server/cli/install.py, frontend/src/lib/clients.ts, frontend/src/lib/clientSetups.fixture.json and the CLI snapshots. Taken in parallel, expect to rebase onto whichever merges first.

Size: M (a day or two). Read CONTRIBUTING.md first (signed-off commits), and comment here to say you are working on it.

Activity

  1. added
    enhancement
    help wanted
    on Nov 16, 2026
  2. rahulsjha commented on Nov 16, 2026

    @rahulsjha
    Contributor

    Hi @zlareb1, I'd like to work on this: a gemini row in CONFIG_PATHS (~/.gemini/settings.json, and %USERPROFILE%\.gemini\settings.json on Windows), an httpUrl branch in mcp_entry(), gemini in CODING_CLIENTS, a check that the merge in _install_one keeps Gemini's other settings, the frontend clients.ts entries and formatMcpConfig() branch, and the listed unit and snapshot tests plus the MCP clients docs. Could you assign it to me?

  3. added
    up-for-grabs
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wantedup-for-grabs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions