Skip to content

loom install gives Cursor the coding toolset, as the dashboard does - #548

Merged
zlareb1 merged 13 commits into
mainfrom
cli/cursor-coding-toolset
Nov 12, 2026
Merged

zlareb1 merged 13 commits into
mainfrom
cli/cursor-coding-toolset

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

loom install --client cursor writes Cursor's MCP entry on the coding toolset, as the dashboard's Connect dialog and the token setup already do. --toolset still picks another listing.

Why

Loom treats Cursor as a coding agent in two places: the dashboard (CODING_TOOLSET_CLIENTS in frontend/src/lib/clients.ts) and the server's per-client setup (server/identity/app/token_clients.py). Both give Cursor ?toolset=coding. loom install gave coding only to Claude Code and Codex, so the same Cursor user got the server's default listing from the CLI and the coding listing from the dashboard.

loom install now reads the set of coding clients from token_clients, renamed to the public CODING_CLIENTS since the CLI imports it. _install_one works out the toolset once, before it dispatches to the Claude Code, Codex or file-writing path: --toolset when given, else coding for a client in that set, else the server default. _CLAUDE_CODE_DEFAULT_TOOLSET is replaced by token_clients.CODING_TOOLSET, which _coding_url, _install_one, server/cli/up.py and server/cli/init.py (for the commands they print) all use.

Scope and risk

  • server/cli/install.py, server/cli/up.py, server/cli/init.py, server/identity/app/token_clients.py (the public CODING_CLIENTS and CODING_TOOLSET), the --toolset help text, its two CLI snapshots, docs/features/integrations/mcp-clients.md (the flag table, and the first entry-shape example now shows the URL the Cursor command writes), docs/operations/deployment.md (the entries on coding to re-point when the code plane is off), and the install tests.
  • Chat clients (Claude Desktop, VS Code, Cline, Windsurf, Zed) keep the server default.
  • An existing ~/.cursor/mcp.json changes only when loom install runs again.

Compatibility, rollout and rollback

  • Wire: none.
  • CLI: loom install --client cursor with no --toolset now writes <url>/mcp?toolset=coding instead of <url>/mcp. On a deployment with the code plane off, that entry lists code tools that refuse; docs/operations/deployment.md names it among the entries to point at core. Pass --toolset with the deployment's LOOM_MCP_TOOLSET (core by default) for the same tools; the entry then pins that toolset instead of following the server default. No flag writes a bare <url>/mcp for Cursor any more, as none does for Claude Code and Codex; that entry is now a hand edit.
  • Operator steps: none.
  • Rollback: revert. Entries already written keep their URL.

Tests

  • tests/unit/test_cli_install.py:
    • Cursor's default entry is ?toolset=coding.
    • A named toolset wins over that default.
    • Every client that writes a config file gets the URL its token_clients.client_config entry carries: coding for Cursor, bare for the chat clients.
    • The saved-token and dry-run paths show the coding URL.
  • The CLI help and tree snapshots are updated for the new help text, and every unit test that reads token_clients, the CLI snapshots or server.cli passes.
  • make format lint pass.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. I checked the CLI default against the dashboard's and the token setup's client sets.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed. (CI runs the full set on the head; the merge waits for it.)
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 9 commits November 12, 2026 02:49
loom install reads the coding clients from token_clients (now the public CODING_CLIENTS) and defaults them to ?toolset=coding; --toolset still picks another listing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…names the coding default

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…, and the help reads as one sentence

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ge names Cursor's toolset

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…TS is a frozenset, and the Cursor note sits under its shape

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…on coding

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 force-pushed the cli/cursor-coding-toolset branch from 833fbd1 to 43bec14 Compare November 12, 2026 02:49
zlareb1 and others added 4 commits November 12, 2026 02:52
…CLI and the token setup

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
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.

1 participant