Skip to content

🎥 Make videos programmatically with React

this shall work

Jonny Burger5d8608ad5c97
diff --git a/bun.lock b/bun.lock
index 712c114150..05644783d9 100644
--- a/bun.lock
+++ b/bun.lock
@@ -896,7 +896,7 @@
},
"dependencies": {
"@modelcontextprotocol/sdk": "1.25.2",
- "zod": "4.3.5",
+ "zod": "4.1.13",
},
"devDependencies": {
"@remotion/eslint-config-internal": "workspace:*",
@@ -8173,7 +8173,7 @@
"@remotion/lambda-client/@types/express": ["@types/[email protected]", "", { "dependencies": { "@types/body-parser": "1.19.1", "@types/express-serve-static-core": "5.0.4", "@types/serve-static": "1.13.10" } }, "sha512-UZUw8vjpWFXuDnjFTh7/5c2TWDlQqeXHi6hcN7F2XSVT5P+WmUnnbFS3KA6Jnc6IsEqI2qCVu2bK0R0J4A8ZQQ=="],
- "@remotion/mcp/zod": ["[email protected]", "", {}, "sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g=="],
+ "@remotion/mcp/zod": ["[email protected]", "", {}, "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig=="],
"@remotion/promo-pages/hls.js": ["[email protected]", "", {}, "sha512-C020dKWEJcyvLnrqsFKW4q6D/6IEzKWdhktIS5bgoyEFE8lHgrFBq4RIngdy113abJOlIruhv8qjg7UX8hwxOw=="],
diff --git a/packages/mcp/package.json b/packages/mcp/package.json
index fc649c9741..beea7c792a 100644
--- a/packages/mcp/package.json
+++ b/packages/mcp/package.json
@@ -25,7 +25,7 @@
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "1.25.2",
- "zod": "4.3.5"
+ "zod": "4.1.13"
},
"peerDependencies": {},
"devDependencies": {
diff --git a/packages/mcp/src/index.ts b/packages/mcp/src/index.ts
index 14c7948f69..ff5a3d7adc 100644
--- a/packages/mcp/src/index.ts
+++ b/packages/mcp/src/index.ts
@@ -2,7 +2,7 @@
import {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js';
import {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js';
-import {z} from 'zod';
+import * as z from 'zod/v4';
const HOST = 'https://mcp.remotion.dev';
@@ -16,14 +16,14 @@ server.registerTool(
{
title: 'Search the Remotion documentation',
description: 'Search the Remotion documentation',
- inputSchema: z.object({
+ inputSchema: {
query: z.string({
- description: 'The query to search for. Keep it short and concise.',
+ message: 'The query to search for. Keep it short and concise.',
}),
- }),
- outputSchema: z.object({
+ },
+ outputSchema: {
content: z.array(z.object({type: z.literal('text'), text: z.string()})),
- }),
+ },
},
async ({query}: {query: string}) => {
const res = await fetch(