Package Exports
- @visionengine/text2video
- @visionengine/text2video/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@visionengine/text2video) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
VE Text To Video MCP
Async MCP server for text-to-video generation via ve-backend proxy.
Environment
API_URL: backend proxy url, defaulthttps://api.visionengine-tech.com/api/v1/text2videoAPI_KEY: user API key from VisionEngine backend (required for submit/query and remote upload)MODEL: platform model id, default@preset/vec-1-0-text2videoWORKDIR: 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.comREMOTE_AUDIO_UPLOAD_PATH: remote upload path for local audios inremotemode, defaultpublic/audios
Tools
submitquery
submit
Submit an async text-to-video task and receive a taskId for later polling.
audioPath supports:
- public audio URL
- local audio file path
When local audio files are used:
FILE_MODE=local: convert local absolute path to backend shared download URL by removingREMOTION_WORK_DIRprefixFILE_MODE=remote(default): upload local file to backend/save, then convert returned file path to/shared/...?...download=true
Recommended upstream constraints:
- prompt length: <= 1500 characters
- negative prompt length: <= 500 characters
- audio formats: mp3/wav preferred
- audio size: <= 15MB
- duration parameter: 2~15 seconds
- result URL may expire within 24 hours
query
Query a submitted task by taskId.
- If still running, the tool returns current
taskStatusand suggests querying again after about 15 seconds. - If succeeded, it returns
outputVideoUrland by default downloads the result locally. - Set
downloadResult=falseif you only want the current status or the remote result URL.
Note: upstream result URLs may expire within 24 hours, so prompt download is recommended.