Skip to content

Commit 6437a84

Browse files
authored
feat: rename vs-code-extension page to vs-code (#7075)
* feat: rename vs-code-extension page to vs-code * fix: coderabbit nits
1 parent 1d7e927 commit 6437a84

File tree

8 files changed

+106
-12
lines changed

8 files changed

+106
-12
lines changed

content/200-orm/800-more/350-ai-tools/100-cursor.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ While this guide is focused on Cursor, these patterns should work with any AI ed
2424

2525
Prisma provides its own [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) server that lets you manage Prisma Postgres databases, model database schemas and chat through migrations. Learn more about how you can add it to Cursor [here](/postgres/integrations/mcp-server#cursor). You can also add the Prisma MCP server to Cursor using the [one-click installation](https://docs.cursor.com/context/model-context-protocol#one-click-installation) by clicking on the following link:
2626

27-
<a href="https://cursor.com/install-mcp?name=Prisma&config=eyJjb21tYW5kIjoibnB4IC15IHByaXNtYSBtY3AifQ%3D%3D" target="_blank" rel="noopener noreferrer">
27+
<a href="https://pris.ly/cursor-prisma-mcp-web" target="_blank" rel="noopener noreferrer" aria-label="Install Prisma MCP server in Cursor">
2828
<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install MCP Server" />
2929
</a>
3030

@@ -522,7 +522,7 @@ The [Prisma VS Code extension](https://marketplace.visualstudio.com/items?itemNa
522522

523523
### Database management UI
524524

525-
With its built-in database management interface, the [Prisma VS Code extension](/postgres/integrations/vscode-extension) lets you easily work with local and remote Prisma Postgres instances from inside your editor.
525+
With its built-in database management interface, the [Prisma VS Code extension](/postgres/integrations/vscode) lets you easily work with local and remote Prisma Postgres instances from inside your editor.
526526

527527
#### Workflows
528528

content/200-orm/800-more/350-ai-tools/200-tabnine.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ The [Prisma VS Code extension](https://marketplace.visualstudio.com/items?itemNa
459459

460460
### Database management UI
461461

462-
With its built-in database management interface, the [Prisma VS Code extension](/postgres/integrations/vscode-extension) lets you easily work with local and remote Prisma Postgres instances from inside your editor.
462+
With its built-in database management interface, the [Prisma VS Code extension](/postgres/integrations/vscode) lets you easily work with local and remote Prisma Postgres instances from inside your editor.
463463

464464
#### Workflows
465465

content/200-orm/800-more/350-ai-tools/300-windsurf.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ The [Prisma VS Code extension](https://marketplace.visualstudio.com/items?itemNa
546546

547547
### Database management UI
548548

549-
With its built-in database management interface, [the Prisma VS Code extension](/postgres/integrations/vscode-extension) lets you easily work with local and remote Prisma Postgres instances from inside your editor.
549+
With its built-in database management interface, [the Prisma VS Code extension](/postgres/integrations/vscode) lets you easily work with local and remote Prisma Postgres instances from inside your editor.
550550

551551
#### Workflows
552552

content/200-orm/800-more/350-ai-tools/400-github-copilot.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GitHub Copilot is an AI coding assistant that speeds up your Prisma ORM workflow
1313
- Run common Prisma CLI commands (e.g. `prisma migrate dev`, `prisma db push`) via Copilot's command-palette interface.
1414
- Scaffold Prisma schema models and generate Prisma Client code and run migrations directly from the Copilot chat interface.
1515

16-
GitHub Copilot allows you to query the official docs via the [**Prisma for GitHub Copilot** extension](https://github.com/apps/prisma-for-github-copilot) and also perform automated [actions in VS Code Agent mode](/postgres/integrations/vscode-extension#agent-mode), such as scaffolding a Prisma schema, running seeds scripts, and creating a production-ready Prisma Postgres database.
16+
GitHub Copilot allows you to query the official docs via the [**Prisma for GitHub Copilot** extension](https://github.com/apps/prisma-for-github-copilot) and also perform automated [actions in VS Code agent mode](/postgres/integrations/vscode#agent-mode), such as scaffolding a Prisma schema, running seed scripts, and creating a production-ready Prisma Postgres database.
1717

1818
## Query Prisma docs with the Prisma for GitHub Copilot extension
1919

@@ -47,7 +47,7 @@ GitHub Copilot Chat offers an **Agent** mode in VS Code that can run Prisma comm
4747
- Generate Prisma Client code.
4848
- Create a new Prisma Postgres database and update your `.env` file.
4949

50-
You can type `Create a database named test-db and add its connection string to the .env file.` in the Copilot chat, and it will automatically create a new database named `test-db` and add the connection string to your `.env` file. To learn more about this, visit our [VS Code agent mode documentation](/postgres/integrations/vscode-extension#agent-mode).
50+
You can type `Create a database named test-db and add its connection string to the .env file.` in the Copilot chat, and it will automatically create a new database named `test-db` and add the connection string to your `.env` file. To learn more about this, visit our [VS Code agent mode documentation](/postgres/integrations/vscode#agent-mode).
5151

5252
## Customize GitHub Copilot with `copilot-instructions.md`
5353

content/200-orm/800-more/500-development-environment/200-editor-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You can install the official [Prisma VS Code extension](https://marketplace.visu
5252

5353
:::tip
5454

55-
If you're using VS Code, you can use [VS Code agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode) to enter prompts such as “create Postgres database” or “apply schema migration” directly in the chat. The VS code agent handles all underlying Prisma CLI invocations and API calls automatically. See our [VS Code Agent documentation](/postgres/integrations/vscode-extension#agent-mode) for more details.
55+
If you're using VS Code, you can use [VS Code agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode) to enter prompts such as “create Postgres database” or “apply schema migration” directly in the chat. The VS code agent handles all underlying Prisma CLI invocations and API calls automatically. See our [VS Code Agent documentation](/postgres/integrations/vscode#agent-mode) for more details.
5656

5757
:::
5858

content/250-postgres/1100-integrations/400-mcp-server.mdx

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ npx -y prisma mcp
7979

8080
:::tip
8181

82-
If you're using VS Code, you can use [VS Code agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode) to enter prompts such as "create Postgres database" or "apply schema migration" directly in the chat. The VS code agent handles all underlying Prisma CLI invocations and API calls automatically. See our [VS Code Agent documentation](/postgres/integrations/vscode-extension#agent-mode) for more details.
82+
If you're using VS Code, you can use [VS Code agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode) to enter prompts such as "create Postgres database" or "apply schema migration" directly in the chat. The VS Code agent handles all underlying Prisma CLI invocations and API calls automatically. See our [VS Code Agent documentation](/postgres/integrations/vscode#agent-mode) for more details.
8383

8484
:::
8585

@@ -123,6 +123,51 @@ AI tools have different ways of integrating MCP servers. In most cases, there ar
123123

124124
In this section, we're covering the config formats of the most popular AI tools.
125125

126+
### VS Code
127+
128+
Install the Prisma MCP server in VS Code with a single click using the link below:
129+
130+
<a
131+
href="vscode:mcp/install?%7B%22name%22%3A%22prisma-postgres%22%2C%22gallery%22%3Atrue%2C%22url%22%3A%22https%3A%2F%2Fmcp.prisma.io%2Fmcp%22%7D"
132+
aria-label="Install Prisma MCP server in VS Code"
133+
style={{
134+
display: 'inline-flex',
135+
alignItems: 'center',
136+
borderRadius: '6px',
137+
overflow: 'hidden',
138+
textDecoration: 'none',
139+
height: '2.0rem'
140+
}}
141+
>
142+
<span style={{ backgroundColor: '#2C2C2C', color: 'white', padding: '0.6rem 0.8rem' }}>
143+
VS CODE
144+
</span>
145+
<span style={{ backgroundColor: '#0098FF', color: 'white', padding: '0.6rem 1rem' }}>
146+
INSTALL PRISMA MCP SERVER
147+
</span>
148+
</a>
149+
150+
This will prompt you to open VS Code. Once opened, you'll be guided to install the Prisma MCP server directly into your VS Code configuration.
151+
152+
If your browser blocks the link, [you can set it up manually](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-workspace) by creating a `.vscode/mcp.json` file in your workspace and adding:
153+
154+
```json file=.vscode/mcp.json
155+
{
156+
"servers": {
157+
"Prisma-Local": {
158+
"command": "npx",
159+
"args": ["-y", "prisma", "mcp"]
160+
},
161+
"Prisma-Remote": {
162+
"command": "npx",
163+
"args": ["-y", "mcp-remote", "https://mcp.prisma.io/mcp"]
164+
}
165+
}
166+
}
167+
```
168+
169+
Explore additional Prisma features and workflows for VS Code in [our docs](/postgres/integrations/vscode).
170+
126171
### Cursor
127172

128173
To learn more about Cursor's MCP integration, check out the [Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol#configuration-locations).
@@ -131,7 +176,7 @@ To learn more about Cursor's MCP integration, check out the [Cursor MCP docs](ht
131176

132177
You can add the Prisma MCP server to Cursor using the [one-click installation](https://docs.cursor.com/context/model-context-protocol#one-click-installation) by clicking on the following link:
133178

134-
<a href="https://cursor.com/install-mcp?name=Prisma&config=eyJjb21tYW5kIjoibnB4IC15IHByaXNtYSBtY3AifQ%3D%3D" target="_blank" rel="noopener noreferrer">
179+
<a href="https://pris.ly/cursor-deeplink" target="_blank" rel="noopener noreferrer">
135180
<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install MCP Server" />
136181
</a>
137182

content/250-postgres/1100-integrations/500-vscode-extension.mdx renamed to content/250-postgres/1100-integrations/500-vscode.mdx

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'VS Code extension'
2+
title: 'VS Code'
33
description: 'The Prisma VS Code extension provides a management UI for Prisma Postgres and superpowers for Copilot agent mode.'
44
metaTitle: 'Prisma VS Code extension'
55
metaDescription: 'The Prisma VS Code extension provides a management UI for Prisma Postgres and superpowers for Copilot agent mode.'
@@ -9,7 +9,7 @@ toc: true
99

1010
## Overview
1111

12-
With over 2.5M installs and 350K MAU's, the [Prisma VS Code extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma) is a powerful tool when you're building applications with Prisma Postgres with VS Code as your editor.
12+
[Visual Studio Code](https://code.visualstudio.com) is one of the most popular code editors, offering speed, flexibility, and a vast extension ecosystem. With over 2.5M installs and 350K MAUs, the [Prisma VS Code extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma) is a powerful tool when you're building applications with Prisma Postgres using VS Code as your editor.
1313

1414
## Database management UI
1515

@@ -38,6 +38,54 @@ To manage Prisma Postgres instances via the UI in the Prisma VS Code extension:
3838

3939
Beyond managing your database instances, the Prisma VS Code extension embeds Prisma Studio directly in your editor making it easy to perform create, update, delete steps on your database from right inside of VS Code. Follow these [easy steps](/postgres/database/prisma-studio/studio-in-vs-code) to get started.
4040

41+
42+
## Prisma MCP server
43+
44+
Prisma provides its own [Model Context Protocol](/postgres/integrations/mcp-server) (MCP) server that lets you manage Prisma Postgres databases, model database schemas and chat through migrations.
45+
46+
You can add the Prisma MCP server to VS Code using the one-click installation by clicking on the following link:
47+
48+
<a
49+
href="vscode:mcp/install?%7B%22name%22%3A%22prisma-postgres%22%2C%22gallery%22%3Atrue%2C%22url%22%3A%22https%3A%2F%2Fmcp.prisma.io%2Fmcp%22%7D"
50+
aria-label="Install Prisma MCP server in VS Code"
51+
style={{
52+
display: 'inline-flex',
53+
alignItems: 'center',
54+
borderRadius: '6px',
55+
overflow: 'hidden',
56+
textDecoration: 'none',
57+
height: '2.0rem'
58+
}}
59+
>
60+
<span style={{ backgroundColor: '#2C2C2C', color: 'white', padding: '0.6rem 0.8rem' }}>
61+
VS CODE
62+
</span>
63+
<span style={{ backgroundColor: '#0098FF', color: 'white', padding: '0.6rem 1rem' }}>
64+
INSTALL PRISMA MCP SERVER
65+
</span>
66+
</a>
67+
68+
This will prompt you to open VS Code. Once opened, you'll be guided to install the Prisma MCP server directly into your VS Code configuration.
69+
70+
If your browser blocks the link, [you can set it up manually](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-workspace) by creating a `.vscode/mcp.json` file in your workspace and adding:
71+
72+
```json file=.vscode/mcp.json
73+
{
74+
"servers": {
75+
"Prisma-Local": {
76+
"command": "npx",
77+
"args": ["-y", "prisma", "mcp"]
78+
},
79+
"Prisma-Remote": {
80+
"command": "npx",
81+
"args": ["-y", "mcp-remote", "https://mcp.prisma.io/mcp"]
82+
}
83+
}
84+
}
85+
```
86+
87+
Learn more about the MCP server in our [MCP server documentation](/postgres/integrations/mcp-server).
88+
4189
## Agent mode
4290

4391
VS Code includes an [agent mode](https://pris.ly/vs-code-docs) (powered by GitHub Copilot) that automatically performs code changes and executes Prisma CLI commands based on your prompts.

static/_redirects

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@
563563
/optimize/recommendations/_category_.json /docs/postgres/query-optimization/recommendations/_category_.json
564564
/postgres/database/api-reference/management-api /docs/postgres/introduction/management-api
565565
/postgres/database/error-reference /docs/postgres/database/api-reference/error-reference
566-
566+
/postgres/integrations/vscode-extension /postgres/integrations/vscode
567567
### Dynamic redirects ###
568568
/faq/* https://v1.prisma.io/docs/1.34/faq/:splat
569569
/understand-prisma/* https://v1.prisma.io/docs/1.34/understand-prisma/:splat
@@ -630,5 +630,6 @@
630630
/postgres/database/error-reference* /docs/postgres/database/api-reference/error-reference:splat
631631

632632
/postgres/more/known-limitations /docs/postgres/introduction/overview
633+
/postgres/integrations/vscode-extension* /postgres/integrations/vscode:splat
633634

634635
### NO REDIRECTS BELOW THIS LINE. ADD REDIRECTS ABOVE THIS SECTION ###

0 commit comments

Comments
 (0)