Skip to content

Conversation

@eabdelmoneim
Copy link
Contributor

@eabdelmoneim eabdelmoneim commented Aug 20, 2025


PR-Codex overview

This PR updates the documentation for integrating the MCP server with various clients, enhancing user guidance by adding buttons for installation links and adjusting the secret key placeholder in configuration examples.

Detailed summary

  • Added a Button component with a link for installing the MCP server in Cursor.
  • Updated the secret key placeholder in the .cursor/mcp.json example.
  • Added a Button component with a link for installing the MCP server in VS Code.
  • Updated the secret key placeholder in the .vscode/mcp.json example.
  • Clarified instructions for adding the MCP server to Claude Code with the updated secret key.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • New Features

    • Added one-click "Install into Cursor" and "Install into VS Code" deep-link buttons placed before setup guidance for faster installation.
  • Documentation

    • Standardized MCP secret key placeholder to YOUR_SECRET_KEY_HERE across all setup examples and command URLs (including Claude Code and Langchain samples) and updated explanatory text accordingly.

@eabdelmoneim eabdelmoneim requested review from a team as code owners August 20, 2025 16:40
@changeset-bot
Copy link

changeset-bot bot commented Aug 20, 2025

⚠️ No Changeset found

Latest commit: 91e5f78

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 20, 2025

Walkthrough

Adds deep-link install buttons for Cursor and VS Code to the MCP docs page, imports Button/ArrowDownIcon/Link UI components, wraps install links with Button asChild, and standardizes MCP secret placeholders to YOUR_SECRET_KEY_HERE across code samples (Claude, LangChain, and server config blocks).

Changes

