feat(providers): add Cursor CLI provider#682
Open
chinhtran-dev wants to merge 5 commits intonextlevelbuilder:devfrom
Open
feat(providers): add Cursor CLI provider#682chinhtran-dev wants to merge 5 commits intonextlevelbuilder:devfrom
chinhtran-dev wants to merge 5 commits intonextlevelbuilder:devfrom
Conversation
Implement CursorCLIProvider mirroring ClaudeCLIProvider design: - Shell out to Cursor agent binary with CURSOR_API_KEY auth injection - Support chat, MCP bridge, and session management - Add CursorCLIConfig struct and provider registration - Fix missing API key guards in config and DB layers - Align code style and error handling with ClaudeCLIProvider - Update provider documentation
…nd tests Add Cursor CLI provider implementation, session/auth/chat/MCP plumbing, gateway registration, provider store and verification, channel config, and unit tests including session tests. Made-with: Cursor
Provider constants, dashboard section, form dialogs, setup wizard step, and en/vi/zh strings. Made-with: Cursor
Made-with: Cursor
Resolve conflicts: Telegram MentionMode + Cursor/Novita provider wiring, provider_models split (cursorCLIModels in catalog), OAuth validation and Ollama normalization on create, UI i18n and overview helpers, MCP token via pkgGatewayToken for Cursor CLI registration. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #351
Summary
Adds a Cursor CLI LLM provider that follows the same integration pattern as
ClaudeCLIProvider: subprocess-based streaming, host-machine Cursor login (browseragent loginflow), auth/health checks, MCP bridge support, and gateway/HTTP/UI wiring.Implementation notes
cursor_cliprovider type end-to-end (config, store, HTTP verify, consumer handlers).agent status/ equivalent) with subscription visibility where the CLI exposes it.docs/02-providers.md.internal/providers/.Checklist