@rendobar/mcp 1.11.1 → 1.11.2
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/dist/bin.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{StdioServerTransport as ke}from"@modelcontextprotocol/sdk/server/stdio.js";import{homedir as K,platform as Oe}from"os";import _ from"path";var S={debug:10,info:20,warn:30,error:40},f=null;function v(e){let n=S[e.level],o=(r,s)=>{if(S[r]<n)return;let a={level:r,time:Date.now(),...s};e.name!==void 0&&(a.name=e.name),process.stderr.write(JSON.stringify(a)+`
|
|
3
|
-
`)};if(e.patchConsole===!0&&f===null){f={log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),debug:console.debug.bind(console)};let r=s=>(...a)=>{let i=a.map(l=>typeof l=="string"?l:JSON.stringify(l)).join(" ");o(s,{msg:i,source:"console"})};console.log=r("info"),console.info=r("info"),console.warn=r("warn"),console.debug=r("debug")}return{debug:r=>o("debug",r),info:r=>o("info",r),warn:r=>o("warn",r),error:r=>o("error",r),restoreConsole:()=>{f!==null&&(console.log=f.log,console.info=f.info,console.warn=f.warn,console.debug=f.debug,f=null)}}}import{promises as $}from"fs";var g=class extends Error{constructor(n){super(n),this.name="ConfigError"}},V="https://api.rendobar.com",Y=new Set(["debug","info","warn","error"]);async function x(e){let n=T(e.argv,"--api-key"),o=T(e.argv,"--api-base"),r={};try{let c=await $.readFile(e.credsPath,"utf8"),p=JSON.parse(c);p!==null&&typeof p=="object"&&(r=p)}catch{}let s=n??e.env.RENDOBAR_API_KEY??r.apiKey,a=o??r.apiBase??V,i=s===void 0||s===""?null:s;if(i!==null&&!i.startsWith("rb_"))throw new g(`Invalid Rendobar API key: must start with 'rb_' (got '${i.slice(0,4)}...').`);let l=e.env.RENDOBAR_LOG_LEVEL??"info";if(!Y.has(l))throw new g(`Invalid RENDOBAR_LOG_LEVEL='${l}'. Use one of: debug, info, warn, error.`);return{apiKey:i,apiBase:a,logLevel:l}}function T(e,n){let o=`${n}=`;for(let r=0;r<e.length;r++){let s=e[r];if(s!==void 0){if(s.startsWith(o))return s.slice(o.length);if(s===n){let a=e[r+1];if(a!==void 0&&!a.startsWith("--"))return a}}}}import{McpServer as Ae}from"@modelcontextprotocol/sdk/server/mcp.js";import{createClient as E}from"@rendobar/sdk";var b="1.11.
|
|
3
|
+
`)};if(e.patchConsole===!0&&f===null){f={log:console.log.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),debug:console.debug.bind(console)};let r=s=>(...a)=>{let i=a.map(l=>typeof l=="string"?l:JSON.stringify(l)).join(" ");o(s,{msg:i,source:"console"})};console.log=r("info"),console.info=r("info"),console.warn=r("warn"),console.debug=r("debug")}return{debug:r=>o("debug",r),info:r=>o("info",r),warn:r=>o("warn",r),error:r=>o("error",r),restoreConsole:()=>{f!==null&&(console.log=f.log,console.info=f.info,console.warn=f.warn,console.debug=f.debug,f=null)}}}import{promises as $}from"fs";var g=class extends Error{constructor(n){super(n),this.name="ConfigError"}},V="https://api.rendobar.com",Y=new Set(["debug","info","warn","error"]);async function x(e){let n=T(e.argv,"--api-key"),o=T(e.argv,"--api-base"),r={};try{let c=await $.readFile(e.credsPath,"utf8"),p=JSON.parse(c);p!==null&&typeof p=="object"&&(r=p)}catch{}let s=n??e.env.RENDOBAR_API_KEY??r.apiKey,a=o??r.apiBase??V,i=s===void 0||s===""?null:s;if(i!==null&&!i.startsWith("rb_"))throw new g(`Invalid Rendobar API key: must start with 'rb_' (got '${i.slice(0,4)}...').`);let l=e.env.RENDOBAR_LOG_LEVEL??"info";if(!Y.has(l))throw new g(`Invalid RENDOBAR_LOG_LEVEL='${l}'. Use one of: debug, info, warn, error.`);return{apiKey:i,apiBase:a,logLevel:l}}function T(e,n){let o=`${n}=`;for(let r=0;r<e.length;r++){let s=e[r];if(s!==void 0){if(s.startsWith(o))return s.slice(o.length);if(s===n){let a=e[r+1];if(a!==void 0&&!a.startsWith("--"))return a}}}}import{McpServer as Ae}from"@modelcontextprotocol/sdk/server/mcp.js";import{createClient as E}from"@rendobar/sdk";var b="1.11.2";function C(e,n){let o=e.apiKey===null?null:E({apiKey:e.apiKey,baseUrl:e.apiBase,client:`mcp/${b}`});return{logger:n,sdk:o,config:e,cachedMaxFileSize:null}}function d(e){if(e.sdk===null)throw new g(Z);return e.sdk}function I(e){return e.sdk??E({baseUrl:e.config.apiBase})}var Z=`No Rendobar API key configured. If you installed the Rendobar extension, paste your key in its settings. Otherwise set RENDOBAR_API_KEY, or run 'rb login' with the Rendobar CLI.
|
|
4
4
|
|
|
5
5
|
Get a key at https://app.rendobar.com/settings/api-keys. New accounts start with $5 of free credit and no card.
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{McpServer as we}from"@modelcontextprotocol/sdk/server/mcp.js";import{createClient as j}from"@rendobar/sdk";import{promises as _e}from"fs";var f=class extends Error{constructor(n){super(n),this.name="ConfigError"}};var b="1.11.
|
|
2
|
+
import{McpServer as we}from"@modelcontextprotocol/sdk/server/mcp.js";import{createClient as j}from"@rendobar/sdk";import{promises as _e}from"fs";var f=class extends Error{constructor(n){super(n),this.name="ConfigError"}};var b="1.11.2";function _(e,n){let o=e.apiKey===null?null:j({apiKey:e.apiKey,baseUrl:e.apiBase,client:`mcp/${b}`});return{logger:n,sdk:o,config:e,cachedMaxFileSize:null}}function c(e){if(e.sdk===null)throw new f(U);return e.sdk}function S(e){return e.sdk??j({baseUrl:e.config.apiBase})}var U=`No Rendobar API key configured. If you installed the Rendobar extension, paste your key in its settings. Otherwise set RENDOBAR_API_KEY, or run 'rb login' with the Rendobar CLI.
|
|
3
3
|
|
|
4
4
|
Get a key at https://app.rendobar.com/settings/api-keys. New accounts start with $5 of free credit and no card.
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rendobar/mcp",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rendobar: serverless media processing and generation for AI agents. Transform video, audio and images with FFmpeg, compose from a timeline, burn captions and compress to a budget. Generate and edit images from a text prompt, and upscale on a diffusion model.",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
68
|
-
"@posthog/mcp": "^0.
|
|
68
|
+
"@posthog/mcp": "^0.13.0",
|
|
69
69
|
"@rendobar/sdk": "^5.0.0",
|
|
70
70
|
"posthog-node": "^5.45.2",
|
|
71
71
|
"zod": "^4.4.3"
|