Cohort / File(s) Summary of changes
MCP docs UI & placeholders
apps/portal/src/app/ai/mcp/page.mdx
Imported Button, ArrowDownIcon, and Link; added “Install into Cursor” and “Install into VS Code” deep-link buttons using Button asChild wrapping anchor links to external install URLs; replaced MCP secret placeholders with YOUR_SECRET_KEY_HERE across server/config samples and updated Claude and LangChain example instructions/URLs.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant Docs as "MCP Docs Page"
  participant Browser
  participant Editor as "Cursor / VS Code"

  User->>Docs: Click "Install into Cursor" / "Install into VS Code"
  Docs->>Browser: Open deep-link URL (cursor://... or vscode://...)
  Browser->>Editor: Invoke protocol handler for installation
  Editor-->>User: Prompt or execute MCP install flow
  Note right of Docs: Docs also includes updated code samples using YOUR_SECRET_KEY_HERE
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ea-add-mcp-download

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@vercel
Copy link

vercel bot commented Aug 20, 2025

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

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Aug 21, 2025 5:09pm
nebula Ready Ready Preview Comment Aug 21, 2025 5:09pm
thirdweb_playground Ready Ready Preview Comment Aug 21, 2025 5:09pm
thirdweb-www Ready Ready Preview Comment Aug 21, 2025 5:09pm
wallet-ui Ready Ready Preview Comment Aug 21, 2025 5:09pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Aug 20, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Aug 20, 2025
@codecov
Copy link

codecov bot commented Aug 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.53%. Comparing base (b075ff5) to head (91e5f78).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7890   +/-   ##
=======================================
  Coverage   56.53%   56.53%           
=======================================
  Files         904      904           
  Lines       58592    58592           
  Branches     4143     4143           
=======================================
  Hits        33126    33126           
  Misses      25360    25360           
  Partials      106      106           
Flag Coverage Δ
packages 56.53% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/portal/src/app/ai/mcp/page.mdx (1)

89-99: VS Code JSON sample: fix invalid JSON (trailing comma) and ensure naming consistency

  • Remove trailing comma after url.
  • Ensure the key ("thirdweb-api") matches the deeplink name to avoid confusion.

Apply this diff:

-      "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE",
+      "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE"
🧹 Nitpick comments (1)
apps/portal/src/app/ai/mcp/page.mdx (1)

46-52: Standardize secret key placeholder across the entire page

You switched to YOUR_SECRET_KEY_HERE here (good), but earlier sections still use (Remote MCP endpoint) and the LangChain example also uses the old placeholder. Please align all samples to the same placeholder to avoid confusion.

Outside this hunk, update these snippets:

https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE
# in the LangChain sample
"url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE",
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 2c1ec47 and c3f13b7.

📒 Files selected for processing (1)
  • apps/portal/src/app/ai/mcp/page.mdx (5 hunks)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Import UI primitives from `@/components/ui/*` (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Prefer composable primitives over custom markup: `Button`, `Input`, `Select`, `Tabs`, `Card`, `Sidebar`, `Separator`, `Badge`.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Use `NavLink` (`@/components/ui/NavLink`) for internal navigation so active states are handled automatically.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Always import from the central UI library under `@/components/ui/*` – e.g. `import { Button } from "@/components/ui/button"`.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
🪛 LanguageTool
apps/portal/src/app/ai/mcp/page.mdx

[grammar] ~2-~2: There might be a mistake here.
Context: ... Button } from "@/components/ui/button"; import { ArrowDownIcon } from "lucide-re...

(QB_NEW_EN)


[grammar] ~3-~3: There might be a mistake here.
Context: ...t { ArrowDownIcon } from "lucide-react"; import Link from "next/link"; # MCP ser...

(QB_NEW_EN)


[grammar] ~35-~35: There might be a mistake here.
Context: ...> <Button asChild className="flex items-center g...

(QB_NEW_EN)


[grammar] ~36-~36: There might be a mistake here.
Context: ...ntent value="cursor"> <Button asChild className="flex items-center gap-3 bg-ca...

(QB_NEW_EN)


[grammar] ~37-~37: There might be a mistake here.
Context: ...er:shadow-lg transition-shadow border-2" variant="outline" > <Link href="cursor...

(QB_NEW_EN)


[grammar] ~78-~78: There might be a mistake here.
Context: ...> <Button asChild className="flex items-center g...

(QB_NEW_EN)


[grammar] ~79-~79: There might be a mistake here.
Context: ...ntent value="vscode"> <Button asChild className="flex items-center gap-3 bg-ca...

(QB_NEW_EN)


[grammar] ~80-~80: There might be a mistake here.
Context: ...er:shadow-lg transition-shadow border-2" variant="outline" > <Link href="https:...

(QB_NEW_EN)

🔇 Additional comments (3)
apps/portal/src/app/ai/mcp/page.mdx (3)

2-4: UI imports look correct and consistent with our UI library usage

Button from "@/components/ui/button", lucide-react icons, and next/link in MDX are appropriate here.


35-45: Button-asChild wrapping Link is a good pattern for deep-link CTAs

Clean usage with ArrowDownIcon and outline variant. LGTM.


105-109: Claude Code CLI instructions look good

Command uses the unified placeholder and matches the other samples.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 20, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.06 KB (0%) 1.3 s (0%) 246 ms (+47.83% 🔺) 1.6 s
thirdweb (cjs) 357.05 KB (0%) 7.2 s (0%) 1.3 s (+3.46% 🔺) 8.5 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 69 ms (+520.27% 🔺) 184 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 44 ms (+1428.78% 🔺) 54 ms
thirdweb/react (minimal + tree-shaking) 19.15 KB (0%) 383 ms (0%) 48 ms (+101.29% 🔺) 431 ms

@vercel vercel bot temporarily deployed to Preview – nebula August 20, 2025 16:45 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www August 20, 2025 16:45 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui August 20, 2025 16:45 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground August 20, 2025 16:45 Inactive
Copy link
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: 1

♻️ Duplicate comments (2)
apps/portal/src/app/ai/mcp/page.mdx (2)

64-72: Fix invalid JSON (trailing comma) in Windsurf sample
The trailing comma after the "url" makes the JSON invalid.

-      "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE",
+      "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE"

78-87: VS Code deep-link: align name, include secret placeholder, and open safely

  • name should match other sections (“thirdweb-api”).
  • Include the secret placeholder in the config URL so installed server works immediately.
  • Open in a new tab with rel attrs for safety.
-  <Link href="https://vscode.dev/redirect/mcp/install?name=thirdweb&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.thirdweb.com%2Fmcp%22%7D" className="flex items-center gap-3">
+  <Link href="https://vscode.dev/redirect/mcp/install?name=thirdweb-api&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.thirdweb.com%2Fmcp%3FsecretKey%3DYOUR_SECRET_KEY_HERE%22%7D" target="_blank" rel="noreferrer noopener" className="flex items-center gap-3">
🧹 Nitpick comments (3)
apps/portal/src/app/ai/mcp/page.mdx (3)

15-16: Standardize secret placeholder to YOUR_SECRET_KEY_HERE

One instance still uses . Align with the rest of the page to avoid confusion.

-https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>
+https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE

121-136: Standardize placeholder in the LangChain example
This example still uses . Align with the page-wide placeholder for consistency.

-            "url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
+            "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE",

28-28: Cosmetic: use official capitalization “Windsurf”
Minor label polish for brand consistency.

-<TabsTrigger value="windsurf">WindSurf</TabsTrigger>
+<TabsTrigger value="windsurf">Windsurf</TabsTrigger>
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between c3f13b7 and 2fedbf2.

📒 Files selected for processing (1)
  • apps/portal/src/app/ai/mcp/page.mdx (5 hunks)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Import UI primitives from `@/components/ui/*` (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Prefer composable primitives over custom markup: `Button`, `Input`, `Select`, `Tabs`, `Card`, `Sidebar`, `Separator`, `Badge`.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Use `NavLink` (`@/components/ui/NavLink`) for internal navigation so active states are handled automatically.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Always import from the central UI library under `@/components/ui/*` – e.g. `import { Button } from "@/components/ui/button"`.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
🪛 LanguageTool
apps/portal/src/app/ai/mcp/page.mdx

[grammar] ~2-~2: There might be a mistake here.
Context: ... Button } from "@/components/ui/button"; import { ArrowDownIcon } from "lucide-re...

(QB_NEW_EN)


[grammar] ~3-~3: There might be a mistake here.
Context: ...t { ArrowDownIcon } from "lucide-react"; import Link from "next/link"; # MCP ser...

(QB_NEW_EN)


[grammar] ~35-~35: There might be a mistake here.
Context: ...> <Button asChild className="flex items-center g...

(QB_NEW_EN)


[grammar] ~36-~36: There might be a mistake here.
Context: ...ntent value="cursor"> <Button asChild className="flex items-center gap-3 bg-ca...

(QB_NEW_EN)


[grammar] ~37-~37: There might be a mistake here.
Context: ...er:shadow-lg transition-shadow border-2" variant="outline" > <Link href="cursor...

(QB_NEW_EN)


[grammar] ~78-~78: There might be a mistake here.
Context: ...> <Button asChild className="flex items-center g...

(QB_NEW_EN)


[grammar] ~79-~79: There might be a mistake here.
Context: ...ntent value="vscode"> <Button asChild className="flex items-center gap-3 bg-ca...

(QB_NEW_EN)


[grammar] ~80-~80: There might be a mistake here.
Context: ...er:shadow-lg transition-shadow border-2" variant="outline" > <Link href="https:...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Size
  • GitHub Check: Unit Tests
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (4)
apps/portal/src/app/ai/mcp/page.mdx (4)

2-4: UI imports and primitives look good

Using Button from the shared UI library and lucide-react icons is consistent with our UI pattern. Link from next/link is appropriate for anchors.


35-45: Nice UX: “Install into Cursor” button

The asChild Button + Link pattern and encoded config look good. The payload decodes to the expected URL with the placeholder. No action needed.


105-109: Claude Code instructions: good and consistent
Command uses the standardized placeholder and matches the server name used elsewhere. LGTM.


83-83: Optional: verify Cursor deeplink schema expectations
VS Code’s config includes a "type":"http" field; Cursor’s deeplink encodes only a URL. If Cursor requires a type as well, the deeplink may fail silently.

Would you like me to provide a base64-encoded config that includes {"type":"http","url":"..."} if Cursor expects parity with VS Code?

Comment on lines 95 to 96
"url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE
}
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix broken JSON in VS Code sample (missing closing quote)
The URL string isn’t closed, making the snippet invalid.

