@slatesvideo/mcp-server 0.1.0 → 0.3.0

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 ADDED
@@ -0,0 +1,78 @@
1
+ # @slatesvideo/mcp-server
2
+
3
+ MCP server for the [Slates](https://slates.video) desktop app. Your AI agent (Claude, Cursor, or any MCP client) drives a local video studio: it creates projects, builds characters and storyboards, generates images and videos, and organizes assets. Files land on disk, and the Slates app updates live as the agent works.
4
+
5
+ ## Requirements
6
+
7
+ - The Slates desktop app, installed and running. Get it at [slates.video](https://slates.video).
8
+ - Node.js 18 or newer.
9
+
10
+ ## Claude Desktop
11
+
12
+ Add this to your config file:
13
+
14
+ ```json
15
+ {
16
+ "mcpServers": {
17
+ "slates": {
18
+ "command": "npx",
19
+ "args": ["-y", "@slatesvideo/mcp-server"]
20
+ }
21
+ }
22
+ }
23
+ ```
24
+
25
+ Config file locations:
26
+
27
+ - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
28
+ - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
29
+
30
+ Restart Claude Desktop. The Slates tools appear in the tool palette.
31
+
32
+ ## Claude Code
33
+
34
+ One command:
35
+
36
+ ```bash
37
+ claude mcp add slates -- npx -y @slatesvideo/mcp-server
38
+ ```
39
+
40
+ Tip: with Claude Code you can skip the MCP server entirely and use the CLI instead (`npm i -g @slatesvideo/cli`), which keeps the tool schemas out of your context window. See [@slatesvideo/cli](https://www.npmjs.com/package/@slatesvideo/cli).
41
+
42
+ ## Cursor
43
+
44
+ Add the same entry to `~/.cursor/mcp.json`:
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "slates": {
50
+ "command": "npx",
51
+ "args": ["-y", "@slatesvideo/mcp-server"]
52
+ }
53
+ }
54
+ }
55
+ ```
56
+
57
+ ## Connecting your account
58
+
59
+ The server reads its credentials from `~/.slates/agent-connection.json`. Two ways to create it:
60
+
61
+ 1. In the Slates app: **Settings → Agent Control → enter your email → Send link**. Click the link in your email. Done.
62
+ 2. From a terminal: `npx @slatesvideo/cli login`.
63
+
64
+ No environment variables, no API keys to paste into config files.
65
+
66
+ ## What the agent can do
67
+
68
+ 64 tools covering the full workspace: project, folder, character, environment, style, and storyboard management (create / update / delete), image generation and surgical image editing (Nano Banana 2, FLUX.2 Max, Seedream 5 Lite — with project-asset reference images), video generation (Kling V3, Veo 3.1, Seedance 2.0), lip sync, motion transfer, background generation with status polling, timeline assembly (add / reorder / remove clips), MP4 export and FCP7 XML export for DaVinci Resolve, cost estimation, and credit balance. Bundled prompting/workflow guides are readable at runtime via the `slates_get_prompting_guide` tool — no skill installation needed for MCP-only clients.
69
+
70
+ Generation tools estimate cost first and ask for confirmation on anything over $0.50, so the agent cannot silently burn credits.
71
+
72
+ The timeline, export, background-generation, edit-image, and image-reference tools require a Slates desktop on agent API v2 — if a tool reports a version error, update Slates (Settings → Check for Updates) and retry.
73
+
74
+ ## Links
75
+
76
+ - Website: [slates.video](https://slates.video)
77
+ - Source: [github.com/EricDisero/slates-mcp](https://github.com/EricDisero/slates-mcp)
78
+ - Issues: [github.com/EricDisero/slates-mcp/issues](https://github.com/EricDisero/slates-mcp/issues)
package/dist/server.js CHANGED
@@ -3,6 +3,9 @@ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
3
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
4
  import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
5
5
  import { zodToJsonSchema } from 'zod-to-json-schema';
6
+ import { readFileSync } from 'node:fs';
7
+ import { join, dirname } from 'node:path';
8
+ import { fileURLToPath } from 'node:url';
6
9
  import { ALL_OPERATIONS, defaultContext, } from '@slatesvideo/shared';
7
10
  // Slates MCP server. Stdio transport. Wires every operation in
8
11
  // @slatesvideo/shared as an MCP tool. Both the desktop server and the
@@ -16,7 +19,10 @@ import { ALL_OPERATIONS, defaultContext, } from '@slatesvideo/shared';
16
19
  // to their Claude / Cursor / Claude Desktop / ChatGPT MCP config.
17
20
  const ops = ALL_OPERATIONS;
18
21
  const opsById = new Map(ops.map((o) => [o.id, o]));
19
- const server = new Server({ name: 'slates-studio', version: '0.1.0' }, { capabilities: { tools: {} } });
22
+ // Version comes from this package's own package.json (dist/server.js →
23
+ // ../package.json) so the reported version never drifts from the publish.
24
+ const pkg = JSON.parse(readFileSync(join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json'), 'utf8'));
25
+ const server = new Server({ name: 'slates-studio', version: pkg.version }, { capabilities: { tools: {} } });
20
26
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
21
27
  tools: ops.map((op) => ({
22
28
  name: op.id,
package/package.json CHANGED
@@ -1,26 +1,57 @@
1
1
  {
2
2
  "name": "@slatesvideo/mcp-server",
3
- "version": "0.1.0",
4
- "description": "MCP server for Slates — drive AI Video Creation Studio from Claude, Cursor, or any MCP client.",
5
- "license": "UNLICENSED",
3
+ "version": "0.3.0",
4
+ "description": "MCP server for the Slates desktop app. Your AI agent (Claude, Cursor, or any MCP client) drives a local AI video studio: projects, characters, storyboards, image and video generation. Files land on disk.",
5
+ "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {
8
8
  "slates-mcp-server": "./dist/server.js"
9
9
  },
10
10
  "main": "./dist/server.js",
11
- "files": ["dist", "README.md"],
11
+ "files": ["dist", "!dist/**/*.map", "README.md"],
12
12
  "scripts": {
13
13
  "build": "tsc",
14
14
  "start": "node dist/server.js",
15
- "typecheck": "tsc --noEmit"
15
+ "typecheck": "tsc --noEmit",
16
+ "prepublishOnly": "npm run build",
17
+ "build:mcpb": "npm run build --prefix ../shared && npm run build && node scripts/stage-mcpb.mjs && mcpb pack dist-mcpb/staging dist-mcpb/slates.mcpb"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/EricDisero/slates-mcp.git",
22
+ "directory": "packages/mcp"
23
+ },
24
+ "homepage": "https://slates.video",
25
+ "bugs": {
26
+ "url": "https://github.com/EricDisero/slates-mcp/issues"
27
+ },
28
+ "keywords": [
29
+ "mcp",
30
+ "model-context-protocol",
31
+ "mcp-server",
32
+ "ai-video",
33
+ "video-generation",
34
+ "image-generation",
35
+ "claude",
36
+ "claude-desktop",
37
+ "cursor",
38
+ "slates",
39
+ "veo",
40
+ "kling",
41
+ "seedance",
42
+ "storyboard"
43
+ ],
44
+ "engines": {
45
+ "node": ">=18"
16
46
  },
17
47
  "dependencies": {
18
48
  "@modelcontextprotocol/sdk": "^1.0.0",
19
- "@slatesvideo/shared": "0.1.0",
49
+ "@slatesvideo/shared": "0.3.0",
20
50
  "zod": "^3.23.0",
21
51
  "zod-to-json-schema": "^3.23.0"
22
52
  },
23
53
  "devDependencies": {
54
+ "@anthropic-ai/mcpb": "^2.1.2",
24
55
  "@types/node": "^20.0.0",
25
56
  "typescript": "^5.7.0"
26
57
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EACL,cAAc,EACd,cAAc,GAEf,MAAM,qBAAqB,CAAA;AAE5B,+DAA+D;AAC/D,sEAAsE;AACtE,wDAAwD;AACxD,qEAAqE;AACrE,qEAAqE;AACrE,8CAA8C;AAC9C,EAAE;AACF,oEAAoE;AACpE,EAAE;AACF,kEAAkE;AAElE,MAAM,GAAG,GAAG,cAA+C,CAAA;AAC3D,MAAM,OAAO,GAAG,IAAI,GAAG,CAA6B,GAAG,CAAC,GAAG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