@clipform/mcp-server 5.13.0 → 5.15.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 +2 -2
- package/README.template.md +1 -1
- package/dist/api-client.js +1 -1
- package/dist/{chunk-Z4EWEJ6E.js → chunk-3FPDHYBD.js} +3 -3
- package/dist/{chunk-UVQWEPR2.js → chunk-4CE57LMM.js} +3 -3
- package/dist/{chunk-EWYIXFGI.js → chunk-66UD7JLD.js} +10 -9
- package/dist/{chunk-EWYIXFGI.js.map → chunk-66UD7JLD.js.map} +1 -1
- package/dist/{chunk-OUUEFJ6K.js → chunk-CUAGUVFD.js} +58 -2
- package/dist/chunk-CUAGUVFD.js.map +1 -0
- package/dist/{chunk-4T23OPCL.js → chunk-ELQLWQX4.js} +2 -2
- package/dist/index.js +5 -5
- package/dist/prompts.js +3 -3
- package/dist/resources.js +3 -3
- package/dist/server.js +5 -5
- package/package.json +1 -1
- package/server.json +2 -2
- package/dist/chunk-OUUEFJ6K.js.map +0 -1
- /package/dist/{chunk-Z4EWEJ6E.js.map → chunk-3FPDHYBD.js.map} +0 -0
- /package/dist/{chunk-UVQWEPR2.js.map → chunk-4CE57LMM.js.map} +0 -0
- /package/dist/{chunk-4T23OPCL.js.map → chunk-ELQLWQX4.js.map} +0 -0
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ claude mcp add clipform -e CLIPFORM_API_KEY=cf_xxx -- npx -y @clipform/mcp-serve
|
|
|
44
44
|
}
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Generate an API key in your Clipform dashboard under **
|
|
47
|
+
Generate an API key in your Clipform dashboard under **Settings > Workspace > API keys**. The local server always needs one - to try Clipform without an account, connect to `https://mcp.clipform.io` instead (see "How it works").
|
|
48
48
|
|
|
49
49
|
### Environment variables
|
|
50
50
|
|
|
@@ -72,7 +72,7 @@ Your MCP client lists these automatically on connect (via `tools/list`). Full re
|
|
|
72
72
|
| `clipform_update_node` | Update one or more existing nodes' text, type, config, or options. |
|
|
73
73
|
| `clipform_delete_node` | Delete a node from a form. |
|
|
74
74
|
| `clipform_upload_media_asset` | Put one or more media files into your workspace media library (max 10, uploaded sequentially). |
|
|
75
|
-
| `clipform_complete_media_upload` | Confirm a signed-PUT
|
|
75
|
+
| `clipform_complete_media_upload` | Confirm a signed-PUT upload finished, after PUTting the bytes to the upload_url returned by clipform_upload_media_asset with upload_method put. |
|
|
76
76
|
| `clipform_attach_node_media` | Attach an existing workspace media asset (from clipform_upload_media_asset) to one or more nodes (max 10). |
|
|
77
77
|
| `clipform_get_node_media` | Get the media attached to a node, including processing status. |
|
|
78
78
|
| `clipform_delete_node_media` | Remove media from a node by unlinking it; the media asset and its files stay in the workspace library and keep working on any other node or live form that uses them. |
|
package/README.template.md
CHANGED
|
@@ -50,7 +50,7 @@ claude mcp add clipform -e CLIPFORM_API_KEY=cf_xxx -- npx -y {{PKG}}
|
|
|
50
50
|
}
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
Generate an API key in your Clipform dashboard under **
|
|
53
|
+
Generate an API key in your Clipform dashboard under **Settings > Workspace > API keys**. The local server always needs one - to try Clipform without an account, connect to `{{MCP_URL}}` instead (see "How it works").
|
|
54
54
|
|
|
55
55
|
### Environment variables
|
|
56
56
|
|
package/dist/api-client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContextWithAuth
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ELQLWQX4.js";
|
|
5
5
|
import {
|
|
6
6
|
FORM_TYPES,
|
|
7
7
|
MAX_CLIP_SECONDS,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
WORKFLOW_TYPES,
|
|
11
11
|
exposedCompositionIds,
|
|
12
12
|
getDiscoveryParams
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CUAGUVFD.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -15259,4 +15259,4 @@ export {
|
|
|
15259
15259
|
getWorkflowText,
|
|
15260
15260
|
registerPrompts
|
|
15261
15261
|
};
|
|
15262
|
-
//# sourceMappingURL=chunk-
|
|
15262
|
+
//# sourceMappingURL=chunk-3FPDHYBD.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ELQLWQX4.js";
|
|
5
5
|
import {
|
|
6
6
|
ALL_VARIANTS,
|
|
7
7
|
FORM_TYPES,
|
|
8
8
|
FORM_TYPE_KEYS,
|
|
9
9
|
callApi
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CUAGUVFD.js";
|
|
11
11
|
import {
|
|
12
12
|
getMcpAuth
|
|
13
13
|
} from "./chunk-ENVV65JX.js";
|
|
@@ -146,4 +146,4 @@ export {
|
|
|
146
146
|
getGuideUri,
|
|
147
147
|
registerResources
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
149
|
+
//# sourceMappingURL=chunk-4CE57LMM.js.map
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
union,
|
|
32
32
|
unknown,
|
|
33
33
|
url
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-3FPDHYBD.js";
|
|
35
35
|
import {
|
|
36
36
|
GUIDE_TYPES,
|
|
37
37
|
QUIZ_VARIANTS,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
getGuideUri,
|
|
41
41
|
guideFallbackText,
|
|
42
42
|
registerResources
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-4CE57LMM.js";
|
|
44
44
|
import {
|
|
45
45
|
ANON_PREVIEW_LINK_LABEL,
|
|
46
46
|
ANON_PREVIEW_NOTICE,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
isPreviewViewerUrl,
|
|
55
55
|
previewOnlyNotice,
|
|
56
56
|
withAdoptedNotice
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ELQLWQX4.js";
|
|
58
58
|
import {
|
|
59
59
|
ACTIVE_NODE_TYPES,
|
|
60
60
|
ANON_MCP_BLOCKED_NODE_TYPES,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
textResult,
|
|
115
115
|
validateVariableKey,
|
|
116
116
|
viewerUrl
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-CUAGUVFD.js";
|
|
118
118
|
import {
|
|
119
119
|
getMcpAuth,
|
|
120
120
|
runWithMcpAuth,
|
|
@@ -18491,6 +18491,7 @@ Provide media via \`items\` (explicit type + URL), \`files\` (files attached by
|
|
|
18491
18491
|
if (item.captions) createBody.captions = item.captions;
|
|
18492
18492
|
if (item.caption_ref) createBody.caption_ref = item.caption_ref;
|
|
18493
18493
|
if (item.ai_generated !== void 0) createBody.ai_generated = item.ai_generated;
|
|
18494
|
+
if (item.media_type === "video" && !item.url) createBody.upload_routes = ["signed-put"];
|
|
18494
18495
|
const created = await callApi(`/workspaces/${workspaceId}/media`, { method: "POST", body: createBody });
|
|
18495
18496
|
if (!created.ok) {
|
|
18496
18497
|
lines.push(`FAILED: ${created.error}`);
|
|
@@ -18549,7 +18550,7 @@ Provide media via \`items\` (explicit type + URL), \`files\` (files attached by
|
|
|
18549
18550
|
resultLines.push(
|
|
18550
18551
|
`Upload URL: ${uploadUrl}`,
|
|
18551
18552
|
`Upload method: ${uploadMethod}`,
|
|
18552
|
-
uploadMethod === "put" ? `PUT the file's bytes directly to the upload URL, then call clipform_complete_media_upload with media_asset_id ${mediaAssetId} to confirm the upload
|
|
18553
|
+
uploadMethod === "put" ? `PUT the file's bytes directly to the upload URL with a Content-Type header naming the file's real type (e.g. image/png or video/mp4; application/octet-stream is rejected), then call clipform_complete_media_upload with media_asset_id ${mediaAssetId} to confirm the upload - it stays invisible in the library until you do.` : `Upload the file directly to the upload URL using TUS resumable upload.`
|
|
18553
18554
|
);
|
|
18554
18555
|
} else {
|
|
18555
18556
|
resultLines.push(`Media stored in the workspace library.`);
|
|
@@ -18582,14 +18583,14 @@ function registerCompleteMediaUploadTool(server) {
|
|
|
18582
18583
|
"clipform_complete_media_upload",
|
|
18583
18584
|
{
|
|
18584
18585
|
title: "Complete Media Upload",
|
|
18585
|
-
description: `Confirm a signed-PUT
|
|
18586
|
+
description: `Confirm a signed-PUT upload finished, after PUTting the bytes to the upload_url returned by clipform_upload_media_asset with upload_method put. The API verifies the object actually landed in storage before it moves the asset on from processing - call this right after the PUT succeeds, or the asset stays invisible in the library. Not needed when the upload method was TUS.`,
|
|
18586
18587
|
inputSchema: external_exports.object({
|
|
18587
|
-
media_asset_id: external_exports.string().uuid().describe("The media_asset_id returned by clipform_upload_media_asset for the
|
|
18588
|
+
media_asset_id: external_exports.string().uuid().describe("The media_asset_id returned by clipform_upload_media_asset for the PUT upload"),
|
|
18588
18589
|
form_id: formIdTargetInput
|
|
18589
18590
|
}),
|
|
18590
18591
|
outputSchema: external_exports.object({
|
|
18591
18592
|
media_asset_id: external_exports.string(),
|
|
18592
|
-
status: external_exports.string().describe("The asset's status after this call - ready on success, or its already-settled status when called again (noop)")
|
|
18593
|
+
status: external_exports.string().describe("The asset's status after this call - ready on success (processing while a video is still being prepared), or its already-settled status when called again (noop)")
|
|
18593
18594
|
}),
|
|
18594
18595
|
annotations: {
|
|
18595
18596
|
readOnlyHint: false,
|
|
@@ -20936,4 +20937,4 @@ export {
|
|
|
20936
20937
|
* MIT Licensed
|
|
20937
20938
|
*)
|
|
20938
20939
|
*/
|
|
20939
|
-
//# sourceMappingURL=chunk-
|
|
20940
|
+
//# sourceMappingURL=chunk-66UD7JLD.js.map
|