Skip to content

Commit 4e00236

Browse files
authored
Merge branch 'main' into pdp-copy
2 parents 29cf756 + 93814c3 commit 4e00236

1,586 files changed

Lines changed: 11234 additions & 8629 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Sync Management API Docs
2+
3+
on:
4+
repository_dispatch:
5+
types: [management-api-updated]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: sync-management-api-docs
10+
cancel-in-progress: false
11+
12+
jobs:
13+
sync:
14+
name: Sync Management API Documentation
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: "20"
29+
cache: "pnpm"
30+
31+
- name: Install dependencies
32+
run: pnpm install
33+
34+
- name: Fetch OpenAPI spec
35+
working-directory: apps/docs
36+
run: pnpm fetch-openapi
37+
38+
- name: Generate docs
39+
working-directory: apps/docs
40+
run: pnpm run generate:management-api-docs
41+
42+
- name: Check for changes
43+
id: changes
44+
run: |
45+
if [[ -z "$(git status --porcelain --untracked-files=all -- apps/docs/content/docs/management-api/)" ]]; then
46+
echo "changed=false" >> $GITHUB_OUTPUT
47+
echo "No MDX changes detected"
48+
else
49+
echo "changed=true" >> $GITHUB_OUTPUT
50+
echo "MDX changes detected:"
51+
git status --short -- apps/docs/content/docs/management-api/
52+
fi
53+
54+
- name: Commit and push
55+
if: steps.changes.outputs.changed == 'true'
56+
run: |
57+
git config user.email "prismabots@gmail.com"
58+
git config user.name "Prismo"
59+
git add apps/docs/content/docs/management-api/
60+
git commit -m "chore(docs): sync management API documentation"
61+
git push "https://x-access-token:${{ secrets.BOT_TOKEN_DOCS_COMMIT }}@github.com/${{ github.repository }}.git" HEAD:${{ github.ref_name }}
62+
63+
- name: Trigger Vercel deploy
64+
run: curl --fail -X POST "${{ secrets.VERCEL_DEPLOY_HOOK_URL }}"

apps/blog/content/blog/about-mcp-servers-and-how-we-built-one-for-prisma/index.mdx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ date: "2025-05-07"
55
authors:
66
- "Nikolas Burk"
77
metaTitle: "About MCP Servers & How We Built One for Prisma"
8-
metaImagePath: "/blog/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/meta-c7ef9462464563ecc68ddf667e18dbef71f9f4fd-1266x711.png"
9-
heroImagePath: "/blog/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/hero-af7a5b40501028b64219b2144f7b5c03723c4d99-844x474.svg"
8+
metaImagePath: "/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/meta-c7ef9462464563ecc68ddf667e18dbef71f9f4fd-1266x711.png"
9+
heroImagePath: "/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/hero-af7a5b40501028b64219b2144f7b5c03723c4d99-844x474.svg"
10+
tags:
11+
- "education"
12+
- "orm"
1013
excerpt: |
1114
Learn how MCP works by following the practical example of how we built the Prisma MCP server, including the tradeoffs between local and remote MCP servers, the `@modelcontextprotocol/sdk` package, and how we enabled LLMs to use the Prisma CLI.
1215
@@ -42,7 +45,7 @@ In such scenarios, an LLM needs additional capabilities to interact with the "ou
4245

