@slatesvideo/mcp-server 0.6.0 → 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 CHANGED
@@ -89,10 +89,12 @@ The timeline, export, background-generation, edit-image, and image-reference too
89
89
 
90
90
  ### Context on demand
91
91
 
92
- The server starts with a small workspace/discovery tool set. Use `slates_load_tools` with `query`
93
- to find a capability, then `names` to load its exact schemas. A named/group load replaces the optional
94
- selection and emits `tools/list_changed`; existing direct operation names remain callable.
95
- `--tools=flat` restores the complete listing for clients that need it.
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).
96
98
 
97
99
  `slates_get_prompting_guide` returns a short readable card by default. Use `query` for a section or
98
100
  cinematic technique ID, `depth: "index"` for headings, or `depth: "full"` for the complete guide.
package/dist/server.js CHANGED
@@ -77,10 +77,20 @@ 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
- // Render once; listing filters startup + connection selection below. Direct calls
81
- // retain access to every operation for clients that do not refresh their listing.
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' });
83
- const flatTools = process.argv.includes('--tools=flat');
93
+ const compactTools = process.argv.includes('--tools=compact');
84
94
  let selectedTools = new Set();
85
95
  /**
86
96
  * Output schemas for the ops whose result shape is STABLE.
@@ -146,7 +156,7 @@ const OUTPUT_SCHEMAS = {
146
156
  },
147
157
  };
148
158
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
149
- tools: TOOLS.filter((t) => flatTools || STARTUP_TOOL_IDS.has(t.name) || selectedTools.has(t.name)).map((t) => ({
159
+ tools: TOOLS.filter((t) => !compactTools || STARTUP_TOOL_IDS.has(t.name) || selectedTools.has(t.name)).map((t) => ({
150
160
  name: t.name,
151
161
  description: t.description,
152
162
  inputSchema: t.inputSchema,
@@ -286,7 +296,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
286
296
  clearInterval(ticker);
287
297
  }
288
298
  let data = result.data;
289
- if (op.id === 'slates_load_tools' && Array.isArray(data?.tools)) {
299
+ if (compactTools && op.id === 'slates_load_tools' && Array.isArray(data?.tools)) {
290
300
  selectedTools = new Set(data.tools.map((t) => t.name));
291
301
  await server.sendToolListChanged().catch(() => { });
292
302
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slatesvideo/mcp-server",
3
3
  "mcpName": "io.github.EricDisero/slates",
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
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.",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@modelcontextprotocol/sdk": "^1.0.0",
54
- "@slatesvideo/shared": "^0.7.0",
54
+ "@slatesvideo/shared": "^0.7.1",
55
55
  "zod": "^3.23.0"
56
56
  },
57
57
  "devDependencies": {