@slatesvideo/mcp-server 0.5.21 → 0.6.1
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 +17 -4
- package/dist/server.js +29 -8
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @slatesvideo/mcp-server
|
|
2
2
|
|
|
3
|
-
MCP server for the [Slates](https://slates.video) desktop app. Your AI agent (ChatGPT via Codex, Claude, Cursor, or another local MCP client) drives a local video studio: it creates projects, builds characters and
|
|
3
|
+
MCP server for the [Slates](https://slates.video) desktop app. Your AI agent (ChatGPT via Codex, Claude, Cursor, or another local MCP client) drives a local video studio: it creates projects, builds characters and boards, generates images and videos, and organizes assets. Files land on disk, and the Slates app updates live as the agent works.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -68,16 +68,16 @@ Add the same entry to `~/.cursor/mcp.json`:
|
|
|
68
68
|
|
|
69
69
|
The server reads its credentials from `~/.slates/agent-connection.json`. Two ways to create it:
|
|
70
70
|
|
|
71
|
-
1. In the Slates app: **Settings →
|
|
71
|
+
1. In the Slates app: **Settings → AI tools → enter your email → Send link**. Click the link in your email. Done.
|
|
72
72
|
2. From a terminal: `npx @slatesvideo/cli login`.
|
|
73
73
|
|
|
74
74
|
No environment variables, no API keys to paste into config files.
|
|
75
75
|
|
|
76
76
|
## What the agent can do
|
|
77
77
|
|
|
78
|
-
<!-- gen:tool-count -->
|
|
78
|
+
<!-- gen:tool-count -->142<!-- /gen:tool-count --> tools covering the full workspace: project, folder, character, location, look, and board management (create / update / delete), image generation and surgical image editing (<!-- gen:image-roster -->Nano Banana 2 (Gemini 3.1 Flash Image), Nano Banana 2 Lite, Nano Banana Pro, GPT Image 2.5 Flare, GPT Image 2.5 Sunburst, FLUX.2 Max, Seedream 5 Lite<!-- /gen:image-roster --> — with project-asset reference images), video generation (<!-- gen:video-roster -->kling-v3.0-std, kling-v3.0-pro, kling-v3.0-omni, veo-3.1-fast, veo-3.1-standard, Seedance 2.0, Seedance 2.5, Gemini Omni Flash, MiniMax H3, MiniMax H3 Max, MiniMax H3 Max Turbo, LTX-2.5, LTX-2.5 Pro<!-- /gen:video-roster -->), audio generation (<!-- gen:audio-roster -->Seed Audio 1.0, ElevenLabs Sound Effects v2, Inworld Realtime TTS-2<!-- /gen:audio-roster -->), 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.
|
|
79
79
|
|
|
80
|
-
Generation tools estimate cost first and ask for confirmation on anything over <!-- gen:confirm-credits -->17<!-- /gen:confirm-credits --> credits, so the agent cannot silently burn credits. Every tool also carries MCP annotations, so a host can auto-approve a read and warn on a delete; the <!-- gen:skill-count -->
|
|
80
|
+
Generation tools estimate cost first and ask for confirmation on anything over <!-- gen:confirm-credits -->17<!-- /gen:confirm-credits --> credits, so the agent cannot silently burn credits. Every tool also carries MCP annotations, so a host can auto-approve a read and warn on a delete; the <!-- gen:skill-count -->37<!-- /gen:skill-count --> bundled skills are exposed as MCP **prompts**, and the manual, the model capability table and the live price list as **resources**.
|
|
81
81
|
|
|
82
82
|
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.
|
|
83
83
|
|
|
@@ -86,3 +86,16 @@ The timeline, export, background-generation, edit-image, and image-reference too
|
|
|
86
86
|
- Website: [slates.video](https://slates.video)
|
|
87
87
|
- Source: [github.com/EricDisero/slates-mcp](https://github.com/EricDisero/slates-mcp)
|
|
88
88
|
- Issues: [github.com/EricDisero/slates-mcp/issues](https://github.com/EricDisero/slates-mcp/issues)
|
|
89
|
+
|
|
90
|
+
### Context on demand
|
|
91
|
+
|
|
92
|
+
The server lists every tool, and the list stays the same for the whole connection. Your client
|
|
93
|
+
decides how much of it to load: Claude Code and Codex send the model the tool names only and fetch a
|
|
94
|
+
tool's full definition when it is needed. `slates_load_tools` with `query` finds a tool by task.
|
|
95
|
+
`--tools=compact` starts with a small workspace/discovery set instead and adds tools through
|
|
96
|
+
`tools/list_changed`, for a client that re-reads its list mid-chat (Claude Desktop, Claude Code in the
|
|
97
|
+
Claude app and Codex do not).
|
|
98
|
+
|
|
99
|
+
`slates_get_prompting_guide` returns a short readable card by default. Use `query` for a section or
|
|
100
|
+
cinematic technique ID, `depth: "index"` for headings, or `depth: "full"` for the complete guide.
|
|
101
|
+
Both text and structured content include the actual guide body. No extra loading hook is required.
|
package/dist/server.js
CHANGED
|
@@ -6,7 +6,7 @@ import { readFileSync } from 'node:fs';
|
|
|
6
6
|
import { join, dirname } from 'node:path';
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import { ALL_OPERATIONS, SKILLS, MODEL_CAPABILITIES, MODEL_FACTS, SlatesCloudClient, buildAgentDoctrine, APP_MANUAL, defaultContext, toolDefinitions, cachedLatestVersion, refreshLatestVersion, updateNotice, } from '@slatesvideo/shared';
|
|
9
|
+
import { ALL_OPERATIONS, SKILLS, MODEL_CAPABILITIES, MODEL_FACTS, SlatesCloudClient, buildAgentDoctrine, APP_MANUAL, defaultContext, toolDefinitions, STARTUP_TOOL_IDS, cachedLatestVersion, refreshLatestVersion, updateNotice, } from '@slatesvideo/shared';
|
|
10
10
|
// Slates MCP server. Stdio transport. Wires every operation in
|
|
11
11
|
// @slatesvideo/shared as an MCP tool. Both the desktop server and the
|
|
12
12
|
// cloud API are reached through env-discovered creds in
|
|
@@ -57,7 +57,7 @@ const instructions = [
|
|
|
57
57
|
].filter((part) => !!part).join('\n\n');
|
|
58
58
|
const server = new Server({ name: 'slates-studio', version: pkg.version }, {
|
|
59
59
|
capabilities: {
|
|
60
|
-
tools: {},
|
|
60
|
+
tools: { listChanged: true },
|
|
61
61
|
// Every bundled skill, offered in the host's own picker rather than
|
|
62
62
|
// only through a tool call the model has to decide to make.
|
|
63
63
|
prompts: {},
|
|
@@ -77,9 +77,21 @@ const server = new Server({ name: 'slates-studio', version: pkg.version }, {
|
|
|
77
77
|
// of the ID SET and unproven of the BYTES. `toolDefinitions()` in shared is now
|
|
78
78
|
// the only renderer either one calls, and the lockstep check compares them.
|
|
79
79
|
//
|
|
80
|
-
//
|
|
81
|
-
//
|
|
80
|
+
// 🚨 THE LIST IS EVERY TOOL, AND IT NEVER CHANGES DURING A CONNECTION.
|
|
81
|
+
// 0.6.0 started with nine and added the rest when `slates_load_tools` sent
|
|
82
|
+
// `tools/list_changed`. Claude Desktop, Claude Code inside the Claude app and
|
|
83
|
+
// Codex never re-read the list, and a host will not call a tool it cannot see,
|
|
84
|
+
// so their users could not generate at all (user report 2026-09-30; both apps
|
|
85
|
+
// re-tested that day). The MCP spec (2026-07-28) now forbids a list that varies
|
|
86
|
+
// "as a side effect of other requests on the connection". Hiding definitions is
|
|
87
|
+
// the HOST's job: Claude Code and Codex send the model names only and fetch a
|
|
88
|
+
// schema on use, so the full list cost about 3,100 tokens up front in Claude
|
|
89
|
+
// Code and nothing measurable in Codex. `--tools=compact` keeps the old
|
|
90
|
+
// nine-tool start for a host that honors list_changed; `--tools=flat` is
|
|
91
|
+
// accepted as the default it now is.
|
|
82
92
|
const TOOLS = toolDefinitions(ops, { surface: 'mcp' });
|
|
93
|
+
const compactTools = process.argv.includes('--tools=compact');
|
|
94
|
+
let selectedTools = new Set();
|
|
83
95
|
/**
|
|
84
96
|
* Output schemas for the ops whose result shape is STABLE.
|
|
85
97
|
*
|
|
@@ -144,7 +156,7 @@ const OUTPUT_SCHEMAS = {
|
|
|
144
156
|
},
|
|
145
157
|
};
|
|
146
158
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
147
|
-
tools: TOOLS.map((t) => ({
|
|
159
|
+
tools: TOOLS.filter((t) => !compactTools || STARTUP_TOOL_IDS.has(t.name) || selectedTools.has(t.name)).map((t) => ({
|
|
148
160
|
name: t.name,
|
|
149
161
|
description: t.description,
|
|
150
162
|
inputSchema: t.inputSchema,
|
|
@@ -283,7 +295,11 @@ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
|
|
|
283
295
|
if (ticker)
|
|
284
296
|
clearInterval(ticker);
|
|
285
297
|
}
|
|
286
|
-
|
|
298
|
+
let data = result.data;
|
|
299
|
+
if (compactTools && op.id === 'slates_load_tools' && Array.isArray(data?.tools)) {
|
|
300
|
+
selectedTools = new Set(data.tools.map((t) => t.name));
|
|
301
|
+
await server.sendToolListChanged().catch(() => { });
|
|
302
|
+
}
|
|
287
303
|
// The one place the server can ask the USER instead of the model.
|
|
288
304
|
//
|
|
289
305
|
// 🚨 GATED ON THE OP HAVING A `confirm` INPUT, not merely on the flag.
|
|
@@ -295,10 +311,15 @@ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
|
|
|
295
311
|
if (data?.requires_confirm === true && opTakesConfirm(op) && clientSupportsElicitation()) {
|
|
296
312
|
const answer = await elicitConfirm(typeof data.message === 'string' ? data.message : result.text);
|
|
297
313
|
if (answer === true) {
|
|
298
|
-
|
|
314
|
+
// A quote that carries a fingerprint (`slates_generate_from_shots`) is
|
|
315
|
+
// fired only with it: the user approved THAT quote, and a changed
|
|
316
|
+
// recipe must still refuse.
|
|
317
|
+
const fingerprint = typeof data.fingerprint === 'string' ? { fingerprint: data.fingerprint } : {};
|
|
318
|
+
result = await op.run({ ...args, ...fingerprint, confirm: true }, {
|
|
299
319
|
...defaultContext(),
|
|
300
320
|
signal: extra?.signal,
|
|
301
321
|
});
|
|
322
|
+
data = result.data;
|
|
302
323
|
}
|
|
303
324
|
else if (answer === false) {
|
|
304
325
|
return {
|
|
@@ -327,7 +348,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
|
|
|
327
348
|
}
|
|
328
349
|
catch (err) {
|
|
329
350
|
const message = err instanceof Error ? err.message : String(err);
|
|
330
|
-
if (/not reachable|Agent Control/i.test(message))
|
|
351
|
+
if (/not reachable|is not running|AI tools|Agent Control/i.test(message))
|
|
331
352
|
warn(message);
|
|
332
353
|
return {
|
|
333
354
|
content: [{ type: 'text', text: `Error: ${message}` }],
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slatesvideo/mcp-server",
|
|
3
|
-
"
|
|
3
|
+
"mcpName": "io.github.EricDisero/slates",
|
|
4
|
+
"version": "0.6.1",
|
|
4
5
|
"description": "MCP server for the Slates desktop app. Your AI agent (ChatGPT via Codex, Claude, Cursor, or another local MCP client) drives a local AI video studio: projects, characters, storyboards, image and video generation. Files land on disk.",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"type": "module",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
},
|
|
51
52
|
"dependencies": {
|
|
52
53
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
53
|
-
"@slatesvideo/shared": "^0.
|
|
54
|
+
"@slatesvideo/shared": "^0.7.1",
|
|
54
55
|
"zod": "^3.23.0"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|