-      "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE
+      "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE
}
"url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE"
}
🤖 Prompt for AI Agents
In apps/portal/src/app/ai/mcp/page.mdx around lines 95 to 96, the JSON example
has a missing closing quote on the "url" value making the snippet invalid; fix
it by adding the terminating double quote after the URL and ensure the
surrounding JSON punctuation remains correct so the sample parses as valid JSON.

@vercel vercel bot temporarily deployed to Preview – thirdweb-www August 21, 2025 14:58 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula August 21, 2025 14:58 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground August 21, 2025 14:58 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui August 21, 2025 14:58 Inactive
Copy link
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: 0

♻️ Duplicate comments (3)
apps/portal/src/app/ai/mcp/page.mdx (3)

64-72: Fix invalid JSON in Windsurf sample (trailing comma).

The trailing comma makes the JSON invalid.

Apply this diff:

       "mcpServers": {
         "thirdweb-api": {
-          "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE",
+          "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE"
         }
       }

91-99: VS Code sample JSON: fix missing closing quote on URL.

Currently the URL string isn’t closed, breaking JSON validity.

Apply this diff:

       "mcp.servers": {
         "thirdweb-api": {
-          "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE
+          "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE"
         }
       }

78-87: VS Code deep-link: include secret placeholder and open safely in new tab.

