
Convertrilo
io.github.serkandrgn由 GitHub 账号 serkandrgn 发布v0.1.2更新于 Oct 24, 2026
Create and manage Convertrilo video encoding jobs from MCP clients and agent workflows.
概览
让助手创建和管理 Convertrilo 云端视频编码任务,包括查询状态、取消任务和交付输出。
- 可以做什么
- Convertrilo 除了提供 CLI 和 TypeScript SDK 外,还提供 stdio MCP 服务器 convertrilo-mcp,用于调用 Convertrilo 视频编码 API。助手可以提交来自 URL、S3 或 Google Drive 的编码任务,设置编解码器、分辨率、质量、音频和帧率策略,并轮询任务状态直到完成。它还支持批量文件夹导入、保存编码预设、保存输出目标、取消任务、清理文件以及查看 webhook 投递历史。
- 适用场景
- 当智能体或工作流需要转码视频而不想自建编码流水线时适用,例如压缩上传文件、生成 1080p 网页 MP4,或为存储文件夹中的每个视频排队一个任务。它适合服务端自动化,而不是浏览器应用。
- 运行要求
- 通过 npm 包 @convertrilo/sdk 作为本地 Node.js 进程运行,面向提供全局 fetch 的现代 Node.js 运行时。需要 Convertrilo API 密钥,通过环境变量 CONVERTRILO_API_KEY 提供,或用 convertrilo login 或 convertrilo init 保存在本地。输出到 S3 或 Google Drive 需要客户自己的存储凭据或服务账号。
安装
在 SourceWeft 中
- 打开 控制台中的 Convertrilo,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Convertrilo TypeScript SDK
Type-safe client for the Convertrilo API.
VMAF And Encoding Passes
When optimize: "vmaf" is requested, Convertrilo performs VMAF sampling and one optimized final encode. A supplied passes: 2 value remains accepted for backward compatibility, but the API uses and bills one effective pass.
Pricing responses expose requestedPasses and effectivePasses. New integrations should use passes: 1 with VMAF.
Install
The package currently targets modern Node.js runtimes with global fetch. If your runtime does
not provide fetch, pass fetchImpl to the client.
CLI And MCP Automation
The package includes two executable automation tools:
Use convertrilo for scripts, CI, cron, and local operations. Use convertrilo-mcp
as a stdio MCP server for agent and workflow integrations.
Run convertrilo login or convertrilo init to save an API key locally, or run
convertrilo with no arguments to start the interactive encode wizard. Waiting
commands show terminal progress by default and keep --json clean for scripts.
Shell completion snippets are available with:
See docs/CLI-AND-MCP.md for commands, MCP client config,
S3 output examples, VMAF, two-pass, status, cancel, and balance workflows.
If you want the simplest terminal walkthrough, start with
docs/CLI-QUICKSTART.md.
For agent/client setup, use docs/MCP-QUICKSTART.md.
MCP registry metadata lives in server.json.
Create A Client
Use an API key for server-to-server integrations. Browser apps should call your own backend, then your backend calls Convertrilo.
Examples
The examples/ directory contains starter scripts for the main integration paths:
node-url-to-cdn.ts- encode a public URL and receive a signed CDN download URLnode-url-to-s3.ts- encode a public URL and upload the result to S3/S3-compatible storagegoogle-drive-byo-token.ts- upload output to Google Drive using a customer-owned service accountfolder-ingest-s3.ts- queue one encode job per video in an S3 prefixidempotency.ts- safely retrycreateJobandcreateJobsBulkwebhook-receiver-hmac.ts- verify managed webhook HMAC signatures from a Node receiver
Local SDK smoke tests use .env, but published SDK users should provide credentials through their
own server environment. Do not put Convertrilo API keys or customer storage tokens in frontend code.
For a complete server-to-server walkthrough covering URL, S3, folder ingest, Google Drive
service accounts, polling, and webhooks, see
docs/API-INTEGRATION-GUIDE.md.
Idempotent Job Creation
Use an idempotency key when retrying create calls from your backend. Reusing the same key with the same body returns the original response instead of creating duplicate jobs.
Job File Cleanup
Delete managed upload and output objects after a job reaches a terminal state:
The job record and billing history remain available for auditing. Active jobs return the stable
job_active error until they are canceled.
Saved Encode Presets
Save reusable encode settings without storing source URLs, storage credentials, or output secrets:
Saved Output Destinations
Save reusable delivery targets without storing raw storage secrets in the destination itself. S3 destinations reference an encrypted saved S3 credential:
URL Source To CDN Output
Terminal users can inspect the same report with:
URL Source To S3 Output
For S3-compatible services, pass endpoint and usually forcePathStyle: true.
URL Source To Google Drive Output
For headless API integrations, save a customer-owned Google service account once. Use a Google Shared Drive for output and add the returned service-account email as a member with permission to create files.
Dashboard Google Picker authorization is separate from SDK automation.
Folder Ingest
Queue one job per video in an S3 prefix:
Use maxFiles to cap how many discovered videos are queued from a folder.
Queue one job per video in a Google Drive folder:
Convertrilo mints short-lived Google tokens from the encrypted service-account credential when each worker starts.
Poll each returned jobId with client.onDemandStatus(jobId).
Webhook Delivery History
Managed webhooks are HMAC signed. You can test a webhook and inspect recent delivery attempts:
Regenerate Types
The SDK types are generated from openapi.yaml.
The generate script uses --default-non-nullable false so OpenAPI defaults remain optional
in TypeScript request bodies.
来源:README.md,提交 d4ff8b2
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分