Skip to content

Conversation

@ankur-arch
Copy link
Contributor

@ankur-arch ankur-arch commented Oct 13, 2025

Summary by CodeRabbit

  • Documentation
    • Added a new ChatGPT integration guide for connecting ChatGPT to the Prisma MCP server with prerequisites, setup steps, example prompts, and a demo image.
    • Inserted ChatGPT integration notes into the MCP Server docs (in two places).
    • Updated AI tools catalog/UI: replaced Tabnine with ChatGPT and refreshed Cursor, Windsurf, and GitHub Copilot cards.
    • Updated AI tools sidebar, AI index copy, and a doc link destination in Guides.
  • Chores
    • Minor content/formatting tweaks in site data and guides.

@github-actions
Copy link
Contributor

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

@github-actions
Copy link
Contributor

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 13, 2025

Walkthrough

Adds a new ChatGPT integration guide and links, updates AI-tools cards and metadata to reference ChatGPT, inserts ChatGPT blurbs into the MCP server docs (duplicated), updates the sidebar entry, and makes a small text/formatting tweak in site index data.

Changes

Cohort / File(s) Summary of changes
New ChatGPT guide (AI tools)
content/200-orm/800-more/350-ai-tools/500-chatgpt.mdx
Adds a new MDX page describing how to connect ChatGPT to the Prisma MCP server: frontmatter, prerequisites (Developer Mode), step-by-step connector setup, usage example, demo image, and an experimental note with issue/PR link.
AI tools index metadata
content/200-orm/800-more/350-ai-tools/index.mdx
Expands metaDescription to include "ChatGPT" among AI coding tools.
MCP server docs — ChatGPT blurbs
content/250-postgres/350-integrations/400-mcp-server.mdx
Inserts a ChatGPT integration blurb in two locations (after an "Add" step and again before OpenAI Agents SDK examples), linking to the new ChatGPT guide.
AI landing page cards
content/900-ai/index.mdx
Updates several AI-tool cards: revises Cursor and Windsurf descriptions, changes Github Copilot icon/description, and replaces the Tabnine card with a ChatGPT card linking to the new guide.
Sidebar navigation
sidebars.ts
Replaces orm/more/ai-tools/tabnine with orm/more/ai-tools/chatgpt in the aiSidebar Tools section.
Site index data
src/data/indexData.ts
Minor textual tweak to how_do_i[0].description and small trailing-comma/formatting edits.
Guide link update
content/800-guides/160-tanstack-start.mdx
Changes TanStack Start references to point to the server-functions guide instead of the overview.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly conveys the primary change of adding a ChatGPT page to the documentation and uses a clear, conventional commit style without unnecessary details.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 13, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6d8b5ec
Status: ✅  Deploy successful!
Preview URL: https://04b6bd67.docs-51g.pages.dev
Branch Preview URL: https://dc-5543.docs-51g.pages.dev

View logs

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

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5b731cf and 0f04e21.

