@slatesvideo/mcp-server 0.5.19 → 0.5.20

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 CHANGED
@@ -1,12 +1,22 @@
1
1
  # @slatesvideo/mcp-server
2
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.
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 storyboards, 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
 
7
7
  - The Slates desktop app, installed and running. Get it at [slates.video](https://slates.video).
8
8
  - Node.js 18 or newer.
9
9
 
10
+ ## ChatGPT via Codex
11
+
12
+ Sign in to the local Codex app or CLI with your ChatGPT account, keep Slates open on the same computer, and run:
13
+
14
+ ```bash
15
+ codex mcp add slates -- npx -y @slatesvideo/mcp-server
16
+ ```
17
+
18
+ Restart Codex to load the tools. A regular ChatGPT web chat does not connect to this local stdio server. [Full connection guide](https://slates.video/docs/connect-claude).
19
+
10
20
  ## Claude Desktop
11
21
 
12
22
  Add this to your config file:
@@ -37,7 +47,7 @@ One command:
37
47
  claude mcp add slates -- npx -y @slatesvideo/mcp-server
38
48
  ```
39
49
 
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).
50
+ Tip: with Codex or 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
51
 
42
52
  ## Cursor
43
53
 
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, } from '@slatesvideo/shared';
9
+ import { ALL_OPERATIONS, SKILLS, MODEL_CAPABILITIES, MODEL_FACTS, SlatesCloudClient, buildAgentDoctrine, APP_MANUAL, defaultContext, toolDefinitions, 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
@@ -44,7 +44,17 @@ const pkg = JSON.parse(readFileSync(join(dirname(fileURLToPath(import.meta.url))
44
44
  // + hard rules + guide index and leaves the long-form skills to
45
45
  // slates_get_prompting_guide. scripts/agent-surface-lockstep-check.mjs pins the
46
46
  // byte count so growth is a review decision, not an accident.
47
- const instructions = buildAgentDoctrine({ surface: 'mcp' });
47
+ const PKG_NAME = '@slatesvideo/mcp-server';
48
+ // The first line names the running version so an agent can answer "what
49
+ // version am I on"; the notice appears only when the on-disk cache (refreshed
50
+ // in main(), for the NEXT launch) says a newer package is published. Read the
51
+ // design note in @slatesvideo/shared update-check.ts before changing either.
52
+ const updateAdvice = updateNotice(PKG_NAME, pkg.version, cachedLatestVersion(PKG_NAME), 'Newer models and parameters are missing until it updates. Tell the user in your FIRST reply: fully quit and reopen the MCP client (Claude Desktop, Codex, Cursor) so npx fetches the new version; if it was installed globally, run `npm i -g @slatesvideo/mcp-server@latest` first.');
53
+ const instructions = [
54
+ `Slates MCP server v${pkg.version} (${PKG_NAME}).`,
55
+ updateAdvice,
56
+ buildAgentDoctrine({ surface: 'mcp' }),
57
+ ].filter((part) => !!part).join('\n\n');
48
58
  const server = new Server({ name: 'slates-studio', version: pkg.version }, {
49
59
  capabilities: {
50
60
  tools: {},
@@ -477,7 +487,11 @@ server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
477
487
  async function main() {
478
488
  const transport = new StdioServerTransport();
479
489
  await server.connect(transport);
480
- console.error(`[slates-mcp] server started, ${ops.length} tools registered, ` +
490
+ if (updateAdvice)
491
+ console.error(`[slates-mcp] ${updateAdvice}`);
492
+ // Background refresh; the result is read by the next launch, never awaited.
493
+ void refreshLatestVersion(PKG_NAME);
494
+ console.error(`[slates-mcp] server started, v${pkg.version}, ${ops.length} tools registered, ` +
481
495
  `${SKILL_NAMES.length} skills as prompts, 3 resources + 2 templates, ` +
482
496
  `${instructions.length} chars of agent doctrine sent as instructions`);
483
497
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slatesvideo/mcp-server",
3
- "version": "0.5.19",
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.",
3
+ "version": "0.5.20",
4
+ "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
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@modelcontextprotocol/sdk": "^1.0.0",
53
- "@slatesvideo/shared": "^0.6.10",
53
+ "@slatesvideo/shared": "^0.6.11",
54
54
  "zod": "^3.23.0"
55
55
  },
56
56
  "devDependencies": {