4346
LLM providers have responded to this need by implementing so-called _tool_ access. Individual providers use different names for it: OpenAI calls it [function calling](https://platform.openai.com/docs/guides/function-calling?api-mode=responses), Anthropic refers to it as [tool use](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/overview), and others use terms like "plugins" or "actions."
4447

45-
![](/blog/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/5a5b498ea72ab4a0969ed268408ef95d6f301d53-2888x1372.png)
48+
![](/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/5a5b498ea72ab4a0969ed268408ef95d6f301d53-2888x1372.png)
4649

4750
This approach was messy because each LLM had a different interface for interacting with tools.
4851

@@ -99,7 +102,7 @@ In November 2024, [Anthropic introduced the Model Context Protocol](https://www.
99102
100103
MCP provides a universal, open standard for connecting AI systems with external data sources. All LLMs that implement the MCP protocol can now access the same functionality if it's exposed through an MCP server.
101104

102-
![](/blog/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/cbb0879b85e332bad731a1ca4c514d7c66ea9616-2888x1372.png)
105+
![](/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/cbb0879b85e332bad731a1ca4c514d7c66ea9616-2888x1372.png)
103106

104107
Returning to the previous example: With MCP, you only need to implement the invoice search functionality _once_. You can then expose it via an MCP server to all LLMs that support the MCP protocol. Here's a pseudocode implementation:
105108

@@ -124,7 +127,7 @@ await server.connect(transport);
124127
```
125128
Anthropic clearly struck a chord with this standard. If you were on X at the time, you probably saw multiple MCP posts a day. Google Trends for "MCP" tell the same story:
126129

127-
![](/blog/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/03cc8051d3cdfcabcb6037fcb5fbe1d33856fc99-1816x1400.png)
130+
![](/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/03cc8051d3cdfcabcb6037fcb5fbe1d33856fc99-1816x1400.png)
128131

129132
### How to connect an LLM to an MCP server
130133

@@ -167,15 +170,15 @@ Before MCP, we would have had to implement support separately for each LLM. With
167170

168171
When introducing MCP, Anthropic released SDKs for various languages. The TypeScript SDK lives in the [`typescript-sdk`](https://github.com/modelcontextprotocol/typescript-sdk) repository and provides everything needed to implement MCP clients and servers.
169172

170-
![](/blog/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/e7b3db57367968f0458172fb2f8bfa532b82f7ed-2068x1600.png)
173+
![](/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/e7b3db57367968f0458172fb2f8bfa532b82f7ed-2068x1600.png)
171174

172175
### Local vs. remote MCP servers
173176

174177
When building an MCP server, you must decide if it runs _locally_ (on the same machine as the user) or _remotely_ (on a machine accessible via the internet).
175178

176179
This depends on what the server does. If it needs access to the user's file system, it must run locally. If it just calls APIs, it can be local or remote (because an API can be called both from a local and remote machine).
177180

178-
![](/blog/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/39eadb7214d14e787cf74adbcbd9940f6cdb4ae2-2888x2644.png)
181+
![](/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/39eadb7214d14e787cf74adbcbd9940f6cdb4ae2-2888x2644.png)
179182

180183
In the case of Prisma, the LLM primarily needs access to the Prisma CLI in order to support developers with database-related workflows. The Prisma CLI may connect to a local or a remote database instance. However, because the CLI commands are executed locally, the Prisma MCP server also must be local.
181184

@@ -305,7 +308,7 @@ Or check out our [docs](https://www.prisma.io/docs/postgres/integrations/mcp-ser
305308

306309
Once added, your AI tool will show the MCP server's status and available tools. Here's how it looks in Cursor:
307310

308-
![](/blog/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/1a9c595ed52f76150075536f39a1d00a014da6b1-1950x1240.png)
311+
![](/about-mcp-servers-and-how-we-built-one-for-prisma/imgs/1a9c595ed52f76150075536f39a1d00a014da6b1-1950x1240.png)
309312

310313
## Beyond MCP: New capabilities for Prisma users in VS Code
311314

apps/blog/content/blog/accelerate-ga-release-i9cqm6bsf2g6/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ authors:
66
- "Sam Bhatti"
77
metaTitle: "Prisma Accelerate now in General Availability"
88
metaDescription: "Supercharge your applications with Prisma Accelerate's scalable connection pooling and global edge caching. Plus, enjoy our exclusive launch offer."
9-
metaImagePath: "/blog/accelerate-ga-release-i9cqm6bsf2g6/imgs/meta-42554fa75736c00b0ca55e1e440dde26f43dcb3f-1266x711.png"
10-
heroImagePath: "/blog/accelerate-ga-release-i9cqm6bsf2g6/imgs/hero-de83f5f843f2a86abd05659c94c3069e7577a0f5-844x474.svg"
9+
metaImagePath: "/accelerate-ga-release-i9cqm6bsf2g6/imgs/meta-42554fa75736c00b0ca55e1e440dde26f43dcb3f-1266x711.png"
10+
heroImagePath: "/accelerate-ga-release-i9cqm6bsf2g6/imgs/hero-de83f5f843f2a86abd05659c94c3069e7577a0f5-844x474.svg"
1111
heroImageAlt: "Prisma Accelerate now in General Availability"
12+
tags:
13+
- "announcement"
14+
- "data-platform"
1215
excerpt: |
1316
Now in General Availability: Dive into [Prisma Accelerate](https://pris.ly/accelerate-blog), enhancing global database connections with connection pooling and edge caching for fast data access.
1417

apps/blog/content/blog/accelerate-ipv6-first/index.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ authors:
66
- "Tyler Benfield"
77
metaTitle: "We Transitioned Prisma Accelerate to IPv6 Without Anyone Noticing"
88
metaDescription: "In July 2023, AWS announced the decision to begin charging for IPv4 addresses beginning in February 2024. This move had a major impact on Prisma Accelerate for reasons we’ll get into, prompting us to go all-in on IPv6. Join us for a deep dive into how we approached our IPv6 migration, lessons learned, and the outcome for users of Prisma Accelerate."
9-
metaImagePath: "/blog/accelerate-ipv6-first/imgs/meta-b5bac6d735ee17d003b0a06190a5fa5c0e3fcc15-1266x713.png"
10-
heroImagePath: "/blog/accelerate-ipv6-first/imgs/hero-248d5719caeee73ee2c7f94a7d194de949af1524-844x475.svg"
9+
metaImagePath: "/accelerate-ipv6-first/imgs/meta-b5bac6d735ee17d003b0a06190a5fa5c0e3fcc15-1266x713.png"
10+
heroImagePath: "/accelerate-ipv6-first/imgs/hero-248d5719caeee73ee2c7f94a7d194de949af1524-844x475.svg"
11+
tags:
12+
- "data-platform"
1113
excerpt: |
1214
In July 2023, [AWS announced](https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address-charge-public-ip-insights/) the decision to begin charging for IPv4 addresses beginning in February 2024. This move had a major impact on [Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) for reasons we’ll get into, prompting us to go all-in on IPv6. Join us for a deep dive into how we approached our IPv6 migration, lessons learned, and the outcome for users of Prisma Accelerate.
1315
---

apps/blog/content/blog/accelerate-preview-release-ab229e69ed2/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ authors:
66
- "Ankur Datta"
77
metaTitle: "Accelerate in Preview: Global Database Cache & Scalable Connection Pool"
88
metaDescription: "Accelerate is going into Preview! Learn how to enable high-speed, scalable applications with a global cache and connection pooler."
9-
metaImagePath: "/blog/accelerate-preview-release-ab229e69ed2/imgs/meta-3a75c0ed5f8837980765d5b7589367216653d6b7-1266x711.png"
10-
heroImagePath: "/blog/accelerate-preview-release-ab229e69ed2/imgs/hero-587aeef34568af2258cd4e5f0453710b0b94259c-844x474.svg"
9+
metaImagePath: "/accelerate-preview-release-ab229e69ed2/imgs/meta-3a75c0ed5f8837980765d5b7589367216653d6b7-1266x711.png"
10+
heroImagePath: "/accelerate-preview-release-ab229e69ed2/imgs/hero-587aeef34568af2258cd4e5f0453710b0b94259c-844x474.svg"
1111
heroImageAlt: "Accelerate in Preview"
12+
tags:
13+
- "announcement"
14+
- "data-platform"
1215
excerpt: |
1316
[Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) is now available to everyone in Preview! Make your application faster with our powerful global cache and scalable connection pooler. [Get started now](https://pris.ly/pdp), and let us know what you think.
1417

apps/blog/content/blog/accelerate-static-ip-support/index.mdx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ authors:
66
- "Ankur Datta"
77
metaTitle: "Increase Database Security With Static IP Support in Prisma Accelerate"
88
metaDescription: "Prisma Accelerate now supports Static IPs, ensuring secure database connections with predictable IPs for controlled access."
9-
metaImagePath: "/blog/accelerate-static-ip-support/imgs/meta-9a5f27696242c051a689abed3d4b7099a8145301-1200x674.png"
10-
heroImagePath: "/blog/accelerate-static-ip-support/imgs/hero-06da453a2597f2571d34972ec912ad3c32f37ba6-844x474.svg"
9+
metaImagePath: "/accelerate-static-ip-support/imgs/meta-9a5f27696242c051a689abed3d4b7099a8145301-1200x674.png"
10+
heroImagePath: "/accelerate-static-ip-support/imgs/hero-06da453a2597f2571d34972ec912ad3c32f37ba6-844x474.svg"
1111
heroImageAlt: "Enable Static IP in Prisma Accelerate"
12+
tags:
13+
- "announcement"
14+
- "data-platform"
1215
excerpt: |
1316
[Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) introduces Static IP support, enabling secure connections to your database with predictable IPs for controlled access and minimized exposure. This allows connections from Accelerate to databases requiring trusted IP access.
1417
---
@@ -29,21 +32,21 @@ By layering these defenses, you can better protect your database from various ty
2932

3033
To add one layer of these security measures, you can restrict database access from the public internet by configuring firewalls and IP allowlists to limit access to trusted IP addresses. It becomes possible if the IP addresses that require access to your database are static IP addresses.
3134

32-
![Access request to your database from unauthorized IP](/blog/accelerate-static-ip-support/imgs/150247eeac00c5b575e06024aec82d5bf08eb57e-2960x1406.png)
35+
![Access request to your database from unauthorized IP](/accelerate-static-ip-support/imgs/150247eeac00c5b575e06024aec82d5bf08eb57e-2960x1406.png)
3336

3437
A static IP address is an IPv4 or an IPv6 address that doesn’t change. Unlike dynamic IP addresses, which can change unpredictably, traffic from static IP addresses are easier to identify.
3538

36-
![Dynamic vs Static IP](/blog/accelerate-static-ip-support/imgs/14f0c87eaa0bb42137006d8f8b0ad16b23ac648b-2960x988.png)
39+
![Dynamic vs Static IP](/accelerate-static-ip-support/imgs/14f0c87eaa0bb42137006d8f8b0ad16b23ac648b-2960x988.png)
3740

3841
Using static IP addresses benefits managing and securing traffic by allowing you to configure your network firewalls or set up IP allowlisting to restrict access to your resources from specific IP addresses that don’t change.
3942

4043
Enabling static IP within your Prisma Accelerate configuration in a project environment allows using Accelerate with databases that have IP allowlisting enabled.
4144

42-
![Allow Accelerate](/blog/accelerate-static-ip-support/imgs/5fba5bb200c4418e360b6a4114e3a0d3c16d7fab-791x344.png)
45+
![Allow Accelerate](/accelerate-static-ip-support/imgs/5fba5bb200c4418e360b6a4114e3a0d3c16d7fab-791x344.png)
4346

4447
You can add the Accelerate static IP address in the database firewall IP allowlist or permit access to the IP address within your private network. This ensures that Accelerate can securely access your database while other unauthorized requests to your database are denied.
4548

46-
![Allow accelerate traffic and deny unknown traffic](/blog/accelerate-static-ip-support/imgs/d1f333f72a4431083fafc0eb1f25ba8c3c7203b6-1480x703.png)
49+
![Allow accelerate traffic and deny unknown traffic](/accelerate-static-ip-support/imgs/d1f333f72a4431083fafc0eb1f25ba8c3c7203b6-1480x703.png)
4750

4851
## Enable static IP in Prisma Accelerate
4952

@@ -54,10 +57,10 @@ To enable static IP support for Accelerate within your existing or new project e
5457
Users can opt-in to using static IP in the Platform Console in two ways:
5558

5659
1. When enabling Accelerate for your project environment, opt-in to static IP after specifying your database connection string and connection pool region.
57-
![Enable static IP when enabling Accelerate](/blog/accelerate-static-ip-support/imgs/970ae13572758d9962b6cc0b72b7e5a8c1af341b-2978x1976.png)
60+
![Enable static IP when enabling Accelerate](/accelerate-static-ip-support/imgs/970ae13572758d9962b6cc0b72b7e5a8c1af341b-2978x1976.png)
5861

5962
2. For projects already using Accelerate, enable static IP by navigating to Accelerate settings in your project environment.
60-
![Enable static IP when updating Accelerate configuration](/blog/accelerate-static-ip-support/imgs/3be45327e6177e94ffb2739a1face51226c6ce5f-2572x1570.png)
63+
![Enable static IP when updating Accelerate configuration](/accelerate-static-ip-support/imgs/3be45327e6177e94ffb2739a1face51226c6ce5f-2572x1570.png)
6164

6265
After you enable static IP within your Prisma Accelerate configuration, you’ll see a list of IPv4 and IPv6 addresses , which you will use to allow Accelerate traffic to your database.
6366

apps/blog/content/blog/advanced-database-schema-management-with-atlas-and-prisma-orm/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ authors:
66
- "Nikolas Burk"
77
metaTitle: "Advanced Database Schema Management with Atlas & Prisma ORM"
88
metaDescription: "Atlas is a powerful data modeling and migrations tool enabling advanced DB schema management workflows, like CI/CD, schema monitoring, versioning, and more."
9-
metaImagePath: "/blog/advanced-database-schema-management-with-atlas-and-prisma-orm/imgs/meta-862a4191726cfb1bcc2e53bc83e377e1af47cd5d-1200x675.png"
10-
heroImagePath: "/blog/advanced-database-schema-management-with-atlas-and-prisma-orm/imgs/hero-6ad0def91299fbf2a745f528d83a194350d0ee74-844x475.svg"
9+
metaImagePath: "/advanced-database-schema-management-with-atlas-and-prisma-orm/imgs/meta-862a4191726cfb1bcc2e53bc83e377e1af47cd5d-1200x675.png"
10+
heroImagePath: "/advanced-database-schema-management-with-atlas-and-prisma-orm/imgs/hero-6ad0def91299fbf2a745f528d83a194350d0ee74-844x475.svg"
11+
tags:
12+
- "orm"
13+
- "education"
1114
excerpt: |
1215
[Atlas](https://atlasgo.io/) is a powerful migration tool that enables advanced database schema management workflows, like CI/CD, schema monitoring, versioning, and more. Learn how to use Atlas together with Prisma ORM and make use of Atlas' capabilities by using low-level database features.
1316
---

apps/blog/content/blog/all-you-need-to-know-about-apollo-client-2-7e27e36d62fd/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ date: "2017-11-07"
55
authors:
66
- "Nikolas Burk"
77
metaTitle: "All you need to know about Apollo Client 2 | Prisma"
8-
metaImagePath: "/blog/all-you-need-to-know-about-apollo-client-2-7e27e36d62fd/imgs/hero-ebd9548e6d9cfb33c4e35eac48e11a80532a8d30-1440x960.jpg"
9-
heroImagePath: "/blog/all-you-need-to-know-about-apollo-client-2-7e27e36d62fd/imgs/hero-ebd9548e6d9cfb33c4e35eac48e11a80532a8d30-1440x960.jpg"
8+
metaImagePath: "/all-you-need-to-know-about-apollo-client-2-7e27e36d62fd/imgs/hero-ebd9548e6d9cfb33c4e35eac48e11a80532a8d30-1440x960.jpg"
9+
heroImagePath: "/all-you-need-to-know-about-apollo-client-2-7e27e36d62fd/imgs/hero-ebd9548e6d9cfb33c4e35eac48e11a80532a8d30-1440x960.jpg"
1010
heroImageAlt: "All you need to know about Apollo Client 2"
1111
excerpt: |
1212
Apollo Client, a powerful and flexible GraphQL client library, just reached version 2.0. In this post, we want to

apps/blog/content/blog/ambassador-program-nxkwgcgnuvfx/index.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ authors:
77
- "Nikolas Burk"
88
metaTitle: "Announcing the Prisma Ambassador Program — Building A Community of Experts"
99
metaDescription: "We are thrilled to announce the launch of the Ambassador Program to empower the Prisma community, while also helping individual contributors build their own brand."
10-
metaImagePath: "/blog/ambassador-program-nxkwgcgnuvfx/imgs/meta-de28b5e0df55c52078065ee2ae0b44d6cdf0da1e-1692x852.png"
11-
heroImagePath: "/blog/ambassador-program-nxkwgcgnuvfx/imgs/hero-1bdf6237d95ded8d448f28db203012147fdcd39e-846x426.png"
10+
metaImagePath: "/ambassador-program-nxkwgcgnuvfx/imgs/meta-de28b5e0df55c52078065ee2ae0b44d6cdf0da1e-1692x852.png"
11+
heroImagePath: "/ambassador-program-nxkwgcgnuvfx/imgs/hero-1bdf6237d95ded8d448f28db203012147fdcd39e-846x426.png"
1212
heroImageAlt: "Prisma Ambassador Program — Building A Community of Experts"
13+
tags:
14+
- "announcement"
1315
excerpt: |
1416
We are thrilled to announce the [Prisma Ambassador Program](https://www.prisma.io/ambassador) to empower the Prisma community, while also helping individual contributors build their own brand.
1517

0 commit comments

Comments
 (0)