feat(providers): add Cursor CLI provider#682
Open
chinhtran-dev wants to merge 9 commits intonextlevelbuilder:devfrom
Open
feat(providers): add Cursor CLI provider#682chinhtran-dev wants to merge 9 commits intonextlevelbuilder:devfrom
chinhtran-dev wants to merge 9 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
|
Should update Dockerfile to add new argument and install cursor agent when build docker image. |
- Introduced a new docker-compose file for the Cursor Agent CLI, allowing for credential synchronization from the host. - Updated Dockerfile to include a build argument for enabling the Cursor Agent installation and added necessary dependencies. - Configured the application to mount the host's Cursor credentials directory as read-only. Made-with: Cursor
Use GOCLAW_CURSOR_CLI_PATH in the Cursor overlay and document the Cursor compose overlay in the base compose hints so Docker setup matches the Cursor provider configuration. Made-with: Cursor
- Updated docker-compose configuration to reflect changes in credential syncing to the app's XDG path. - Improved the Dockerfile to support multiple runtime stages and added necessary dependencies for the Cursor Agent. - Enhanced the entrypoint script to handle Cursor CLI authentication and session file synchronization more robustly. - Removed deprecated `about` command handling in the Cursor CLI authentication logic. - Updated localization files to clarify the use of local Cursor CLI sessions. 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