@visionengine/video-style-transfer
v1.0.6
Published
VisionEngine Video Style Transfer MCP Server - Async video style redraw via backend proxy
Maintainers
Readme
VE Video Style Transfer MCP
Async MCP server for video style redraw via ve-backend proxy.
Environment
API_URL: backend proxy url, defaulthttps://api.visionengine-tech.com/api/v1/video-style-transferAPI_KEY: user API key from VisionEngine backend (required for submit/query and remote upload)WORKDIR: local workspace rootDEFAULT_OUTPUT_DIR: default relative output directory, defaultpublic/videosFILE_MODE: local file handling mode,localorremote, defaultremoteREMOTION_WORK_DIR: shared mount root used inlocalmode, default/vecBASE_URL: backend public base url used for/saveand/sharedlinks, defaulthttps://api.visionengine-tech.com- Remote upload path is built-in in code:
public/videos(no env override)
Tools
submitquery
submit
Submit an async video style transfer task and receive a taskId for later polling.
The tool returns a friendly reminder such as:
Video style transfer task submitted successfully. It may take a while to finish; please wait about 10 seconds before querying the result.
videoPath can be either:
- a public video URL, or
- a local file path.
When videoPath is a local file path:
FILE_MODE=local: convert local absolute path to backend shared download URL by removingREMOTION_WORK_DIRprefix, then send URL to providerFILE_MODE=remote(default): upload local file to backend/savewith API key (saved to built-inpublic/videos), then convert returned path to/shared/...?...download=trueURL and send URL to provider
Input video limits (upstream API constraints):
- Duration must be <= 30 seconds
- File size must be <= 100MB
- Each side of resolution must be between 256 and 4096 pixels
- Aspect ratio (long side / short side) must be <= 1.8
- Supported formats: MP4, AVI, MKV, MOV, FLV, TS, MPG, MXF
- If URL contains non-ASCII characters (for example Chinese), URL-encode it first
query
Query a submitted task by taskId.
- If the task is still running, the tool returns the current
taskStatusand suggests waiting about 10 seconds before querying again. - If the task succeeds, the tool returns
outputVideoUrland, by default, downloads the final video locally. - Set
downloadResult=falseif you only want to inspect task status or retrieve the remote result URL without downloading.
Typical flow:
- Call
submit - Wait around 10 seconds
- Call
querywith the returnedtaskId - Repeat
queryuntiltaskStatusbecomesSUCCEEDED
