🎥 Make videos programmatically with React
actually fix
Jonny Burger4a91929532a1
diff --git a/bun.lock b/bun.lockindex d93ef98315..712c114150 100644--- a/bun.lock+++ b/bun.lock@@ -896,7 +896,7 @@},"dependencies": {"@modelcontextprotocol/sdk": "1.25.2",- "zod": "3.24.2",+ "zod": "4.3.5",},"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-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ=="],+ "@remotion/mcp/zod": ["[email protected]", "", {}, "sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g=="],"@remotion/promo-pages/hls.js": ["[email protected]", "", {}, "sha512-C020dKWEJcyvLnrqsFKW4q6D/6IEzKWdhktIS5bgoyEFE8lHgrFBq4RIngdy113abJOlIruhv8qjg7UX8hwxOw=="],diff --git a/packages/mcp/package.json b/packages/mcp/package.jsonindex bc38989a1f..fc649c9741 100644--- a/packages/mcp/package.json+++ b/packages/mcp/package.json@@ -25,7 +25,7 @@"license": "MIT","dependencies": {"@modelcontextprotocol/sdk": "1.25.2",- "zod": "3.24.2"+ "zod": "4.3.5"},"peerDependencies": {},"devDependencies": {diff --git a/packages/mcp/src/index.ts b/packages/mcp/src/index.tsindex bf40426ddf..14c7948f69 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, type ZodRawShape} from 'zod';+import {z} from 'zod';const HOST = 'https://mcp.remotion.dev';@@ -11,22 +11,25 @@ const server = new McpServer({version: '1.0.0',});-const toolSchema = {- query: z.string().describe('The query to search for. Keep it short and concise.'),-} satisfies ZodRawShape;--(server.tool as Function)(+server.registerTool('remotion-documentation',- 'Search the Remotion documentation',- toolSchema,+ {+ title: 'Search the Remotion documentation',+ description: 'Search the Remotion documentation',+ inputSchema: z.object({+ query: z.string({+ description: 'The query to search for. Keep it short and concise.',+ }),+ }),+ outputSchema: z.object({+ content: z.array(z.object({type: z.literal('text'), text: z.string()})),+ }),+ },async ({query}: {query: string}) => {const res = await fetch(`${HOST}/mcp/67cad4626afeae106c6ffb50?query=${query}`,);-- return {- content: [{type: 'text' as const, text: await res.text()}],- };+ return {content: [{type: 'text' as const, text: await res.text()}]};},);