Skip to content

🎥 Make videos programmatically with React

newest AI stuff

Jonny Burger566ba4472bc3
diff --git a/.cursor/mcp.json b/.cursor/mcp.json
new file mode 100644
index 0000000000..6f8917c69c
--- /dev/null
+++ b/.cursor/mcp.json
@@ -0,0 +1,10 @@
+{
+ "mcpServers": {
+ "remotion-documentation-own": {
+ "command": "npx",
+ "args": [
+ "@remotion/mcp@latest"
+ ]
+ }
+ }
+}
diff --git a/packages/docs/docs/ai/mcp.mdx b/packages/docs/docs/ai/mcp.mdx
index 9f90b0fa1c..99060c6c87 100644
--- a/packages/docs/docs/ai/mcp.mdx
+++ b/packages/docs/docs/ai/mcp.mdx
@@ -17,11 +17,20 @@ To set it up:
<Step>1</Step> Go to your Cursor Settings: <kbd>Cmd+Ctrl</kbd> + <kbd>P</kbd>, then type `> Cursor Settings` and confirm with Enter.
-<Step>2</Step> Add an MCP with the following settings:
-
-- **Name**: remotion-documentation
-- **Command**: `npx @remotion/mcp@latest`
-- **Type**: Command
+<Step>2</Step> Add an MCP:
+
+```json
+{
+ "mcpServers": {
+ "remotion-documentation": {
+ "command": "npx",
+ "args": [
+ "@remotion/mcp@latest"
+ ]
+ }
+ }
+}
+```
If this worked, a green dot should show up and the tool `remotion-documentation` should show up.
diff --git a/packages/docs/src/pages/ai-embed.tsx b/packages/docs/src/pages/ai-embed.tsx
index 29fca7cf7d..d6aebfcc3f 100644
--- a/packages/docs/src/pages/ai-embed.tsx
+++ b/packages/docs/src/pages/ai-embed.tsx
@@ -49,6 +49,7 @@ export default () => {
height: '100%',
position: 'absolute',
}}
+ allow="clipboard-read; clipboard-write"
/>
);
};
diff --git a/packages/docs/src/pages/ai.tsx b/packages/docs/src/pages/ai.tsx
index 4309b66b08..03ba565dae 100644
--- a/packages/docs/src/pages/ai.tsx
+++ b/packages/docs/src/pages/ai.tsx
@@ -11,6 +11,7 @@ export default () => {
height: 800,
maxHeight: '80vh',
}}
+ allow="clipboard-read; clipboard-write"
/>
</Layout>
);
diff --git a/packages/studio/src/components/AskAiModal.tsx b/packages/studio/src/components/AskAiModal.tsx
index fbefb886d8..157f502ded 100644
--- a/packages/studio/src/components/AskAiModal.tsx
+++ b/packages/studio/src/components/AskAiModal.tsx
@@ -102,6 +102,7 @@ export const AskAiModal: React.FC = () => {
frameBorder={0}
style={container}
src="https://www.remotion.dev/ai-embed"
+ allow="clipboard-read; clipboard-write"
/>
</ModalContainer>
</AbsoluteFill>