⛔ Files ignored due to path filters (1)
  • static/img/orm/chatgpt-demo.gif is excluded by !**/*.gif
📒 Files selected for processing (6)
  • content/200-orm/800-more/350-ai-tools/500-chatgpt.mdx (1 hunks)
  • content/200-orm/800-more/350-ai-tools/index.mdx (1 hunks)
  • content/250-postgres/350-integrations/400-mcp-server.mdx (1 hunks)
  • content/900-ai/index.mdx (1 hunks)
  • sidebars.ts (1 hunks)
  • src/data/indexData.ts (2 hunks)
⏰ 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). (2)
  • GitHub Check: runner / linkspector
  • GitHub Check: Check internal links
🔇 Additional comments (10)
content/250-postgres/350-integrations/400-mcp-server.mdx (2)

371-373: LGTM!

The ChatGPT section provides a clear and concise introduction with a link to the detailed integration guide.


375-428: LGTM!

The OpenAI Agents SDK example is well-structured and demonstrates concurrent MCP server handling with clear comments. The code shows both local and remote server setup, tool listing, and assistant creation.

content/200-orm/800-more/350-ai-tools/500-chatgpt.mdx (3)

1-7: LGTM!

The front matter is correctly structured with appropriate metadata for the ChatGPT integration guide.


17-66: LGTM!

The guide provides clear, step-by-step instructions for integrating the Prisma MCP server with ChatGPT. The features list, prerequisites, setup steps, and usage example are well-documented and easy to follow.


9-16: Image file present: static/img/orm/chatgpt-demo.gif is included in the repository.

content/200-orm/800-more/350-ai-tools/index.mdx (1)

4-4: LGTM!

The metaDescription update correctly includes ChatGPT alongside other AI tools, aligning with the PR's objective to add ChatGPT integration documentation.

content/900-ai/index.mdx (4)

37-37: LGTM!

The updated Cursor description accurately reflects its capabilities for project-specific rules and schema context.


43-43: LGTM!

The updated Windsurf description clearly describes its AI-powered database automation capabilities.


49-52: LGTM!

The GitHub Copilot updates are appropriate:

  • Icon changed to GitHub brand (fa-brands fa-github)
  • Description updated to highlight Prisma-aware features

55-59: LGTM!

The replacement of Tabnine with ChatGPT is well-executed:

  • Correct OpenAI brand icon
  • Clear description of ChatGPT's MCP server integration
  • Link points to the new ChatGPT integration guide

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

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5b731cf and 0f04e21.

⛔ Files ignored due to path filters (1)
  • static/img/orm/chatgpt-demo.gif is excluded by !**/*.gif
📒 Files selected for processing (6)
  • content/200-orm/800-more/350-ai-tools/500-chatgpt.mdx (1 hunks)
  • content/200-orm/800-more/350-ai-tools/index.mdx (1 hunks)
  • content/250-postgres/350-integrations/400-mcp-server.mdx (1 hunks)
  • content/900-ai/index.mdx (1 hunks)
  • sidebars.ts (1 hunks)
  • src/data/indexData.ts (2 hunks)
⏰ 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). (2)
  • GitHub Check: runner / linkspector
  • GitHub Check: Check internal links
🔇 Additional comments (7)
sidebars.ts (1)

547-547: LGTM!

The sidebar navigation correctly points to the new ChatGPT integration guide, replacing the Tabnine entry.

content/200-orm/800-more/350-ai-tools/index.mdx (1)

4-4: LGTM!

The metaDescription correctly includes ChatGPT among the AI coding tools, aligning with the new documentation.

content/900-ai/index.mdx (1)

37-59: LGTM!

The AI coding tools cards have been updated with more descriptive content:

  • Cursor and Windsurf descriptions emphasize their specific capabilities
  • GitHub Copilot icon corrected to use the GitHub brand icon
  • Tabnine card successfully replaced with ChatGPT, including updated icon, title, description, and link

These changes align well with the PR's objective to add ChatGPT integration.

content/200-orm/800-more/350-ai-tools/500-chatgpt.mdx (3)

1-66: Overall structure looks good.

The ChatGPT integration documentation is well-structured with:

  • Clear prerequisites section explaining Developer Mode requirements
  • Step-by-step instructions for enabling Developer Mode
  • Detailed setup process for adding the MCP server
  • Usage example with a practical prompt

The content aligns well with the other AI tool integration guides in the repository.


45-45: Prisma favicon URL verified. Returns HTTP 200 with content-type image/vnd.microsoft.icon.


15-15: Image asset verified The referenced image /img/orm/chatgpt-demo.gif exists at static/img/orm/chatgpt-demo.gif.

content/250-postgres/350-integrations/400-mcp-server.mdx (1)

371-374: Remove duplicate-check request for ChatGPT integration. Only one ### ChatGPT section exists.

Likely an incorrect or invalid review comment.

coderabbitai[bot]
coderabbitai bot previously approved these changes Oct 13, 2025
coderabbitai[bot]
coderabbitai bot previously approved these changes Oct 13, 2025
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

Caution

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

⚠️ Outside diff range comments (8)
content/800-guides/160-tanstack-start.mdx (8)

