Skip to content

feat: Cursor IDE config endpoint with validation#26

Open
randypitcherii wants to merge 4 commits intomainfrom
worktree-cursor-config
Open

feat: Cursor IDE config endpoint with validation#26
randypitcherii wants to merge 4 commits intomainfrom
worktree-cursor-config

Conversation

@randypitcherii
Copy link
Owner

Summary

  • Adds GET /api/v1/config/cursor — returns ready-to-paste Cursor IDE settings (base URL, API key, auto-discovered model aliases)
  • Adds POST /api/v1/config/cursor/validate — checks gateway health, model availability, and auth status
  • Adds CursorConfig React component with copy-to-clipboard, setup instructions, and live validation UI
  • 9 new backend tests, all passing (58 total, 0 failures)

Test plan

  • make test passes (58 passed, 10 skipped)
  • Deploy to dev and verify Cursor config endpoint returns correct gateway URL
  • Verify frontend component renders config and copy/validate buttons work
  • Test validation endpoint with and without auth headers

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
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