@mindstone/mcp-server-runway 0.8.0 → 0.8.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
@@ -7,7 +7,7 @@ Runway ML MCP server for Model Context Protocol hosts. Generate AI video, images
7
7
 
8
8
  ## Status
9
9
 
10
- - **Version:** [0.8.0](./CHANGELOG.md) · [npm](https://www.npmjs.com/package/@mindstone/mcp-server-runway)
10
+ - **Version:** [0.8.1](./CHANGELOG.md) · [npm](https://www.npmjs.com/package/@mindstone/mcp-server-runway)
11
11
  - **Auth:** API key ([`RUNWAYML_API_SECRET`](./server.json))
12
12
  - **Tools:** [23](./src/tools/) (video, image, audio, voices, tasks)
13
13
  - **Surface:** cloud-api
@@ -183,4 +183,4 @@ existing output destinations, upload formats, size limits and file checks apply.
183
183
 
184
184
  ### Host-authorised local saves
185
185
 
186
- When a host negotiates experimental `files/writeModes` version 1, declared save destinations use the canonical file or parent folder authorised for that concrete argument in the call's `files/writeMode` metadata. The host's path permissions apply instead of the connector's standalone path policy. File type, size, identity, exclusive-create and overwrite mechanics still apply. Clients that do not negotiate this protocol, or select standalone mode, retain the existing sandbox.
186
+ When a host negotiates experimental `files/writeModes` version 1, declared save destinations use the canonical file or parent folder authorised for that concrete argument in the call's `files/writeMode` metadata. The host's path permissions apply instead of the connector's standalone path policy. Missing authorised destination folders are created before saving; their canonical identity is checked before the write. File type, size, identity, exclusive-create and overwrite mechanics still apply. Clients that do not negotiate this protocol, or select standalone mode, retain the existing sandbox.
package/dist/client.js CHANGED
@@ -238,6 +238,12 @@ export function assertDownloadPathInRoot(outputPath, context) {
238
238
  else {
239
239
  resolved = allowed;
240
240
  realRoot = path.dirname(allowed);
241
+ try {
242
+ fs.mkdirSync(realRoot, { recursive: true });
243
+ }
244
+ catch {
245
+ throw new RunwayError(`Authorised parent directory is missing, inaccessible or changed: ${realRoot}`, 'OUTPUT_PARENT_NOT_FOUND', 'Create the destination folder if needed, then retry the call to authorise it again.');
246
+ }
241
247
  if (!isAuthorisedWriteParent(realRoot)) {
242
248
  throw new RunwayError(`Authorised parent directory is missing, inaccessible or changed: ${realRoot}`, 'OUTPUT_PARENT_NOT_FOUND', 'Create the destination folder if needed, then retry the call to authorise it again.');
243
249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstone/mcp-server-runway",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "mcpName": "io.github.mindstone/mcp-server-runway",
5
5
  "description": "Runway ML MCP server for Model Context Protocol hosts — AI video, image, audio generation, custom voices, task management",
6
6
  "license": "FSL-1.1-MIT",