479-486: Fix Prisma Client import and file location (use app/lib and correct client entry).

The generator outputs to app/generated/prisma, but the example imports ../generated/prisma/client.js from src/lib. This won’t resolve and conflicts with earlier app/* structure. Use app/lib and import the package entry.

-```tsx file=src/lib/prisma.ts
+```tsx file=app/lib/prisma.ts
 import { PrismaClient } from "../generated/prisma/client.js";
 import { withAccelerate } from "@prisma/extension-accelerate";
 
-const prisma = new PrismaClient().$extends(withAccelerate());
+const prisma = new PrismaClient().$extends(withAccelerate());
 
 export default prisma;
Apply this import fix inside the block:

```diff
-import { PrismaClient } from "../generated/prisma/client.js";
+import { PrismaClient } from "../generated/prisma";

489-496: Align “Other databases” example with app/lib and correct Prisma Client import.

Same path inconsistencies as above. Keep the examples consistent.

-```tsx file=src/lib/prisma.ts
+```tsx file=app/lib/prisma.ts
-import { PrismaClient } from "../generated/prisma/client.js";
+import { PrismaClient } from "../generated/prisma";
 
 const prisma = new PrismaClient();
 
 export default prisma;

---

`511-513`: **Use default import for prisma (named import will fail).**

prisma.ts exports default. Replace named import with default.



```diff
-import { prisma } from "../lib/prisma";
+import prisma from "../lib/prisma";
 import { createServerFn } from "@tanstack/react-start";

542-545: Repeat: fix prisma import (default, not named).

Same issue here.

-import { prisma } from "../lib/prisma";
+import prisma from "../lib/prisma";
 import { createServerFn } from "@tanstack/react-start";
 import { createFileRoute } from "@tanstack/react-router";

575-578: Repeat: fix prisma import (default, not named).

Same issue again.

-import { prisma } from "../lib/prisma";
+import prisma from "../lib/prisma";
 import { createServerFn } from "@tanstack/react-start";
 import { createFileRoute } from "@tanstack/react-router";

614-617: Correct prisma import path to app/lib.

If lib is under app/lib (as suggested above), index route should import from ../lib/prisma, not ../../lib/prisma.

-import prisma from "../../lib/prisma";
+import prisma from "../lib/prisma";

639-652: JSX comment syntax invalid; // inside JSX will break TSX.

Use JSX comments or remove markers to keep the snippet copy-pasteable.

-      // add-start
+      {/* add-start */}
       <ul>
         {users.map((user) => (
           <li key={user.id}>
             {user.name}
             <ul>
               {user.posts.map((post) => (
                 <li key={post.id}>{post.title}</li>
               ))}
             </ul>
           </li>
         ))}
       </ul>
-      // add-end
+      {/* add-end */}

393-396: Fix seed script Prisma Client import path.

Path points to ../src/generated/.../client.js which doesn’t exist per generator output; import the package entry from app/generated/prisma.

-import { PrismaClient, Prisma } from "../src/generated/prisma/client.js";
+import { PrismaClient, Prisma } from "../app/generated/prisma";
 
 const prisma = new PrismaClient();
🧹 Nitpick comments (2)
content/800-guides/160-tanstack-start.mdx (2)

441-443: Ensure Prisma disconnects after seeding.

Close connections after seeding to avoid hanging processes/leaks.

-main();
+main().finally(() => prisma.$disconnect());

507-537: Link text is good; verify all snippets consistently use app/ paths.*

Multiple snippets mix src/* and app/*. Please keep a single structure (recommended: app/lib for prisma and app/generated for client) across all code blocks to avoid confusion.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a431d8a and 6d8b5ec.

📒 Files selected for processing (1)
  • content/800-guides/160-tanstack-start.mdx (2 hunks)
⏰ 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). (2)
  • GitHub Check: runner / linkspector
  • GitHub Check: Check internal links

@ankur-arch ankur-arch merged commit edf9043 into main Oct 13, 2025
8 checks passed
@ankur-arch ankur-arch deleted the DC-5543 branch October 13, 2025 16:47
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