feat: Cursor IDE config endpoint with validation#26
Open
randypitcherii wants to merge 4 commits intomainfrom
Open
feat: Cursor IDE config endpoint with validation#26randypitcherii wants to merge 4 commits intomainfrom
randypitcherii wants to merge 4 commits intomainfrom
Conversation
Adds GET /api/v1/config/cursor that returns ready-to-paste Cursor settings and POST /api/v1/config/cursor/validate that checks gateway health, model availability, and auth status. Includes a CursorConfig React component with copy-to-clipboard and live validation UI. Co-authored-by: Isaac
The Databricks App proxy sets X-Forwarded-Host/Proto headers. Without this, the config returned localhost as the base URL. Co-authored-by: Isaac
The Databricks App runtime sets DATABRICKS_APP_URL with the public URL. Falls back to X-Forwarded-Host, then request base URL. Co-authored-by: Isaac
Returns standard {"object": "list", "data": [...]} format while
preserving aliases/endpoints keys for backward compatibility.
Adds 6 OpenAI compatibility tests.
Co-authored-by: Isaac
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.
Summary
GET /api/v1/config/cursor— returns ready-to-paste Cursor IDE settings (base URL, API key, auto-discovered model aliases)POST /api/v1/config/cursor/validate— checks gateway health, model availability, and auth statusCursorConfigReact component with copy-to-clipboard, setup instructions, and live validation UITest plan
make testpasses (58 passed, 10 skipped)