-
Notifications
You must be signed in to change notification settings - Fork 862
feat: add chatGPT page #7173
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
Merged
Merged
feat: add chatGPT page #7173
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f2e1e42
feat: add chatGPT page
ankur-arch 0f04e21
Merge branch 'main' into DC-5543
ankur-arch 9d0279d
Merge branch 'main' into DC-5543
ankur-arch cadf446
feat: add note
ankur-arch a431d8a
fix: broken link
ankur-arch 6d8b5ec
fix: broken link
ankur-arch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| --- | ||
| title: 'ChatGPT' | ||
| metaTitle: 'Using the Prisma MCP Server with ChatGPT' | ||
| metaDescription: 'Learn how to add the remote Prisma MCP server to ChatGPT to manage your Prisma Postgres databases.' | ||
| tocDepth: 3 | ||
| toc: true | ||
| --- | ||
|
|
||
| [ChatGPT](https://openai.com/chatgpt) is a large language model-based chatbot developed by OpenAI. You can extend its capabilities by connecting it to external tools, such as the Prisma MCP server, to interact with your Prisma Postgres databases. | ||
|
|
||
| This guide explains how to add the remote Prisma MCP server to ChatGPT, allowing you to create and manage your databases using natural language prompts. | ||
|
|
||
| :::tip[ChatGPT MCP integration is experimental] | ||
|
|
||
| This feature is still in development by OpenAI and might look or work a little differently over time. Some users may not have access to it yet. | ||
|
|
||
| If you notice that something has changed or doesn't match this guide, please [open an issue](https://github.com/prisma/docs/issues) or submit a pull request to update our docs. | ||
| ::: | ||
|
|
||
| Here is an end to end demo of setting up the remote Prisma MCP server and using it in ChatGPT: | ||
|
|
||
|  | ||
|
|
||
|
|
||
| ## Features of the Prisma MCP server | ||
|
|
||
| By connecting the Prisma MCP server to ChatGPT, you can perform a variety of database management tasks directly from the chat interface. Here are some of the key features available: | ||
|
|
||
| - **Database management**: Create, list, and delete your Prisma Postgres databases. | ||
| - **Connection strings**: Generate, list, and revoke database connection strings. | ||
| - **Backup and recovery**: Create and list database backups, and restore a database from a backup. | ||
| - **Schema and Data interaction**: Execute SQL queries, introspect your database schema to understand its structure, and apply schema updates. | ||
| - **Workspace information**: Fetch details about your Prisma workspace. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| To use the Prisma MCP server with ChatGPT, you need access to ChatGPT's Developer Mode. This feature is available on specific ChatGPT plans. For the most up-to-date information on supported plans, please refer to the [official OpenAI documentation](https://platform.openai.com/docs/guides/developer-mode). | ||
|
|
||
| ## Enable Developer mode in ChatGPT | ||
|
|
||
| 1. Go to **Settings** in your ChatGPT account. | ||
| 2. Click **Apps & Connectors**. | ||
| 3. Scroll down and locate **Advanced settings**, then click it. | ||
| 4. Toggle the **Developer mode** button on. | ||
| 5. Click **Back**. | ||
|
|
||
| ## Add the remote Prisma MCP server | ||
|
|
||
| 1. Make sure "Developer mode" is enabled. | ||
| 2. Go to the **Apps & Connectors** section of your **Settings**. | ||
| 3. On the top right, locate and click **Create**. | ||
| 4. A "New Connector" popup will open. Fill in the text fields as follows: | ||
| - **Icon**: You can download and use the [Prisma favicon](https://www.prisma.io/favicon.ico). | ||
| - **Name**: `Prisma MCP server` | ||
| - **Description**: `Manage Prisma Postgres databases` | ||
| - **MCP Server URL**: `https://mcp.prisma.io/mcp` | ||
| - **Authentication**: `OAuth` | ||
| 5. Check the "I trust this application" box and click **Create**. | ||
|
|
||
| You will be redirected to authenticate with your Prisma Data Platform account and choose your desired workspace. After successful authentication, you will be redirected back to ChatGPT. | ||
|
|
||
| ## Using the remote Prisma MCP server | ||
|
|
||
| Once Developer Mode is enabled and the Prisma MCP server is added, you can use it in your chats. | ||
|
|
||
| 1. In ChatGPT, click the **+** icon to the left of the chat input box. | ||
| 2. Click **More**. | ||
| 3. Select the **Prisma MCP server** to add it to your chat as a connector. | ||
|
|
||
| Now you can use natural language prompts to manage your database. For example: | ||
|
|
||
| ``` | ||
| Create a DB called pet-app for me near Paris | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.