Open your editor to add SocialGravity.
https://igeldo.xyz/?connect=mcpCopy this entry into your client’s MCP settings and restart it.
Once your editor confirms the install, ask it to call get_capabilities. Put a video named shot.mp4 in the media folder reported by get_capabilities, then try this prompt.
Use SocialGravity to add a slow push-in to shot.mp4, then export the MP4.Requires Node.js 22.13+
Install SocialGravity in your Node.js project.
npm install https://igeldo.xyz/connect/socialgravity-video-1.0.0.tgz
node --input-type=module -e "import {listEdits} from '@socialgravity/video'; console.log(await listEdits())"API and MCP share history on the same computer when they use the same media folder. The browser editor has its own workspace.
Place shot.mp4 in your media folder (default ~/SocialGravity for a new installation). Save this as edit.mjs in your project and run node edit.mjs. Keep the same request ID when retrying the same edit. Give a different edit its own ID.
import { editVideo, getEdit, exportVideo } from '@socialgravity/video';
import { setTimeout as wait } from 'node:timers/promises';
let edit = await editVideo({
clip: 'shot.mp4',
prompt: 'Add a slow push-in.',
request_id: 'shot-push-in-1'
});
console.log(edit.id);
while (['queued', 'processing', 'running', 'pending', 'accepted'].includes(edit.status)) {
await wait(2000);
edit = await getEdit({ id: edit.id });
}
if (edit.status !== 'completed') throw Error(edit.error || edit.status);
console.log(await exportVideo({ id: edit.id }));
Find the MP4 in the exports subfolder of your media folder. For a follow-up, call reviseVideo({ parent: edit.id, prompt, request_id }). Set SOCIALGRAVITY_MEDIA_DIR to use an existing media folder of your choice.
The base URL is https://api.igeldo.xyz/product/edits. The client’s request() handles authentication and returns the JSON response. For example, await request('') lists edits in this workspace.
For another HTTP client, open https://igeldo.xyz/ with a persistent cookie jar. Read data-workspace from the trial-visit meta tag. With the same cookies and the X-Trial-Workspace header, GET https://igeldo.xyz/product/edit-session for a short-lived token. Send the workspace header, Authorization: Bearer <token> and Origin: https://igeldo.xyz with each API request. Renew the grant when it expires.
List with GET /product/edits. Upload the clip in chunks of up to 4 MiB using POST /product/edits/uploads/{uuid}/chunk/{byteOffset}. Send each chunk as its raw request body. Finish with POST /product/edits/uploads/{uuid}/finish/{totalBytes}. Submit POST /product/edits with multipart fields clip_asset (the returned asset ID), clip_name and prompt, and an Idempotency-Key UUID. Poll GET /product/edits/{ticket} using the full returned ticket. After completion, GET /product/edits/{ticket}/download returns the temporary export path. The Node client handles chunked uploads and verifies the downloaded file.
Node.js 22.13+