-
Notifications
You must be signed in to change notification settings - Fork 764
nit(mcp): add deeplink button for cursor #6026
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: main
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.
Caution
Changes requested ❌
Reviewed everything up to 84057cd in 1 minute and 57 seconds. Click for details.
- Reviewed
34
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. frontend/src/lib/components/settings/TokensTable.svelte:225
- Draft comment:
Verify the layout change from 'flex-row flex-wrap' to 'flex-col' is intentional, as it will stack children vertically and might affect positioning. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. frontend/src/lib/components/settings/TokensTable.svelte:235
- Draft comment:
Extract the inline btoa(JSON.stringify(...)) computation into a separate variable to improve readability and maintainability. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
Workflow ID: wflow_mzjYZWQoCY6hJUbT
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
> | ||
<p class="text-sm mb-2">New MCP URL:</p> | ||
<ClipboardPanel content={`${mcpBaseUrl}${newMcpToken}`} /> | ||
<p class="pt-1 text-xs"> | ||
Make sure to copy this URL now. You won't be able to see it again! | ||
</p> | ||
<div class="flex flex-row justify-end gap-2 items-center"> | ||
<a |
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.
Consider adding target='_blank' and rel='noopener noreferrer' to the anchor for safe external navigation, unless the current behavior is intended.
84057cd
to
9cf701f
Compare
Deploying windmill with
|
Latest commit: |
5292138
|
Status: | ✅ Deploy successful! |
Preview URL: | https://23279fc1.windmill.pages.dev |
Branch Preview URL: | https://fg-add-cursor-button.windmill.pages.dev |
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.
Caution
Changes requested ❌
Reviewed everything up to 9cf701f in 2 minutes and 1 seconds. Click for details.
- Reviewed
34
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. frontend/src/lib/components/settings/TokensTable.svelte:223
- Draft comment:
Ensure the change from 'flex flex-row flex-wrap' to 'flex flex-col' meets the design layout requirements. - Reason this comment was not posted:
Confidence changes required:10%
<= threshold50%
None
Workflow ID: wflow_CormHItVeUkqUa4E
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
/ai review this PR |
1 similar comment
/ai review this PR |
Claude finished @rubenfiszel's task —— View job Code Review for PR: Add Deeplink Button for CursorTodo List:
AnalysisThe PR adds a deeplink button for MCP tokens that allows users to easily add the Windmill MCP server to Cursor. The implementation is in Review Findings✅ Positive Aspects
|
Claude finished @rubenfiszel's task —— View job Code Review for PR: Add Deeplink Button for Cursor
Todo List:
Review SummaryThe implementation adds a useful deeplink button for Cursor integration, but there are several important issues that should be addressed: 🔴 Critical Issues
🟡 Code Quality Issues
✅ Positive Aspects
🔧 Recommendations
Svelte 5 Best Practices ComplianceThe code generally follows Svelte 5 patterns well:
The ellipsis-dev review comments align with these findings, particularly around URL encoding and external link security. |
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.
Important
Looks good to me! 👍
Reviewed 5292138 in 1 minute and 41 seconds. Click for details.
- Reviewed
31
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. frontend/src/lib/components/settings/TokensTable.svelte:68
- Draft comment:
Ensure newMcpToken is defined before concatenation. If undefined, the encoded URL may be malformed and btoa can throw on non-ASCII values. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The cursorMcpUrl is only used in the template when newMcpToken exists (line 229-248). The URL is never constructed when newMcpToken is undefined. The component handles this case by not showing the Cursor button at all when there's no token. This is good defensive programming - the potentially dangerous operation only happens when we know we have a valid token. I could be missing some edge case where the reactive URL gets computed before newMcpToken is set. The $derived computation might run at unexpected times. Even if the URL is computed early, it won't be used until newMcpToken exists. The component's UI guards against misuse. Adding ?? '' would hide a potential bug rather than fix it. The comment should be deleted. The component already safely handles undefined tokens by not showing the URL until a token exists.
2. frontend/src/lib/components/settings/TokensTable.svelte:239
- Draft comment:
When using cursorMcpUrl as the href, ensure that its computed value is always a valid URL. Consider conditionally rendering the link if dependencies are undefined. - Reason this comment was not posted:
Confidence changes required:50%
<= threshold50%
None
Workflow ID: wflow_iqTLl7hlBHmbhyMU
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
d745b80
to
42e06e7
Compare
Important
Adds a deep link button for MCP tokens in
TokensTable.svelte
.cursorMcpUrl
derived URL inTokensTable.svelte
for deep linking MCP tokens.cursorMcpUrl
in the MCP token display section.This description was created by
for 5292138. You can customize this summary. It will automatically update as commits are pushed.