Skip to content

feat(docs): add cursor plugin link#7809

Open
mhartington wants to merge 2 commits intomainfrom
cursor-plugin
Open

feat(docs): add cursor plugin link#7809
mhartington wants to merge 2 commits intomainfrom
cursor-plugin

Conversation

@mhartington
Copy link
Copy Markdown
Member

@mhartington mhartington commented Apr 20, 2026

Summary by CodeRabbit

  • Documentation
    • Added a new "Prisma Plugin" section in the Cursor docs with a direct install link to the plugin marketplace.
    • Updated the Prisma MCP Server install CTA to use a consistent, accessible button (replacing the previous image-based CTA).
    • Standardized install links to use accessible button elements for improved usability.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Apr 20, 2026 6:24pm
docs Ready Ready Preview, Comment Apr 20, 2026 6:24pm
eclipse Ready Ready Preview, Comment Apr 20, 2026 6:24pm
site Ready Ready Preview, Comment Apr 20, 2026 6:24pm

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 20, 2026

🍈 Lychee Link Check Report

23 links: ✅ 8 OK | 🚫 0 errors | 🔀 10 redirects | 👻 5 excluded

✅ All links are working!


Full Statistics Table
Status Count
✅ Successful 8
🔀 Redirected 10
👻 Excluded 5
🚫 Errors 0
⛔ Unsupported 0
⏳ Timeouts 0
❓ Unknown 0

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5fd072b9-49f7-4f1e-867a-b39ae806f873

📥 Commits

Reviewing files that changed from the base of the PR and between 2409912 and b454d0b.

📒 Files selected for processing (1)
  • apps/docs/content/docs/ai/tools/cursor.mdx
✅ Files skipped from review due to trivial changes (1)
  • apps/docs/content/docs/ai/tools/cursor.mdx

Walkthrough

Adds a “Prisma Plugin” section to the Cursor docs with an external install button, replaces an embedded SVG CTA in the “Prisma MCP server” section with a text Button link (using <Button asChild> and aria-label), and registers Button as a global MDX component.

Changes

Cohort / File(s) Summary
Documentation Content Updates
apps/docs/content/docs/ai/tools/cursor.mdx
Inserted a new "Prisma Plugin" section linking to the Cursor Prisma plugin via <Button asChild> + external <a> and aria-label; replaced an embedded SVG CTA for the "Prisma MCP server" with a plain text Button wrapped similarly and adjusted surrounding markup/whitespace.
MDX Component Registration
apps/docs/src/mdx-components.tsx
Imported Button from @prisma/eclipse and added it to the returned MDX components map so Button is available in MDX content.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding a Cursor plugin link to the documentation.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
apps/docs/src/mdx-components.tsx (1)

33-57: LGTM — clean global registration of Button.

Adding Button to the destructured imports and the returned MDX map makes it universally available in docs. Minor nit: the comment on Line 56 ("Eclipse CodeBlock tab components") now sits directly above Button, which is unrelated to CodeBlock tabs — consider moving Button above that comment (or giving it its own one-liner) so future readers don't get misled.

✏️ Optional tidy-up
     ...components,
+    Button,
     // Eclipse CodeBlock tab components - globally available for code blocks
-    Button,
     CodeBlockTabs,
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/docs/src/mdx-components.tsx` around lines 33 - 57, The Button export is
placed under the “Eclipse CodeBlock tab components” comment which is misleading;
update getMDXComponents so Button is either moved above that comment or given
its own one-line comment (e.g., "// Globally register Eclipse Button") to keep
the CodeBlock-related comment accurate—look for the Button identifier and the
comment text "Eclipse CodeBlock tab components" in getMDXComponents and adjust
their ordering or comments accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/docs/content/docs/ai/tools/cursor.mdx`:
- Line 25: Fix the typo and punctuation in the marketing one-liner: change
"Prism MCP server" to "Prisma MCP server" and add a terminal period to the end
of the sentence in the string that begins "The [Prisma plugin for Cursor]...
provides integration with the Prism MCP server, various skills..." so it reads
with the correct product name and ends with a period.
- Around line 27-37: Remove the blank lines inside the Button asChild blocks so
the Button (which uses Radix Slot / React.Children.only) receives a single
element child; specifically, inline the anchor element directly between <Button
asChild ...> and </Button> for both Button blocks (the ones wrapping the <a
href="https://cursor.com/marketplace/prisma"...> and the MCP block) to eliminate
any whitespace text nodes that break React.Children.only.

---

Nitpick comments:
In `@apps/docs/src/mdx-components.tsx`:
- Around line 33-57: The Button export is placed under the “Eclipse CodeBlock
tab components” comment which is misleading; update getMDXComponents so Button
is either moved above that comment or given its own one-line comment (e.g., "//
Globally register Eclipse Button") to keep the CodeBlock-related comment
accurate—look for the Button identifier and the comment text "Eclipse CodeBlock
tab components" in getMDXComponents and adjust their ordering or comments
accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b2593e09-ded9-45bc-882f-e2fa9a3dff89

📥 Commits

Reviewing files that changed from the base of the PR and between 1f88ad0 and 2409912.

📒 Files selected for processing (2)
  • apps/docs/content/docs/ai/tools/cursor.mdx
  • apps/docs/src/mdx-components.tsx

Comment thread apps/docs/content/docs/ai/tools/cursor.mdx Outdated
Comment thread apps/docs/content/docs/ai/tools/cursor.mdx
@argos-ci
Copy link
Copy Markdown

argos-ci bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Apr 20, 2026, 6:30 PM

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.

2 participants