From 2b13de2574cd334cbb9e10804e9376e41d77aa26 Mon Sep 17 00:00:00 2001 From: tylerhogarth <5163494+tylerhogarth@users.noreply.github.com> Date: Wed, 2 Dec 2026 07:35:36 +0000 Subject: [PATCH 1/5] docs: add a point in time recovery page for Prisma Postgres Co-Authored-By: Claude Opus 5.5 --- .../docs/postgres/database/backups.mdx | 2 +- .../content/docs/postgres/database/meta.json | 1 + .../database/point-in-time-recovery.mdx | 99 +++++++++++++++++++ apps/docs/content/docs/postgres/index.mdx | 3 +- 4 files changed, 103 insertions(+), 2 deletions(-) create mode 100644 apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx diff --git a/apps/docs/content/docs/postgres/database/backups.mdx b/apps/docs/content/docs/postgres/database/backups.mdx index a9398c367a8..b18c76940db 100644 --- a/apps/docs/content/docs/postgres/database/backups.mdx +++ b/apps/docs/content/docs/postgres/database/backups.mdx @@ -25,7 +25,7 @@ To recover rows that were deleted by mistake without overwriting newer data, [re For more details about backup availability and plan-specific features, visit our [pricing page](https://www.prisma.io/pricing). :::note -Point-in-time recovery is not available on Prisma Postgres yet. When it ships, it will restore a database to a moment you choose, rather than to a retained daily snapshot. +To restore a database to a time you choose, rather than to a daily snapshot, use [point in time recovery](/postgres/database/point-in-time-recovery). It is available on the Pro, Business, and Enterprise plans. ::: ## Restoring a backup diff --git a/apps/docs/content/docs/postgres/database/meta.json b/apps/docs/content/docs/postgres/database/meta.json index c4b33799120..2dcbb4c37f6 100644 --- a/apps/docs/content/docs/postgres/database/meta.json +++ b/apps/docs/content/docs/postgres/database/meta.json @@ -7,6 +7,7 @@ "connection-pooling", "query-insights", "backups", + "point-in-time-recovery", "postgres-extensions", "serverless-driver" ] diff --git a/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx b/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx new file mode 100644 index 00000000000..f71be0a2fb2 --- /dev/null +++ b/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx @@ -0,0 +1,99 @@ +--- +title: Point in time recovery +description: Restore a Prisma Postgres database to a new database, as it was at a time you choose, in Console, the REST API, or MCP tools. +metaTitle: Point in time recovery | Prisma Postgres +metaDescription: Restore a Prisma Postgres database to any time in its restore window. See the window for each plan, how to restore in Console, the REST API, and MCP tools, and what happens while the restore runs. +url: /postgres/database/point-in-time-recovery +--- + +Point in time recovery (PITR) restores the data of a Prisma Postgres database to a new database, as it was at a time you choose. Use it to get back rows that were deleted or changed by mistake. Unlike a [backup](/postgres/database/backups), it is not limited to the times of daily snapshots. + +For example, if a migration deleted a column at 14:05, restore the database as it was at 14:04. Then copy the data you need back into the original database. + +The restore always creates a new database. The original database is not changed, and your app keeps using it while the restore runs. + +## Plans and restore window + +Point in time recovery is available on the Pro, Business, and Enterprise plans. The restore window is how far back you can go: + +| Plan | Restore window | +| ---------- | -------------- | +| Pro | Last 7 days | +| Business | Last 30 days | +| Enterprise | Last 30 days | + +The newest time you can choose is 10 minutes ago. The oldest time can be later than the start of the window: + +- A new database can be restored only after its first backup has finished. +- After you [restore a backup](/postgres/database/backups#restoring-a-backup) in place, you can only restore to times after the next backup that finishes. +- Some older databases do not support point in time recovery. Console says so on the database's **Point in time** page. + +Remote databases do not support point in time recovery. + +## Restore a database in Console + +To restore a database, you need the Admin role, or the Developer role with access to the project. See [Workspace roles and project access](/console/workspace-access). + +1. Open the database in the [Prisma Console](https://console.prisma.io) and select **Point in time** in the sidebar. +2. Under **Choose Point in Time**, choose the date and time to restore to. The description under the label shows the oldest and newest times you can choose. +3. Optional: choose a different time zone in the list next to the date. Times are shown in your local time zone by default. The time zone changes only how the times are shown. +4. Under **Choose Database Name**, enter a name for the new database. +5. Click **Restore to new database**. + +Console opens the new database's **Dashboard**, which shows that the database is being restored. + +The new database is created in the same project, on the same branch, and in the same region as the original. It counts toward the database limit of your plan. + +## While the restore runs + +A restore can take several hours for a large database. While it runs: + +- The new database's **Dashboard** shows the progress, and updates when the restore finishes. You can leave the page and come back later. +- The sidebar shows only **Dashboard** and **Settings** for the new database. You cannot open Studio, Queries, or connection strings until the restore finishes. +- On **Settings**, you cannot rename the database. For the first few minutes, you cannot delete it either. Console shows **This restore is still starting** until the delete is possible. + +When the restore finishes, Prisma sends an email to the Admins and Developers who can access the project. If the restore fails, the email says so and links to the **Point in time** page, where you can try again. A restore that has not finished after 24 hours is marked as failed. + +## Use the restored data + +The new database has its own connection strings. The connection strings of the original database do not reach it. + +1. [Generate a connection string](/postgres/database/connecting-to-your-database#get-your-connection-strings) for the new database. +2. Copy the rows you need back into the original database, or point your app at the new database. + +[Recover deleted records from a hosted Postgres database](https://www.prisma.io/postgres/recover-deleted-records) walks through copying rows back. + +When you no longer need the new database, delete it from its **Settings** page. If the database is on a branch that [Delete Protection](/console/delete-protection) covers, turn off **Data** first. + +## Restore with the REST API or MCP tools + +The REST API and [MCP tools](/ai/mcp-tools) use the same restore window as Console. + +**REST API** + +1. Call [`GET /v1/databases/{databaseId}/backups/pitr`](/rest-api/endpoints/database-backups/get-databases-by-database-id-backups-pitr) to read the oldest and newest times you can restore to. `window` is `null` when no time is available, and `meta.availableOnPlan` is `false` when your plan does not include point in time recovery. +2. Call [`POST /v1/projects/{projectId}/databases`](/rest-api/endpoints/databases/post-projects-by-project-id-databases) with a `source` of type `pitr`: + + ```json + { + "name": "orders-restored", + "source": { + "type": "pitr", + "databaseId": "db_123", + "targetTime": "2026-12-01T14:04:00Z" + } + } + ``` + + `targetTime` is an ISO 8601 date and time inside the window. + +**MCP tools** + +- `get_prisma_postgres_pitr_window` returns the window of a database. +- `create_prisma_postgres_recovery` with a `targetTime` restores the database to a new database. + +## Next steps + +- [Backups](/postgres/database/backups): restore a daily snapshot, or restore a database in place. +- [Connecting to your database](/postgres/database/connecting-to-your-database): get connection strings for the restored database. +- [Delete Protection](/console/delete-protection): stop the original database from being deleted by mistake. diff --git a/apps/docs/content/docs/postgres/index.mdx b/apps/docs/content/docs/postgres/index.mdx index 7b81e0096a7..ccb6f01f2b4 100644 --- a/apps/docs/content/docs/postgres/index.mdx +++ b/apps/docs/content/docs/postgres/index.mdx @@ -126,7 +126,8 @@ Each Prisma Postgres database includes the following, with no extra services to - **Connection pooling**: a dedicated PgBouncer instance runs alongside your database, with nothing to set up or manage. It also works for serverless and edge deployments. See [Connection pooling](/postgres/database/connection-pooling). - **Edge and serverless support**: connect from Cloudflare Workers, Vercel Functions on the Edge runtime, and other edge runtimes via the [serverless driver](/postgres/database/serverless-driver), which uses HTTP instead of TCP. -- **Automated backups** (Starter, Pro, and Business plans): daily snapshots, taken only on days the database has activity, kept for 7 or 30 days depending on the plan. The Console restores one in place, keeping the connection strings, or into a new database; the Prisma CLI and the REST API's restore endpoint restore in place, and the REST API and the MCP server can also restore into a new database. Point-in-time recovery is not available yet. See [Backups](/postgres/database/backups). +- **Automated backups** (Starter, Pro, and Business plans): daily snapshots, taken only on days the database has activity, kept for 7 or 30 days depending on the plan. The Console restores one in place, keeping the connection strings, or into a new database; the Prisma CLI and the REST API's restore endpoint restore in place, and the REST API and the MCP server can also restore into a new database. See [Backups](/postgres/database/backups). +- **Point in time recovery** (Pro, Business, and Enterprise plans): restore a database to a new database, as it was at a time you choose in the last 7 or 30 days. See [Point in time recovery](/postgres/database/point-in-time-recovery). ## Local development From b4a19b859f2c4f3ff4f1ca27ae8c11fa6674048a Mon Sep 17 00:00:00 2001 From: Gregory Boch Date: Wed, 2 Dec 2026 20:02:18 +0900 Subject: [PATCH 2/5] docs(postgres): name PITR, plans and restore windows up front on the point-in-time recovery page - Title, descriptions and first lines say point-in-time recovery (PITR), the plans (Pro 7 days, Business and Enterprise 30 days) and that Free and Starter do not have it. - The restore window starts at the earliest retained backup. - Drop the undefined "remote databases" line. - Say a failed restore can leave an incomplete new database. - Use the same name on the backups note and the Postgres overview. Co-Authored-By: Claude Opus 5.5 --- .../docs/postgres/database/backups.mdx | 2 +- .../database/point-in-time-recovery.mdx | 38 +++++++++---------- apps/docs/content/docs/postgres/index.mdx | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/apps/docs/content/docs/postgres/database/backups.mdx b/apps/docs/content/docs/postgres/database/backups.mdx index b18c76940db..e6dd25c1efb 100644 --- a/apps/docs/content/docs/postgres/database/backups.mdx +++ b/apps/docs/content/docs/postgres/database/backups.mdx @@ -25,7 +25,7 @@ To recover rows that were deleted by mistake without overwriting newer data, [re For more details about backup availability and plan-specific features, visit our [pricing page](https://www.prisma.io/pricing). :::note -To restore a database to a time you choose, rather than to a daily snapshot, use [point in time recovery](/postgres/database/point-in-time-recovery). It is available on the Pro, Business, and Enterprise plans. +To restore a database to a time you choose, rather than to a daily snapshot, use [point-in-time recovery (PITR)](/postgres/database/point-in-time-recovery), on Pro (7 days) and Business and Enterprise (30 days). ::: ## Restoring a backup diff --git a/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx b/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx index f71be0a2fb2..d03b52967a8 100644 --- a/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx +++ b/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx @@ -1,36 +1,36 @@ --- -title: Point in time recovery -description: Restore a Prisma Postgres database to a new database, as it was at a time you choose, in Console, the REST API, or MCP tools. -metaTitle: Point in time recovery | Prisma Postgres -metaDescription: Restore a Prisma Postgres database to any time in its restore window. See the window for each plan, how to restore in Console, the REST API, and MCP tools, and what happens while the restore runs. +title: Point-in-time recovery (PITR) +description: "Point-in-time recovery (PITR) for Prisma Postgres: restore to a timestamp in the last 7 days on Pro or 30 days on Business and Enterprise, into a new database." +metaTitle: "Point-in-time recovery (PITR) for Prisma Postgres: 7 or 30 days" +metaDescription: Prisma Postgres point-in-time recovery (PITR) restores a database to any timestamp in the last 7 days (Pro) or 30 days (Business, Enterprise), into a new database. Not on Free or Starter. Console, REST API and MCP. url: /postgres/database/point-in-time-recovery --- -Point in time recovery (PITR) restores the data of a Prisma Postgres database to a new database, as it was at a time you choose. Use it to get back rows that were deleted or changed by mistake. Unlike a [backup](/postgres/database/backups), it is not limited to the times of daily snapshots. +Prisma Postgres supports point-in-time recovery (PITR) on Pro (7 days) and on Business and Enterprise (30 days). It is not available on Free or Starter. + +Point-in-time recovery (PITR) restores a Prisma Postgres database to a timestamp you choose, into a new database. Use it to get back rows that were deleted or changed by mistake. Unlike a [backup](/postgres/database/backups), it is not limited to the times of daily snapshots. For example, if a migration deleted a column at 14:05, restore the database as it was at 14:04. Then copy the data you need back into the original database. The restore always creates a new database. The original database is not changed, and your app keeps using it while the restore runs. -## Plans and restore window +## Which plans have PITR, and how far back can you restore -Point in time recovery is available on the Pro, Business, and Enterprise plans. The restore window is how far back you can go: +Point-in-time recovery is available on the Pro, Business, and Enterprise plans. The restore window is how far back you can go: -| Plan | Restore window | -| ---------- | -------------- | -| Pro | Last 7 days | -| Business | Last 30 days | -| Enterprise | Last 30 days | +| Plan | Restore window | +| ---------- | ------------------------------------------------- | +| Pro | Up to 7 days, from your earliest retained backup | +| Business | Up to 30 days, from your earliest retained backup | +| Enterprise | Up to 30 days, from your earliest retained backup | -The newest time you can choose is 10 minutes ago. The oldest time can be later than the start of the window: +The newest time you can choose is 10 minutes ago. The oldest time is your earliest retained backup, so it can be later than the start of the window: - A new database can be restored only after its first backup has finished. - After you [restore a backup](/postgres/database/backups#restoring-a-backup) in place, you can only restore to times after the next backup that finishes. -- Some older databases do not support point in time recovery. Console says so on the database's **Point in time** page. - -Remote databases do not support point in time recovery. +- Some older databases do not support point-in-time recovery. Console says so on the database's **Point in time** page. -## Restore a database in Console +## Restore to a point in time in Console To restore a database, you need the Admin role, or the Developer role with access to the project. See [Workspace roles and project access](/console/workspace-access). @@ -52,7 +52,7 @@ A restore can take several hours for a large database. While it runs: - The sidebar shows only **Dashboard** and **Settings** for the new database. You cannot open Studio, Queries, or connection strings until the restore finishes. - On **Settings**, you cannot rename the database. For the first few minutes, you cannot delete it either. Console shows **This restore is still starting** until the delete is possible. -When the restore finishes, Prisma sends an email to the Admins and Developers who can access the project. If the restore fails, the email says so and links to the **Point in time** page, where you can try again. A restore that has not finished after 24 hours is marked as failed. +When the restore finishes, Prisma sends an email to the Admins and Developers who can access the project. If the restore fails, the email says so and links to the **Point in time** page, where you can try again. A failed restore can leave the new database incomplete. Open it from the email to keep or delete it. A restore that has not finished after 24 hours is marked as failed. ## Use the restored data @@ -71,7 +71,7 @@ The REST API and [MCP tools](/ai/mcp-tools) use the same restore window as Conso **REST API** -1. Call [`GET /v1/databases/{databaseId}/backups/pitr`](/rest-api/endpoints/database-backups/get-databases-by-database-id-backups-pitr) to read the oldest and newest times you can restore to. `window` is `null` when no time is available, and `meta.availableOnPlan` is `false` when your plan does not include point in time recovery. +1. Call [`GET /v1/databases/{databaseId}/backups/pitr`](/rest-api/endpoints/database-backups/get-databases-by-database-id-backups-pitr) to read the oldest and newest times you can restore to. `window` is `null` when no time is available, and `meta.availableOnPlan` is `false` when your plan does not include point-in-time recovery. 2. Call [`POST /v1/projects/{projectId}/databases`](/rest-api/endpoints/databases/post-projects-by-project-id-databases) with a `source` of type `pitr`: ```json diff --git a/apps/docs/content/docs/postgres/index.mdx b/apps/docs/content/docs/postgres/index.mdx index ccb6f01f2b4..23d1de66af1 100644 --- a/apps/docs/content/docs/postgres/index.mdx +++ b/apps/docs/content/docs/postgres/index.mdx @@ -127,7 +127,7 @@ Each Prisma Postgres database includes the following, with no extra services to - **Connection pooling**: a dedicated PgBouncer instance runs alongside your database, with nothing to set up or manage. It also works for serverless and edge deployments. See [Connection pooling](/postgres/database/connection-pooling). - **Edge and serverless support**: connect from Cloudflare Workers, Vercel Functions on the Edge runtime, and other edge runtimes via the [serverless driver](/postgres/database/serverless-driver), which uses HTTP instead of TCP. - **Automated backups** (Starter, Pro, and Business plans): daily snapshots, taken only on days the database has activity, kept for 7 or 30 days depending on the plan. The Console restores one in place, keeping the connection strings, or into a new database; the Prisma CLI and the REST API's restore endpoint restore in place, and the REST API and the MCP server can also restore into a new database. See [Backups](/postgres/database/backups). -- **Point in time recovery** (Pro, Business, and Enterprise plans): restore a database to a new database, as it was at a time you choose in the last 7 or 30 days. See [Point in time recovery](/postgres/database/point-in-time-recovery). +- **Point-in-time recovery (PITR)** (Pro, Business, and Enterprise plans): restore a database to a new database, as it was at a time you choose in the last 7 or 30 days. See [Point-in-time recovery](/postgres/database/point-in-time-recovery). ## Local development From 53d4404554ce4969b30c288a0050e90f2bc40fa6 Mon Sep 17 00:00:00 2001 From: Gregory Boch Date: Wed, 2 Dec 2026 20:05:48 +0900 Subject: [PATCH 3/5] docs(postgres): cover every plan in the point-in-time recovery table Free has no backups. Starter has daily backups kept 7 days and restores to a daily snapshot, not to a time you choose; its row links to the backups page. Pro has PITR for 7 days, Business and Enterprise for 30. Co-Authored-By: Claude Opus 5.5 --- .../postgres/database/point-in-time-recovery.mdx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx b/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx index d03b52967a8..c3457e65a8f 100644 --- a/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx +++ b/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx @@ -16,15 +16,17 @@ The restore always creates a new database. The original database is not changed, ## Which plans have PITR, and how far back can you restore -Point-in-time recovery is available on the Pro, Business, and Enterprise plans. The restore window is how far back you can go: +Point-in-time recovery is available on the Pro, Business, and Enterprise plans. On those plans, the restore window is how far back you can go. Free and Starter do not have point-in-time recovery: -| Plan | Restore window | -| ---------- | ------------------------------------------------- | -| Pro | Up to 7 days, from your earliest retained backup | -| Business | Up to 30 days, from your earliest retained backup | -| Enterprise | Up to 30 days, from your earliest retained backup | +| Plan | Point-in-time recovery | What you can restore | +| ---------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Free | No | Nothing. The Free plan has no backups. | +| Starter | No | A [daily backup](/postgres/database/backups), kept 7 days and taken on days the database has activity. You restore to a daily snapshot, not to a time you choose. | +| Pro | Yes | Any time in the last 7 days, from your earliest retained backup | +| Business | Yes | Any time in the last 30 days, from your earliest retained backup | +| Enterprise | Yes | Any time in the last 30 days, from your earliest retained backup | -The newest time you can choose is 10 minutes ago. The oldest time is your earliest retained backup, so it can be later than the start of the window: +On Pro, Business, and Enterprise, the newest time you can choose is 10 minutes ago. The oldest time is your earliest retained backup, so it can be later than the start of the window: - A new database can be restored only after its first backup has finished. - After you [restore a backup](/postgres/database/backups#restoring-a-backup) in place, you can only restore to times after the next backup that finishes. From e3d89293b38cbab2982bd698c096662a6d65de88 Mon Sep 17 00:00:00 2001 From: Gregory Boch Date: Thu, 3 Dec 2026 17:59:55 +0900 Subject: [PATCH 4/5] docs: Vercel-workspace cleanup, PITR MCP tools and the tutorial backups line - The point-in-time recovery page says how to delete the restored database in a workspace created through the Vercel integration. - The MCP tools reference lists get_prisma_postgres_pitr_window and says create_prisma_postgres_recovery also restores to a point in time. - The full-stack tutorial no longer says Prisma Postgres cannot restore to an earlier point in time. Co-Authored-By: Claude Opus 5.5 --- apps/docs/content/docs/(index)/full-stack-tutorial.mdx | 2 +- apps/docs/content/docs/ai/mcp-tools.mdx | 3 ++- .../content/docs/postgres/database/point-in-time-recovery.mdx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/docs/content/docs/(index)/full-stack-tutorial.mdx b/apps/docs/content/docs/(index)/full-stack-tutorial.mdx index 8b950b5d04a..4691c3698a5 100644 --- a/apps/docs/content/docs/(index)/full-stack-tutorial.mdx +++ b/apps/docs/content/docs/(index)/full-stack-tutorial.mdx @@ -44,7 +44,7 @@ Prisma ORM is optional on both products: Prisma Postgres works with any PostgreS | Direct connections, per database | 45 | | Automated backups | None | -Each SQL statement your app sends is one operation, whether it reads or writes, and `BEGIN` and `COMMIT` count too. See [What is an operation?](/postgres/faq#what-is-an-operation). Direct connections are the ones PostgreSQL tools such as `pg_dump` open. On Free, each database allows up to 45 of them, plus 500 pooled connections: each database has 50 Postgres connections, 5 are reserved for Prisma's internal admin access, and the pooler's own connections to Postgres (up to 25) count against the 45, so a busy pooler leaves 20 for direct connections. Connection limits are per database, not shared across the workspace; see [Connection limits](/postgres/database/connection-pooling#connection-limits). The Free plan has no automated backups, and Prisma Postgres cannot yet restore a database to an earlier point in time, so keep your own copies with `pg_dump`, the PostgreSQL command-line backup tool, over a direct connection. See [Backups](/postgres/database/backups). +Each SQL statement your app sends is one operation, whether it reads or writes, and `BEGIN` and `COMMIT` count too. See [What is an operation?](/postgres/faq#what-is-an-operation). Direct connections are the ones PostgreSQL tools such as `pg_dump` open. On Free, each database allows up to 45 of them, plus 500 pooled connections: each database has 50 Postgres connections, 5 are reserved for Prisma's internal admin access, and the pooler's own connections to Postgres (up to 25) count against the 45, so a busy pooler leaves 20 for direct connections. Connection limits are per database, not shared across the workspace; see [Connection limits](/postgres/database/connection-pooling#connection-limits). The Free plan has no automated backups, and [point-in-time recovery](/postgres/database/point-in-time-recovery) is on the Pro, Business and Enterprise plans only, so on Free keep your own copies with `pg_dump`, the PostgreSQL command-line backup tool, over a direct connection. See [Backups](/postgres/database/backups). ### Prisma Compute diff --git a/apps/docs/content/docs/ai/mcp-tools.mdx b/apps/docs/content/docs/ai/mcp-tools.mdx index 4612cfeaa5f..9cde2153d6e 100644 --- a/apps/docs/content/docs/ai/mcp-tools.mdx +++ b/apps/docs/content/docs/ai/mcp-tools.mdx @@ -30,7 +30,8 @@ Tools that change or delete resources can cause data loss or interrupt live traf ## Backups and recovery - `list_prisma_postgres_backups`: List available automated backups for a Prisma Postgres database. -- `create_prisma_postgres_recovery`: Restore a Prisma Postgres database to a new database with the given backup id. +- `get_prisma_postgres_pitr_window`: Get the oldest and newest time a Prisma Postgres database can be restored to with [point-in-time recovery](/postgres/database/point-in-time-recovery). It needs the Pro, Business or Enterprise plan. +- `create_prisma_postgres_recovery`: Restore a Prisma Postgres database into a new database, from a backup id or, with `targetTime`, as it was at a point in time. ## Schema and queries diff --git a/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx b/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx index c3457e65a8f..ae464a2f64c 100644 --- a/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx +++ b/apps/docs/content/docs/postgres/database/point-in-time-recovery.mdx @@ -65,7 +65,7 @@ The new database has its own connection strings. The connection strings of the o [Recover deleted records from a hosted Postgres database](https://www.prisma.io/postgres/recover-deleted-records) walks through copying rows back. -When you no longer need the new database, delete it from its **Settings** page. If the database is on a branch that [Delete Protection](/console/delete-protection) covers, turn off **Data** first. +When you no longer need the new database, delete it from its **Settings** page. If the database is on a branch that [Delete Protection](/console/delete-protection) covers, turn off **Data** first. In a workspace created through the Vercel integration, the Console can't delete it: use the Prisma CLI or the REST API, as described in [Deleting a restored copy in a Vercel workspace](/postgres/database/backups#deleting-a-restored-copy-in-a-vercel-workspace). ## Restore with the REST API or MCP tools From 13de90ff133d75b173d0f6b403a992f069ccd1a0 Mon Sep 17 00:00:00 2001 From: Gregory Boch Date: Thu, 3 Dec 2026 18:07:19 +0900 Subject: [PATCH 5/5] site, docs: list the PITR MCP tools on the MCP server card The MCP server card and the MCP tools reference must list the same tools with the same descriptions. Add get_prisma_postgres_pitr_window to the card, update create_prisma_postgres_recovery to match, and keep the reference description link-free so both read the same. Co-Authored-By: Claude Opus 5.5 --- apps/docs/content/docs/ai/mcp-tools.mdx | 2 +- apps/site/src/lib/agent-skills.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/docs/ai/mcp-tools.mdx b/apps/docs/content/docs/ai/mcp-tools.mdx index 9cde2153d6e..1257a70a3df 100644 --- a/apps/docs/content/docs/ai/mcp-tools.mdx +++ b/apps/docs/content/docs/ai/mcp-tools.mdx @@ -30,7 +30,7 @@ Tools that change or delete resources can cause data loss or interrupt live traf ## Backups and recovery - `list_prisma_postgres_backups`: List available automated backups for a Prisma Postgres database. -- `get_prisma_postgres_pitr_window`: Get the oldest and newest time a Prisma Postgres database can be restored to with [point-in-time recovery](/postgres/database/point-in-time-recovery). It needs the Pro, Business or Enterprise plan. +- `get_prisma_postgres_pitr_window`: Get the oldest and newest time a Prisma Postgres database can be restored to with point-in-time recovery. It needs the Pro, Business or Enterprise plan. - `create_prisma_postgres_recovery`: Restore a Prisma Postgres database into a new database, from a backup id or, with `targetTime`, as it was at a point in time. ## Schema and queries diff --git a/apps/site/src/lib/agent-skills.ts b/apps/site/src/lib/agent-skills.ts index e20e6fa7306..658c4cdec61 100644 --- a/apps/site/src/lib/agent-skills.ts +++ b/apps/site/src/lib/agent-skills.ts @@ -54,9 +54,15 @@ export const MCP_TOOLS: { name: string; description: string }[] = [ name: "list_prisma_postgres_backups", description: "List available automated backups for a Prisma Postgres database.", }, + { + name: "get_prisma_postgres_pitr_window", + description: + "Get the oldest and newest time a Prisma Postgres database can be restored to with point-in-time recovery. It needs the Pro, Business or Enterprise plan.", + }, { name: "create_prisma_postgres_recovery", - description: "Restore a Prisma Postgres database to a new database with the given backup id.", + description: + "Restore a Prisma Postgres database into a new database, from a backup id or, with `targetTime`, as it was at a point in time.", }, { name: "introspect_database_schema",