The config in the href omits the secret parameter; also consider target/rel for safety when opening external links.

Apply this diff:

-  <Link href="https://vscode.dev/redirect/mcp/install?name=thirdweb-api&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.thirdweb.com%2Fmcp%22%7D" className="flex items-center gap-3">
+  <Link
+    href="https://vscode.dev/redirect/mcp/install?name=thirdweb-api&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.thirdweb.com%2Fmcp%3FsecretKey%3DYOUR_SECRET_KEY_HERE%22%7D"
+    target="_blank"
+    rel="noreferrer noopener"
+    className="flex items-center gap-3"
+  >
🧹 Nitpick comments (3)
apps/portal/src/app/ai/mcp/page.mdx (3)

91-99: Optional: include transport/type in VS Code JSON for parity with the deep-link.

Not strictly required if the extension infers HTTP, but adding it improves clarity and consistency with the install link.

Apply this diff:

   "mcp.servers": {
     "thirdweb-api": {
+      "type": "http",
       "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE"
     }
   }

121-131: LangChain example: standardize the secret placeholder.

Replace the angle-bracket placeholder with YOUR_SECRET_KEY_HERE to match the rest of the doc.

Apply this diff:

-            "url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
+            "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE",

14-16: Update stale secret placeholders in apps/portal/src/app/ai/mcp/page.mdx

The grep results show two remaining instances of the old <your-project-secret-key> placeholder at lines 15 and 129. Please replace both with the standardized YOUR_SECRET_KEY_HERE for consistency:

• Line 15 (HTTP snippet)
• Line 129 (JSON snippet)

Apply this diff:

