Skip to content

Conversation

@birosrichard
Copy link
Contributor

@birosrichard birosrichard commented Dec 22, 2025

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.

  • LLM dropdown (apify-docs-theme/src/theme/LLMButtons/index.jsx):
    • Add options: copyMcpServer, connectCursor, connectVsCode with corresponding icons and descriptions.
    • Implement MCP_CONFIG_JSON and onCopyMcpServerClick to copy MCP config to clipboard.
    • Implement deep links via openMcpIntegration for cursor and vscode (with openApifyMcpConfigurator fallback) and hook up onConnectCursorClick/onConnectVsCodeClick.
    • Track analytics events for new actions.
    • Minor tweak to chevron open-state toggle invocation.

Written by Cursor Bugbot for commit 1c287d9. Configure here.

@birosrichard birosrichard added the t-web Issues with this label are in the ownership of the web team. label Dec 22, 2025
@github-actions github-actions bot added this to the 131st sprint - Web team milestone Dec 22, 2025
Copy link

@cursor cursor bot left a 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);
}
Copy link

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.

Fix in Cursor Fix in Web

@apify-service-account
Copy link

Preview for this PR was built for commit 1c287d9 and is ready at https://pr-2155.preview.docs.apify.com!

Copy link
Contributor

@katzino katzino left a 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 💪

@apify-service-account
Copy link

Preview for this PR was built for commit 0eab3e5 and is ready at https://pr-2155.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit a90f31d and is ready at https://pr-2155.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 6dd4732 and is ready at https://pr-2155.preview.docs.apify.com!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-web Issues with this label are in the ownership of the web team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add to LLM dropdown MCP tools for documentation

4 participants