-
Notifications
You must be signed in to change notification settings - Fork 151
feat(docs): Add Cursor & VSCode integration #2155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
Comment @cursor review or bugbot run to trigger another review on this PR
| } catch { | ||
| // If deeplink fails, fallback to web configurator | ||
| openApifyMcpConfigurator(integration); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deeplink fallback catch block never executes
The try-catch block around window.open(appUrl, '_blank') for custom URL schemes (cursor:// and vscode:) will never catch anything. window.open() doesn't throw exceptions when a custom protocol handler is unavailable - it fails silently or shows a browser dialog. This means the intended fallback to openApifyMcpConfigurator(integration) will never execute when users don't have Cursor or VS Code installed, leaving them with no alternative path to the web configurator.
|
Preview for this PR was built for commit |
katzino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎅
Two smaller nits, but nothing major 💪
|
Preview for this PR was built for commit |
|
Preview for this PR was built for commit |
|
Preview for this PR was built for commit |
closes: #2079
Add a Cursor & VSCode integration to LLM Dropdown.
Opening the Cursor and VSCode with predefined MCP configuration.
Icons needs to be merged first: https://github.com/apify/apify-core/pull/24852
Note
Adds LLM dropdown options to copy Apify MCP config and connect via Cursor/VS Code deeplinks with web configurator fallback.
apify-docs-theme/src/theme/LLMButtons/index.jsx):copyMcpServer,connectCursor,connectVsCodewith corresponding icons and descriptions.MCP_CONFIG_JSONandonCopyMcpServerClickto copy MCP config to clipboard.openMcpIntegrationforcursorandvscode(withopenApifyMcpConfiguratorfallback) and hook uponConnectCursorClick/onConnectVsCodeClick.Written by Cursor Bugbot for commit 1c287d9. Configure here.