--- a/apps/portal/src/app/ai/mcp/page.mdx
+++ b/apps/portal/src/app/ai/mcp/page.mdx
@@ -12,7 +12,7 @@
 ```http
-https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>
+https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE

@@ -126,7 +126,7 @@
"url": "https://api.thirdweb.com/mcp?secretKey=",

  •       "url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
    
  •       "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE",
    

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 2fedbf2 and bd85eb8.

📒 Files selected for processing (1)
  • apps/portal/src/app/ai/mcp/page.mdx (5 hunks)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Import UI primitives from `@/components/ui/*` (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Prefer composable primitives over custom markup: `Button`, `Input`, `Select`, `Tabs`, `Card`, `Sidebar`, `Separator`, `Badge`.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Use `NavLink` (`@/components/ui/NavLink`) for internal navigation so active states are handled automatically.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Always import from the central UI library under `@/components/ui/*` – e.g. `import { Button } from "@/components/ui/button"`.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
🪛 LanguageTool
apps/portal/src/app/ai/mcp/page.mdx

[grammar] ~2-~2: There might be a mistake here.
Context: ... Button } from "@/components/ui/button"; import { ArrowDownIcon } from "lucide-re...

(QB_NEW_EN)


[grammar] ~3-~3: There might be a mistake here.
Context: ...t { ArrowDownIcon } from "lucide-react"; import Link from "next/link"; # MCP ser...

(QB_NEW_EN)


[grammar] ~35-~35: There might be a mistake here.
Context: ...> <Button asChild className="flex items-center g...

(QB_NEW_EN)


[grammar] ~36-~36: There might be a mistake here.
Context: ...ntent value="cursor"> <Button asChild className="flex items-center gap-3 bg-ca...

(QB_NEW_EN)


[grammar] ~37-~37: There might be a mistake here.
Context: ...er:shadow-lg transition-shadow border-2" variant="outline" > <Link href="cursor...

(QB_NEW_EN)


[grammar] ~78-~78: There might be a mistake here.
Context: ...> <Button asChild className="flex items-center g...

(QB_NEW_EN)


[grammar] ~79-~79: There might be a mistake here.
Context: ...ntent value="vscode"> <Button asChild className="flex items-center gap-3 bg-ca...

(QB_NEW_EN)


[grammar] ~80-~80: There might be a mistake here.
Context: ...er:shadow-lg transition-shadow border-2" variant="outline" > <Link href="https:...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Unit Tests
  • GitHub Check: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Build Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (3)
apps/portal/src/app/ai/mcp/page.mdx (3)

2-4: UI imports are on-spec with our shared primitives.

Good use of Button from "@/components/ui/button" and lucide-react icons; aligns with our retrieved learnings for portal apps.


35-44: Cursor deep-link button looks correct.

The base64-encoded config decodes to a URL containing YOUR_SECRET_KEY_HERE and the server name matches “thirdweb-api”. Good use of Button asChild.


105-109: Claude Code CLI snippet LGTM.

Uses YOUR_SECRET_KEY_HERE consistently and the command format looks right.

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground August 21, 2025 16:07 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www August 21, 2025 16:07 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula August 21, 2025 16:07 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui August 21, 2025 16:07 Inactive
Copy link
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: 0

♻️ Duplicate comments (3)
apps/portal/src/app/ai/mcp/page.mdx (3)

60-74: Windsurf sample JSON now valid (trailing comma removed).

This resolves the earlier lint concern about invalid JSON.


89-99: VS Code manual config JSON is correct and consistent.

Also nice catch fixing the previously missing closing quote—JSON is valid now.


78-87: VS Code deep-link: move the secret into the URL and standardize the placeholder.

The current deeplink uses a separate "secret" field and the placeholder "YOUR_SECRET", but the rest of the docs (and our server) expect the key to be passed as a query param: secretKey=YOUR_SECRET_KEY_HERE. As written, the installed server likely won’t have the secret applied, leading to immediate auth errors.

Action:

  • Put the secret in the config.url query string.
  • Standardize the placeholder to YOUR_SECRET_KEY_HERE for consistency.
-  <Link href="https://vscode.dev/redirect/mcp/install?name=thirdweb-api&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.thirdweb.com%2Fmcp%22%2C%22secret%22%3A%22YOUR_SECRET%22%7D" className="flex items-center gap-3" target="_blank" rel="noopener noreferrer">
+  <Link
+    href="https://vscode.dev/redirect/mcp/install?name=thirdweb-api&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapi.thirdweb.com%2Fmcp%3FsecretKey%3DYOUR_SECRET_KEY_HERE%22%7D"
+    className="flex items-center gap-3"
+    target="_blank"
+    rel="noopener noreferrer"
+  >
🧹 Nitpick comments (4)
apps/portal/src/app/ai/mcp/page.mdx (4)

35-45: Nice addition: Cursor deep-link button UX is solid.

  • asChild usage is correct, styling matches our button patterns.
  • The base64-encoded config includes the secretKey placeholder—good.

Optional: add an aria-label on the Link for improved a11y.

-  <Link href="cursor://anysphere.cursor-deeplink/mcp/install?name=thirdweb-api&config=eyJ1cmwiOiJodHRwczovL2FwaS50aGlyZHdlYi5jb20vbWNwP3NlY3JldEtleT1ZT1VSX1NFQ1JFVF9LRVlfSEVSRSJ9" className="flex items-center gap-3">
+  <Link
+    href="cursor://anysphere.cursor-deeplink/mcp/install?name=thirdweb-api&config=eyJ1cmwiOiJodHRwczovL2FwaS50aGlyZHdlYi5jb20vbWNwP3NlY3JldEtleT1ZT1VSX1NFQ1JFVF9LRVlfSEVSRSJ9"
+    className="flex items-center gap-3"
+    aria-label="Install the thirdweb MCP server into Cursor"
+  >

14-16: Standardize the placeholder in the Remote MCP endpoint snippet.

Elsewhere in the doc you switched to YOUR_SECRET_KEY_HERE. Recommend updating this block for consistency and to avoid user confusion.

-https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>
+https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE

125-131: Standardize the placeholder in the LangChain example.

Keep the placeholder consistent across all samples.

-            "url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
+            "url": "https://api.thirdweb.com/mcp?secretKey=YOUR_SECRET_KEY_HERE",

26-30: Casing nit: “Windsurf” brand casing.

Use “Windsurf” (single capital W) for consistency with the product name.

-<TabsTrigger value="windsurf">WindSurf</TabsTrigger>
+<TabsTrigger value="windsurf">Windsurf</TabsTrigger>
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between bd85eb8 and 0248426.

📒 Files selected for processing (1)
  • apps/portal/src/app/ai/mcp/page.mdx (5 hunks)
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Import UI primitives from `@/components/ui/*` (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Prefer composable primitives over custom markup: `Button`, `Input`, `Select`, `Tabs`, `Card`, `Sidebar`, `Separator`, `Badge`.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Use `NavLink` (`@/components/ui/NavLink`) for internal navigation so active states are handled automatically.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Always import from the central UI library under `@/components/ui/*` – e.g. `import { Button } from "@/components/ui/button"`.

Applied to files:

  • apps/portal/src/app/ai/mcp/page.mdx
🪛 LanguageTool
apps/portal/src/app/ai/mcp/page.mdx

[grammar] ~2-~2: There might be a mistake here.
Context: ... Button } from "@/components/ui/button"; import { ArrowDownIcon } from "lucide-re...

(QB_NEW_EN)


[grammar] ~3-~3: There might be a mistake here.
Context: ...t { ArrowDownIcon } from "lucide-react"; import Link from "next/link"; # MCP ser...

(QB_NEW_EN)


[grammar] ~35-~35: There might be a mistake here.
Context: ...> <Button asChild className="flex items-center g...

(QB_NEW_EN)


[grammar] ~36-~36: There might be a mistake here.
Context: ...ntent value="cursor"> <Button asChild className="flex items-center gap-3 bg-ca...

(QB_NEW_EN)


[grammar] ~37-~37: There might be a mistake here.
Context: ...er:shadow-lg transition-shadow border-2" variant="outline" > <Link href="cursor...

(QB_NEW_EN)


[grammar] ~78-~78: There might be a mistake here.
Context: ...> <Button asChild className="flex items-center g...

(QB_NEW_EN)


[grammar] ~79-~79: There might be a mistake here.
Context: ...ntent value="vscode"> <Button asChild className="flex items-center gap-3 bg-ca...

(QB_NEW_EN)


[grammar] ~80-~80: There might be a mistake here.
Context: ...er:shadow-lg transition-shadow border-2" variant="outline" > <Link href="https:...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Size
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
🔇 Additional comments (3)
apps/portal/src/app/ai/mcp/page.mdx (3)

2-4: UI imports look correct and consistent with our UI library usage.

Using Button from "@/components/ui/button", lucide-react icon, and next/link aligns with our established patterns in Portal.


46-56: Good clarity on the Cursor manual config block.

The JSON parses and the placeholder is standardized to YOUR_SECRET_KEY_HERE.


103-111: Claude Code command is clear and consistent with the placeholder scheme.

No issues.

@joaquim-verges joaquim-verges merged commit 68a07ed into main Aug 21, 2025
24 checks passed
@joaquim-verges joaquim-verges deleted the ea-add-mcp-download branch August 21, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants