@remotion/mcp 4.0.273
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/esm/index.mjs +31 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +26 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @remotion/mcp
|
|
2
|
+
|
|
3
|
+
Remotion's Model Context Protocol
|
|
4
|
+
|
|
5
|
+
[](https://npmcharts.com/compare/@remotion/mcp?minimal=true)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @remotion/mcp --save-exact
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
|
|
14
|
+
Remove the `^` character from the version number to use the exact version.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
See the [documentation](https://www.remotion.dev/docs/ai/mcp) for more information.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
|
+
import {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
6
|
+
import {z} from 'zod';
|
|
7
|
+
|
|
8
|
+
var HOST = 'https://mcp.remotion.dev';
|
|
9
|
+
var server = new McpServer({
|
|
10
|
+
name: 'remotion-mcp',
|
|
11
|
+
version: '1.0.0',
|
|
12
|
+
});
|
|
13
|
+
server.tool(
|
|
14
|
+
'remotion',
|
|
15
|
+
{
|
|
16
|
+
query: z.string({
|
|
17
|
+
description: 'The query to search for. Keep it short and concise.',
|
|
18
|
+
}),
|
|
19
|
+
},
|
|
20
|
+
async function ({query}) {
|
|
21
|
+
const res = await fetch(
|
|
22
|
+
`${HOST}/mcp/67cad4626afeae106c6ffb50?query=${query}`,
|
|
23
|
+
);
|
|
24
|
+
return {
|
|
25
|
+
content: [{type: 'text', text: await res.text()}],
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
var transport = new StdioServerTransport();
|
|
31
|
+
await server.connect(transport);
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
|
+
import commandLineArgs from 'command-line-args';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
const HOST = 'https://mcp.remotion.dev';
|
|
7
|
+
const options = commandLineArgs([
|
|
8
|
+
{ name: 'id', alias: 'i', type: String },
|
|
9
|
+
{ name: 'name', alias: 'n', type: String },
|
|
10
|
+
]);
|
|
11
|
+
const server = new McpServer({
|
|
12
|
+
name: 'remotion-mcp',
|
|
13
|
+
version: '1.0.0',
|
|
14
|
+
});
|
|
15
|
+
server.tool(options.name, {
|
|
16
|
+
query: z.string({
|
|
17
|
+
description: 'The query to search for. Keep it short and concise.',
|
|
18
|
+
}),
|
|
19
|
+
}, async function ({ query }) {
|
|
20
|
+
const res = await fetch(`${HOST}/mcp/${options.id}?query=${query}`);
|
|
21
|
+
return {
|
|
22
|
+
content: [{ type: 'text', text: await res.text() }],
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
const transport = new StdioServerTransport();
|
|
26
|
+
await server.connect(transport);
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repository": {
|
|
3
|
+
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/mcp"
|
|
4
|
+
},
|
|
5
|
+
"name": "@remotion/mcp",
|
|
6
|
+
"version": "4.0.273",
|
|
7
|
+
"description": "Remotion's Model Context Protocol",
|
|
8
|
+
"main": "dist/esm/index.mjs",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"type": "module",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"remotion-mcp": "./dist/esm/index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"lint": "eslint src",
|
|
19
|
+
"make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"author": "Jonny Burger <jonny@remotion.dev>, Pramod Kumar <pramodkumar.damam73@gmail.com>",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@modelcontextprotocol/sdk": "1.5.0",
|
|
28
|
+
"zod": "3.24.2"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@remotion/eslint-config-internal": "workspace:*",
|
|
33
|
+
"eslint": "9.19.0",
|
|
34
|
+
"@types/command-line-args": "^5.2.3"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"remotion",
|
|
38
|
+
"mcp"
|
|
39
|
+
],
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://www.remotion.dev/docs/ai/mcp",
|
|
44
|
+
"exports": {
|
|
45
|
+
"./package.json": "./package.json",
|
|
46
|
+
".": {
|
|
47
|
+
"types": "./dist/index.d.ts",
|
|
48
|
+
"require": "./dist/index.js",
|
|
49
|
+
"module": "./dist/esm/index.mjs",
|
|
50
|
+
"import": "./dist/esm/index.mjs"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|