ue-mcp-tripo 0.2.2 → 0.2.4

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.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * tripo.loadouts - the built-in and project loadouts with their resolved settings. Free.
3
+ */
4
+ import { UeMcpTask, type TaskResult } from "ue-mcp/task";
5
+ interface Options {
6
+ name?: string;
7
+ }
8
+ export default class Loadouts extends UeMcpTask<Options> {
9
+ get taskName(): string;
10
+ execute(): Promise<TaskResult>;
11
+ }
12
+ export {};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * tripo.loadouts - the built-in and project loadouts with their resolved settings. Free.
3
+ */
4
+ import { UeMcpTask } from "ue-mcp/task";
5
+ import { configOf, describeLoadout, loadoutsFrom } from "../shared/loadouts.js";
6
+ export default class Loadouts extends UeMcpTask {
7
+ get taskName() { return "tripo.loadouts"; }
8
+ async execute() {
9
+ const all = loadoutsFrom(configOf(this));
10
+ const wanted = this.options.name;
11
+ if (wanted && !all[wanted]) {
12
+ throw new Error(`No loadout named "${wanted}". Available: ${Object.keys(all).join(", ") || "none"}.`);
13
+ }
14
+ const names = wanted ? [wanted] : Object.keys(all);
15
+ return {
16
+ success: true,
17
+ data: {
18
+ loadouts: names.map((n) => describeLoadout(n, all)),
19
+ message: names.length
20
+ ? 'Pass one as tripo(action="generate", loadout="<name>", ...). Options in the call override the loadout field by field.'
21
+ : "No loadouts are configured. They need ue-mcp 1.4.16-beta.12 or later, which passes the plugin its config.",
22
+ },
23
+ };
24
+ }
25
+ }
26
+ //# sourceMappingURL=Loadouts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loadouts.js","sourceRoot":"","sources":["../../src/tasks/Loadouts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMhF,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAkB;IACtD,IAAI,QAAQ,KAAa,OAAO,gBAAgB,CAAC,CAAC,CAAC;IAEnD,KAAK,CAAC,OAAO;QACX,MAAM,GAAG,GAAG,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QACzC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QACjC,IAAI,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,qBAAqB,MAAM,iBAAiB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC;QACxG,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnD,OAAO;YACL,OAAO,EAAE,IAAI;YACb,IAAI,EAAE;gBACJ,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;gBACnD,OAAO,EAAE,KAAK,CAAC,MAAM;oBACnB,CAAC,CAAC,uHAAuH;oBACzH,CAAC,CAAC,2GAA2G;aAChH;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ import { UeMcpTask, type TaskResult } from "ue-mcp/task";
2
+ interface Options {
3
+ views?: Record<string, string>;
4
+ images?: string[] | string;
5
+ name?: string;
6
+ outDir?: string;
7
+ canvas?: number;
8
+ fill?: number;
9
+ }
10
+ export default class PrepareImages extends UeMcpTask<Options> {
11
+ get taskName(): string;
12
+ execute(): Promise<TaskResult>;
13
+ }
14
+ export {};
@@ -0,0 +1,36 @@
1
+ /**
2
+ * tripo.prepare_images - turnaround views to matching images, spending nothing.
3
+ *
4
+ * The same preparation generate runs before it uploads multiview inputs, so an
5
+ * agent can look at the files first. Writes to <project>/Saved/Tripo/<name>/views.
6
+ */
7
+ import { isAbsolute, join, resolve } from "node:path";
8
+ import { UeMcpTask } from "ue-mcp/task";
9
+ import { workDir } from "../shared/cli.js";
10
+ import { prepareViews, resolveViews } from "../shared/images.js";
11
+ import { sanitizeAssetName } from "./Generate.js";
12
+ export default class PrepareImages extends UeMcpTask {
13
+ get taskName() { return "tripo.prepare_images"; }
14
+ async execute() {
15
+ const o = this.options;
16
+ const found = resolveViews(o.views, o.images);
17
+ if (!found)
18
+ throw new Error("Pass views={front: ..., left: ..., back: ..., right: ...} or images with 2 to 4 files named by view.");
19
+ if (found.remote)
20
+ throw new Error("prepare_images works on local files. Download the URLs first.");
21
+ const base = workDir(this.ctx?.project?.projectDir);
22
+ const outDir = o.outDir
23
+ ? isAbsolute(o.outDir) ? o.outDir : resolve(base, o.outDir)
24
+ : join(base, sanitizeAssetName(o.name ?? "Turnaround"), "views");
25
+ const r = await prepareViews({ views: found.views, outDir, canvas: o.canvas, fill: o.fill });
26
+ return {
27
+ success: true,
28
+ data: {
29
+ ...r,
30
+ message: `Prepared ${r.views.length} views into ${r.outDir}; the originals are untouched. Look at them, then pass views={...} ` +
31
+ `to tripo(action="generate") with these files (prepareImages=false, they are ready) or the original files (they are prepared again).`,
32
+ },
33
+ };
34
+ }
35
+ }
36
+ //# sourceMappingURL=PrepareImages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrepareImages.js","sourceRoot":"","sources":["../../src/tasks/PrepareImages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAWlD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAkB;IAC3D,IAAI,QAAQ,KAAa,OAAO,sBAAsB,CAAC,CAAC,CAAC;IAEzD,KAAK,CAAC,OAAO;QACX,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;QACvB,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,sGAAsG,CAAC,CAAC;QACpI,IAAI,KAAK,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;QAEnG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACpD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM;YACrB,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YAC3D,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,IAAI,IAAI,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;QACnE,MAAM,CAAC,GAAG,MAAM,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAC7F,OAAO;YACL,OAAO,EAAE,IAAI;YACb,IAAI,EAAE;gBACJ,GAAG,CAAC;gBACJ,OAAO,EACL,YAAY,CAAC,CAAC,KAAK,CAAC,MAAM,eAAe,CAAC,CAAC,MAAM,qEAAqE;oBACtH,qIAAqI;aACxI;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -174,7 +174,7 @@ Boolean requesting whether a visible border and background is provided by the ho
174
174
  - omitted: host decides border`)}),Fb=u.object({method:u.literal("ui/request-display-mode"),params:u.object({mode:Gt.describe("The display mode being requested.")})}),cb=u.object({mode:Gt.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),mb=u.union([u.literal("model"),u.literal("app")]).describe("Tool visibility scope - who can access the tool."),Wb=u.object({resourceUri:u.string().optional(),visibility:u.array(mb).optional().describe(`Who can access this tool. Default: ["model", "app"]
175
175
  - "model": Tool visible to and callable by the agent
176
176
  - "app": Tool callable by the app from this server only`),csp:u.never().optional(),permissions:u.never().optional()}),Kb=u.object({mimeTypes:u.array(u.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Vb=u.object({method:u.literal("ui/download-file"),params:u.object({contents:u.array(u.union([tp,ip])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),Bb=u.object({method:u.literal("ui/message"),params:u.object({role:u.literal("user").describe('Message role, currently only "user" is supported.'),content:u.array(ln).describe("Message content blocks (text, image, etc.).")})}),Gb=u.object({method:u.literal("ui/notifications/sandbox-resource-ready"),params:u.object({html:u.string().describe("HTML content to load into the inner iframe."),sandbox:u.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:vl.optional().describe("CSP configuration from resource metadata."),permissions:hl.optional().describe("Sandbox permissions from resource metadata.")})}),pb=u.object({method:u.literal("ui/notifications/tool-result"),params:qr.describe("Standard MCP tool execution result.")}),up=u.object({toolInfo:u.object({id:nn.optional().describe("JSON-RPC id of the tools/call request."),tool:gl.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:X$.optional().describe("Current color theme preference."),styles:sb.optional().describe("Style configuration for theming the app."),displayMode:Gt.optional().describe("How the UI is currently displayed."),availableDisplayModes:u.array(Gt).optional().describe("Display modes the host supports."),containerDimensions:u.union([u.object({height:u.number().describe("Fixed container height in pixels.")}),u.object({maxHeight:u.union([u.number(),u.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(u.union([u.object({width:u.number().describe("Fixed container width in pixels.")}),u.object({maxWidth:u.union([u.number(),u.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
177
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:u.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:u.string().optional().describe("User's timezone in IANA format."),userAgent:u.string().optional().describe("Host application identifier."),platform:u.union([u.literal("web"),u.literal("desktop"),u.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:u.object({touch:u.boolean().optional().describe("Whether the device supports touch input."),hover:u.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:u.object({top:u.number().describe("Top safe area inset in pixels."),right:u.number().describe("Right safe area inset in pixels."),bottom:u.number().describe("Bottom safe area inset in pixels."),left:u.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),fb=u.object({method:u.literal("ui/notifications/host-context-changed"),params:up.describe("Partial context update containing only changed fields.")}),Xb=u.object({method:u.literal("ui/update-model-context"),params:u.object({content:u.array(ln).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:u.record(u.string(),u.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Yb=u.object({method:u.literal("ui/initialize"),params:u.object({appInfo:Mr.describe("App identification (name and version)."),appCapabilities:db.describe("Features and capabilities this app provides."),protocolVersion:u.string().describe("Protocol version this app supports.")})}),gb=u.object({protocolVersion:u.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Mr.describe("Host application identification and version."),hostCapabilities:lb.describe("Features and capabilities provided by the host."),hostContext:up.describe("Rich context about the host environment.")}).passthrough(),vb={target:"draft-2020-12"};async function Bl(e,i){let n=e["~standard"];if(n.jsonSchema)return n.jsonSchema[i](vb);if(n.vendor==="zod"){let{z:a}=await Promise.resolve().then(()=>(Rr(),qm));return a.toJSONSchema(e,{io:i})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Gl(e,i,n=""){let a=await e["~standard"].validate(i);if(a.issues){let t=a.issues.map(r=>{let o=r.path?.map(s=>typeof s=="object"?s.key:s).join(".");return o?`${o}: ${r.message}`:r.message}).join("; ");throw Error(n+t)}return a.value}Rr();function lp(e){let i=document.documentElement;i.setAttribute("data-theme",e),i.style.colorScheme=e}function dp(e,i=document.documentElement){for(let[n,a]of Object.entries(e))a!==void 0&&i.style.setProperty(n,a)}function cp(e){if(document.getElementById("__mcp-host-fonts"))return;let i=document.createElement("style");i.id="__mcp-host-fonts",i.textContent=e,document.head.appendChild(i)}var Cn=class Cn extends ta{constructor(n,a={},t={autoResize:!0}){super(t);D(this,"_appInfo");D(this,"_capabilities");D(this,"options");D(this,"_hostCapabilities");D(this,"_hostInfo");D(this,"_hostContext");D(this,"_registeredTools",{});D(this,"_initializedSent",!1);D(this,"eventSchemas",{toolinput:nb,toolinputpartial:rb,toolresult:pb,toolcancelled:ab,hostcontextchanged:fb});D(this,"_everHadListener",new Set);D(this,"_toolHandlersInitialized",!1);D(this,"_onteardown");D(this,"_oncalltool");D(this,"_onlisttools");D(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=a,this.options=t,t.allowUnsafeEval||u.config({jitless:!0}),this.setRequestHandler(Lr,r=>(console.log("Received ping:",r.params),{})),this.setEventHandler("hostcontextchanged",void 0)}_assertInitialized(n){if(this._initializedSent)return;let a=`[ext-apps] App.${n}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(a);console.warn(`${a}. This will throw in a future release.`)}_assertHandlerTiming(n){if(!Cn.ONE_SHOT_EVENTS.has(n)||this._everHadListener.has(n)||(this._everHadListener.add(n),!this._initializedSent))return;let a=`[ext-apps] "${String(n)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(a);console.warn(a)}setEventHandler(n,a){a&&this._assertHandlerTiming(n),super.setEventHandler(n,a)}addEventListener(n,a){this._assertHandlerTiming(n),super.addEventListener(n,a)}onEventDispatch(n,a){n==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...a})}registerCapabilities(n){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=V$(this._capabilities,n)}registerTool(n,a,t){if(this._registeredTools[n])throw Error(`Tool ${n} is already registered`);let r=this,o=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},s=a.inputSchema!==void 0,l={title:a.title,description:a.description,inputSchema:a.inputSchema,outputSchema:a.outputSchema,annotations:a.annotations,_meta:a._meta,enabled:!0,enable(){this.enabled=!0,o()},disable(){this.enabled=!1,o()},update(d){Object.assign(this,d),o()},remove(){r._registeredTools[n]===l&&(delete r._registeredTools[n],o())},handler:async(d,c)=>{if(!l.enabled)throw Error(`Tool ${n} is disabled`);let f;if(s){let g=l.inputSchema,_=g?await Gl(g,d??{},`Invalid input for tool ${n}: `):d??{};f=await t(_,c)}else f=await t(c);return l.outputSchema&&!f.isError&&(f.structuredContent=await Gl(l.outputSchema,f.structuredContent,`Invalid output for tool ${n}: `)),f}};return this._registeredTools[n]=l,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),o(),l}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(n,a)=>{let t=this._registeredTools[n.name];if(!t)throw Error(`Tool ${n.name} not found`);return t.handler(n.arguments,a)},this.onlisttools=async(n,a)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([t,r])=>r.enabled).map(async([t,r])=>{let o={name:t,title:r.title,description:r.description,inputSchema:r.inputSchema?await Bl(r.inputSchema,"input"):{type:"object",properties:{}}};return r.outputSchema&&(o.outputSchema=await Bl(r.outputSchema,"output")),r.annotations&&(o.annotations=r.annotations),r._meta&&(o._meta=r._meta),o}))}))}async sendToolListChanged(n={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:n})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(n){this.setEventHandler("toolinput",n)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(n){this.setEventHandler("toolinputpartial",n)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(n){this.setEventHandler("toolresult",n)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(n){this.setEventHandler("toolcancelled",n)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(n){this.setEventHandler("hostcontextchanged",n)}get onteardown(){return this._onteardown}set onteardown(n){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,n),this._onteardown=n,this.replaceRequestHandler(ub,(a,t)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(a.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(n){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,n),this._oncalltool=n,this.replaceRequestHandler(rp,(a,t)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(a.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(n){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,n),this._onlisttools=n,this.replaceRequestHandler(np,(a,t)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(a.params,t)})}assertCapabilityForMethod(n){switch(n){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${n})`);break}}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${n})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${n} registered`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,a){if(this._assertInitialized("callServerTool"),typeof n=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${n}"). Did you mean: callServerTool({ name: "${n}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:n},qr,{onprogress:()=>{},resetTimeoutOnProgress:!0,...a})}async readServerResource(n,a){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:n},ep,a)}async listServerResources(n,a){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:n},Qm,a)}async createSamplingMessage(n,a){this._assertInitialized("createSamplingMessage");let t=n.tools?sp:op;return await this.request({method:"sampling/createMessage",params:n},t,a)}sendMessage(n,a){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:n},ib,a)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,a){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:n},el,a)}openLink(n,a){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:n},eb,a)}downloadFile(n,a){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:n},tb,a)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,a){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:n},cb,a)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,a=0,t=0,r=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let s=document.documentElement,l=s.style.height;s.style.height="max-content";let d=Math.ceil(s.getBoundingClientRect().height);s.style.height=l;let c=Math.ceil(window.innerWidth);(c!==a||d!==t)&&(a=c,t=d,this.sendSizeChanged({width:c,height:d}))}))};r();let o=new ResizeObserver(r);return o.observe(document.documentElement),o.observe(document.body),()=>o.disconnect()}async connect(n=new ia(window.parent,window.parent),a){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(n);try{let t=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:B$}},gb,a);if(t===void 0)throw Error(`Server sent invalid initialize result: ${t}`);this._hostCapabilities=t.hostCapabilities,this._hostInfo=t.hostInfo,this._hostContext=t.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(t){throw this.close(),t}}};D(Cn,"ONE_SHOT_EVENTS",new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]));var Rn=Cn;var hb="https://developers.tripo3d.ai/en/keys",$b="https://developers.tripo3d.com/zh/keys",K=e=>document.getElementById(e),Se=new Rn({name:"Tripo settings",version:"0.2.2"},{});async function dn(e,i={}){let n=await Se.callServerTool({name:`tripo_${e}`,arguments:i}),a=(n.content??[]).find(t=>t.type==="text")?.text??"";if(n.isError)throw new Error(a.replace(/^Error \[[A-Z_]+\]:\s*/,"")||"The call failed.");try{return JSON.parse(a)}catch{throw new Error(a||"The call returned nothing.")}}function Ee(e){for(let i of["save","clear","signin","region"])K(i).disabled=e;e||(K("clear").disabled=!$l||$l.key.source!=="store")}function he(e){let i=K("error");i.textContent=e??"",i.hidden=!e}var $l=null;function _l(e){$l=e;let i=K("account");if(e.signedIn){let n=[e.account??"Signed in"];e.region&&n.push(e.region==="cn"?"China mainland":"International"),typeof e.balance=="number"&&n.push(`${e.balance.toLocaleString()} credits`),i.textContent=n.join(" \xB7 "),i.dataset.state="ok"}else i.textContent="Not signed in. Save an API key or sign in with Tripo.",i.dataset.state="off";K("keystate").textContent=e.key.source==="env"?"Set by the TRIPO_API_KEY environment variable, which takes precedence over a saved key.":e.key.source==="store"?"A key is saved.":"No key is saved.",K("clear").disabled=e.key.source!=="store"}async function bl(){he(null);try{_l(await dn("auth_status"))}catch(e){he(e.message)}}async function bb(e){e.preventDefault();let i=K("apikey"),n=i.value.trim();if(!n){he("Enter an API key first.");return}Ee(!0),he(null);try{_l(await dn("set_key",{apiKey:n})),i.value=""}catch(a){he(a.message)}finally{Ee(!1)}}async function _b(){Ee(!0),he(null);try{_l(await dn("clear_key"))}catch(e){he(e.message)}finally{Ee(!1)}}var At=null;function mp(){At&&clearTimeout(At),At=null}async function yb(){mp(),Ee(!0),he(null);let e=K("region").value;try{let i=await dn("login_start",{region:e});if(!i.url){K("device").hidden=!0,await bl(),Ee(!1);return}K("code").textContent=i.code??"",K("open").onclick=()=>void Se.openLink({url:i.url}),K("device").hidden=!1,K("pollstate").textContent="Waiting for you to approve the code in your browser.",Se.openLink({url:i.url});let n=async()=>{let a;try{a=await dn("login_poll")}catch(t){a={state:"error",message:t.message}}if(a.state==="pending"){At=setTimeout(()=>void n(),i.pollAfterMs||5e3);return}At=null,Ee(!1),a.state==="done"?(K("device").hidden=!0,await bl()):(K("pollstate").textContent=a.state==="expired"?"The code expired. Sign in again for a new one.":"",a.state==="error"&&he(a.message??"Sign-in failed."))};At=setTimeout(()=>void n(),i.pollAfterMs||5e3)}catch(i){he(i.message),Ee(!1)}}function pp(e){e&&(e.theme&&lp(e.theme),e.styles?.variables&&dp(e.styles.variables),e.styles?.css?.fonts&&cp(e.styles.css.fonts))}Se.onhostcontextchanged=e=>pp({...Se.getHostContext(),...e});Se.onteardown=async()=>(mp(),{});K("keyform").addEventListener("submit",e=>void bb(e));K("clear").addEventListener("click",()=>void _b());K("signin").addEventListener("click",()=>void yb());K("getkey").addEventListener("click",e=>{e.preventDefault(),Se.openLink({url:K("region").value==="cn"?$b:hb})});Se.connect().then(()=>{pp(Se.getHostContext()),bl()}).catch(e=>he(`Could not reach the host: ${e.message}`));})();
177
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:u.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:u.string().optional().describe("User's timezone in IANA format."),userAgent:u.string().optional().describe("Host application identifier."),platform:u.union([u.literal("web"),u.literal("desktop"),u.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:u.object({touch:u.boolean().optional().describe("Whether the device supports touch input."),hover:u.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:u.object({top:u.number().describe("Top safe area inset in pixels."),right:u.number().describe("Right safe area inset in pixels."),bottom:u.number().describe("Bottom safe area inset in pixels."),left:u.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),fb=u.object({method:u.literal("ui/notifications/host-context-changed"),params:up.describe("Partial context update containing only changed fields.")}),Xb=u.object({method:u.literal("ui/update-model-context"),params:u.object({content:u.array(ln).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:u.record(u.string(),u.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Yb=u.object({method:u.literal("ui/initialize"),params:u.object({appInfo:Mr.describe("App identification (name and version)."),appCapabilities:db.describe("Features and capabilities this app provides."),protocolVersion:u.string().describe("Protocol version this app supports.")})}),gb=u.object({protocolVersion:u.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Mr.describe("Host application identification and version."),hostCapabilities:lb.describe("Features and capabilities provided by the host."),hostContext:up.describe("Rich context about the host environment.")}).passthrough(),vb={target:"draft-2020-12"};async function Bl(e,i){let n=e["~standard"];if(n.jsonSchema)return n.jsonSchema[i](vb);if(n.vendor==="zod"){let{z:a}=await Promise.resolve().then(()=>(Rr(),qm));return a.toJSONSchema(e,{io:i})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Gl(e,i,n=""){let a=await e["~standard"].validate(i);if(a.issues){let t=a.issues.map(r=>{let o=r.path?.map(s=>typeof s=="object"?s.key:s).join(".");return o?`${o}: ${r.message}`:r.message}).join("; ");throw Error(n+t)}return a.value}Rr();function lp(e){let i=document.documentElement;i.setAttribute("data-theme",e),i.style.colorScheme=e}function dp(e,i=document.documentElement){for(let[n,a]of Object.entries(e))a!==void 0&&i.style.setProperty(n,a)}function cp(e){if(document.getElementById("__mcp-host-fonts"))return;let i=document.createElement("style");i.id="__mcp-host-fonts",i.textContent=e,document.head.appendChild(i)}var Cn=class Cn extends ta{constructor(n,a={},t={autoResize:!0}){super(t);D(this,"_appInfo");D(this,"_capabilities");D(this,"options");D(this,"_hostCapabilities");D(this,"_hostInfo");D(this,"_hostContext");D(this,"_registeredTools",{});D(this,"_initializedSent",!1);D(this,"eventSchemas",{toolinput:nb,toolinputpartial:rb,toolresult:pb,toolcancelled:ab,hostcontextchanged:fb});D(this,"_everHadListener",new Set);D(this,"_toolHandlersInitialized",!1);D(this,"_onteardown");D(this,"_oncalltool");D(this,"_onlisttools");D(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=a,this.options=t,t.allowUnsafeEval||u.config({jitless:!0}),this.setRequestHandler(Lr,r=>(console.log("Received ping:",r.params),{})),this.setEventHandler("hostcontextchanged",void 0)}_assertInitialized(n){if(this._initializedSent)return;let a=`[ext-apps] App.${n}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(a);console.warn(`${a}. This will throw in a future release.`)}_assertHandlerTiming(n){if(!Cn.ONE_SHOT_EVENTS.has(n)||this._everHadListener.has(n)||(this._everHadListener.add(n),!this._initializedSent))return;let a=`[ext-apps] "${String(n)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(a);console.warn(a)}setEventHandler(n,a){a&&this._assertHandlerTiming(n),super.setEventHandler(n,a)}addEventListener(n,a){this._assertHandlerTiming(n),super.addEventListener(n,a)}onEventDispatch(n,a){n==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...a})}registerCapabilities(n){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=V$(this._capabilities,n)}registerTool(n,a,t){if(this._registeredTools[n])throw Error(`Tool ${n} is already registered`);let r=this,o=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},s=a.inputSchema!==void 0,l={title:a.title,description:a.description,inputSchema:a.inputSchema,outputSchema:a.outputSchema,annotations:a.annotations,_meta:a._meta,enabled:!0,enable(){this.enabled=!0,o()},disable(){this.enabled=!1,o()},update(d){Object.assign(this,d),o()},remove(){r._registeredTools[n]===l&&(delete r._registeredTools[n],o())},handler:async(d,c)=>{if(!l.enabled)throw Error(`Tool ${n} is disabled`);let f;if(s){let g=l.inputSchema,_=g?await Gl(g,d??{},`Invalid input for tool ${n}: `):d??{};f=await t(_,c)}else f=await t(c);return l.outputSchema&&!f.isError&&(f.structuredContent=await Gl(l.outputSchema,f.structuredContent,`Invalid output for tool ${n}: `)),f}};return this._registeredTools[n]=l,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),o(),l}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(n,a)=>{let t=this._registeredTools[n.name];if(!t)throw Error(`Tool ${n.name} not found`);return t.handler(n.arguments,a)},this.onlisttools=async(n,a)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([t,r])=>r.enabled).map(async([t,r])=>{let o={name:t,title:r.title,description:r.description,inputSchema:r.inputSchema?await Bl(r.inputSchema,"input"):{type:"object",properties:{}}};return r.outputSchema&&(o.outputSchema=await Bl(r.outputSchema,"output")),r.annotations&&(o.annotations=r.annotations),r._meta&&(o._meta=r._meta),o}))}))}async sendToolListChanged(n={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:n})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(n){this.setEventHandler("toolinput",n)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(n){this.setEventHandler("toolinputpartial",n)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(n){this.setEventHandler("toolresult",n)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(n){this.setEventHandler("toolcancelled",n)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(n){this.setEventHandler("hostcontextchanged",n)}get onteardown(){return this._onteardown}set onteardown(n){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,n),this._onteardown=n,this.replaceRequestHandler(ub,(a,t)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(a.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(n){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,n),this._oncalltool=n,this.replaceRequestHandler(rp,(a,t)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(a.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(n){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,n),this._onlisttools=n,this.replaceRequestHandler(np,(a,t)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(a.params,t)})}assertCapabilityForMethod(n){switch(n){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${n})`);break}}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${n})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${n} registered`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,a){if(this._assertInitialized("callServerTool"),typeof n=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${n}"). Did you mean: callServerTool({ name: "${n}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:n},qr,{onprogress:()=>{},resetTimeoutOnProgress:!0,...a})}async readServerResource(n,a){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:n},ep,a)}async listServerResources(n,a){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:n},Qm,a)}async createSamplingMessage(n,a){this._assertInitialized("createSamplingMessage");let t=n.tools?sp:op;return await this.request({method:"sampling/createMessage",params:n},t,a)}sendMessage(n,a){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:n},ib,a)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,a){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:n},el,a)}openLink(n,a){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:n},eb,a)}downloadFile(n,a){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:n},tb,a)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,a){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:n},cb,a)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,a=0,t=0,r=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let s=document.documentElement,l=s.style.height;s.style.height="max-content";let d=Math.ceil(s.getBoundingClientRect().height);s.style.height=l;let c=Math.ceil(window.innerWidth);(c!==a||d!==t)&&(a=c,t=d,this.sendSizeChanged({width:c,height:d}))}))};r();let o=new ResizeObserver(r);return o.observe(document.documentElement),o.observe(document.body),()=>o.disconnect()}async connect(n=new ia(window.parent,window.parent),a){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(n);try{let t=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:B$}},gb,a);if(t===void 0)throw Error(`Server sent invalid initialize result: ${t}`);this._hostCapabilities=t.hostCapabilities,this._hostInfo=t.hostInfo,this._hostContext=t.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(t){throw this.close(),t}}};D(Cn,"ONE_SHOT_EVENTS",new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]));var Rn=Cn;var hb="https://developers.tripo3d.ai/en/keys",$b="https://developers.tripo3d.com/zh/keys",K=e=>document.getElementById(e),Se=new Rn({name:"Tripo settings",version:"0.2.4"},{});async function dn(e,i={}){let n=await Se.callServerTool({name:`tripo_${e}`,arguments:i}),a=(n.content??[]).find(t=>t.type==="text")?.text??"";if(n.isError)throw new Error(a.replace(/^Error \[[A-Z_]+\]:\s*/,"")||"The call failed.");try{return JSON.parse(a)}catch{throw new Error(a||"The call returned nothing.")}}function Ee(e){for(let i of["save","clear","signin","region"])K(i).disabled=e;e||(K("clear").disabled=!$l||$l.key.source!=="store")}function he(e){let i=K("error");i.textContent=e??"",i.hidden=!e}var $l=null;function _l(e){$l=e;let i=K("account");if(e.signedIn){let n=[e.account??"Signed in"];e.region&&n.push(e.region==="cn"?"China mainland":"International"),typeof e.balance=="number"&&n.push(`${e.balance.toLocaleString()} credits`),i.textContent=n.join(" \xB7 "),i.dataset.state="ok"}else i.textContent="Not signed in. Save an API key or sign in with Tripo.",i.dataset.state="off";K("keystate").textContent=e.key.source==="env"?"Set by the TRIPO_API_KEY environment variable, which takes precedence over a saved key.":e.key.source==="store"?"A key is saved.":"No key is saved.",K("clear").disabled=e.key.source!=="store"}async function bl(){he(null);try{_l(await dn("auth_status"))}catch(e){he(e.message)}}async function bb(e){e.preventDefault();let i=K("apikey"),n=i.value.trim();if(!n){he("Enter an API key first.");return}Ee(!0),he(null);try{_l(await dn("set_key",{apiKey:n})),i.value=""}catch(a){he(a.message)}finally{Ee(!1)}}async function _b(){Ee(!0),he(null);try{_l(await dn("clear_key"))}catch(e){he(e.message)}finally{Ee(!1)}}var At=null;function mp(){At&&clearTimeout(At),At=null}async function yb(){mp(),Ee(!0),he(null);let e=K("region").value;try{let i=await dn("login_start",{region:e});if(!i.url){K("device").hidden=!0,await bl(),Ee(!1);return}K("code").textContent=i.code??"",K("open").onclick=()=>void Se.openLink({url:i.url}),K("device").hidden=!1,K("pollstate").textContent="Waiting for you to approve the code in your browser.",Se.openLink({url:i.url});let n=async()=>{let a;try{a=await dn("login_poll")}catch(t){a={state:"error",message:t.message}}if(a.state==="pending"){At=setTimeout(()=>void n(),i.pollAfterMs||5e3);return}At=null,Ee(!1),a.state==="done"?(K("device").hidden=!0,await bl()):(K("pollstate").textContent=a.state==="expired"?"The code expired. Sign in again for a new one.":"",a.state==="error"&&he(a.message??"Sign-in failed."))};At=setTimeout(()=>void n(),i.pollAfterMs||5e3)}catch(i){he(i.message),Ee(!1)}}function pp(e){e&&(e.theme&&lp(e.theme),e.styles?.variables&&dp(e.styles.variables),e.styles?.css?.fonts&&cp(e.styles.css.fonts))}Se.onhostcontextchanged=e=>pp({...Se.getHostContext(),...e});Se.onteardown=async()=>(mp(),{});K("keyform").addEventListener("submit",e=>void bb(e));K("clear").addEventListener("click",()=>void _b());K("signin").addEventListener("click",()=>void yb());K("getkey").addEventListener("click",e=>{e.preventDefault(),Se.openLink({url:K("region").value==="cn"?$b:hb})});Se.connect().then(()=>{pp(Se.getHostContext()),bl()}).catch(e=>he(`Could not reach the host: ${e.message}`));})();
178
178
  </script>
179
179
  </body>
180
180
  </html>
@@ -3,11 +3,40 @@
3
3
  This plugin runs tripo-cli 0.11.2, pinned in its package, so nothing needs installing. Every `tripo ...` command in the guide below is a call to `tripo(action="cli", args=[...])` with the words after `tripo` as the array: `tripo balance` is `tripo(action="cli", args=["balance"])`, and `tripo task get <id>` is `tripo(action="cli", args=["task","get","<id>"])`. The plugin adds `--json`, `--yes` and `--no-open` to every command and returns the parsed JSON result. Relative paths resolve against `<project>/Saved/Tripo`, so pass absolute paths.
4
4
 
5
5
  - Sign in with `tripo(action="cli", args=["login","--region","ov","--no-wait"])` (`cn` for the China site), or set `TRIPO_API_KEY` in the ue-mcp server environment. Then check with `tripo(action="cli", args=["doctor"])`.
6
- - To get a model into Unreal, use `tripo(action="generate", prompt="...")`. It runs `tripo make` with Unreal defaults (`--for anim`, a rig with `spec=unreal`, `convert:fbx`, `-p pbr=true`), writes to `<project>/Saved/Tripo/<name>` and imports the result with `asset(action="import_model")`. `dryRun=true` returns the plan and credit estimate. A pending result names the `generate(resume=...)` call that finishes the import.
6
+ - To get a model into Unreal, use `tripo(action="generate", prompt="...")`. It spends credits, so call it with `dryRun=true` first: the dry run returns the exact settings and the credit estimate for nothing, and the same call without `dryRun` generates. Without options it runs `tripo make` with `--model H3.1` (the cheapest model the CLI can price), GLB output, `-p pbr=false`, `--for anim` and a rig (`rig-check`, then `rig` with `spec=unreal` and `out_format=glb`); there is no convert step. It never picks a premium model, `texture_quality=detailed` or `geometry_quality=detailed`; pass `model` or `params` for those, only when the user asks. `format="fbx"` adds `convert:fbx` as the last step, but the conversion has produced tiny scale and cracked meshes that the same task as GLB did not, so leave it off unless FBX is required. The raw GLB and `preview.png` are saved under the job folder, and the result lists their paths, the settings used, the credits and when Tripo's download links expire (about 8 days). The result imports the model with `asset(action="import_model")`; when that cannot run it still returns success with `status="generated"` and the `importCall` to make next. A pending result names the `generate(resume=...)` call that finishes the import.
7
+ - Prefer a loadout when the subject is known: `generate(loadout="humanoid" | "creature" | "prop" | "hero-prop" | "environment", ...)` applies a bundle of model, face limit, rig and import settings, and options in the call override it field by field. `tripo(action="loadouts")` lists them for free with their resolved settings, including any the project defines under `ue-mcp.pluginConfig.tripo.loadouts` in the project's config. The dry run and every result say which loadout or option each setting came from. Built-ins use the cheapest model and standard texture quality, so a premium setting still needs an explicit option.
8
+ - **This overrides rule 7 of the Tripo guide below ("default to P2").** Through this plugin, generate defaults to H3.1 and the cheap settings (no PBR, standard texture quality, no `geometry_quality`). Use P2 only when the user asks for it, with `model="P2"`. Do not pass `--model P2` to `tripo(action="cli")` or switch generate to P2 on your own.
9
+ - `segmentHint="poncho, body"` separates garments after generation: it runs `mesh smartsegment` (55 credits at list price, on top of the estimate) on the raw GLB, then rigs the segmented model. Plain `mesh segment` fused a poncho that smartsegment separated. It is off by default and cannot be combined with `task` or `then`.
10
+ - The estimate covers the generation step only. Rig, retarget, texture and convert steps are billed on top.
7
11
  - A model file already on disk goes straight to `asset(action="import_model", filePath=..., kind="skeletal")`.
8
12
  - The cli action stops a command after `timeoutSec` (default 300). For long jobs pass `--no-wait`, then `["task","watch","<id>","--download"]`. `tripo mcp` and `tripo update` are not available through the plugin.
9
13
  - Ignore the guide's install, `TRIPO_CLIENT_APP` and `TRIPO_DISTRIBUTION_CHANNEL` instructions; the plugin handles the binary.
10
14
 
15
+ ## Making turnaround images
16
+
17
+ A character turnaround goes to `tripo(action="generate", views={front: ..., left: ..., back: ..., right: ...})`, or to `images` with files named by view. Generate prepares the views first, and `tripo(action="prepare_images", views={...})` does the same for free so the files can be checked before credits are spent. Files go to the job folder as lossless PNGs named `front.png`, `left.png`, `back.png` and `right.png`, which is how the CLI reads each view; originals are never changed. `prepareImages=false` sends them as they are.
18
+
19
+ Marked (Tripo) are Tripo's own guidance; the rest is what the preparation step does or what the plugin recommends.
20
+
21
+ - Format and size (Tripo): PNG, at least 1024 px, about 1600 px on the long edge recommended, 256 px minimum, 20 MB maximum. Preparation refuses a view under 256 px or over 20 MB, and warns below 1024 px.
22
+ - Framing (Tripo): the subject at 70-85% of the frame, centered, with margin on every side. Check the margin on width, not only height, so the fingertips of a T-pose keep clear space. Preparation targets 75% in the limiting dimension and warns when a subject touches the source edge.
23
+ - Pose (Tripo): T-pose when rigging is the priority, A-pose for cloth. Use the same pose in every view, limbs separated from the torso, and a neutral face.
24
+ - Consistency (Tripo): the same canvas and scale in every view, head and feet aligned across views, left and right as true mirrors, and the same details in every view. Preparation applies one scale and one baseline to all views, which assumes the views were drawn at the same scale; it warns when their source sizes differ.
25
+ - Background and light (Tripo): a plain white or light gray background, even diffuse light, no cast or ground shadows, and a level camera, ideally orthographic.
26
+ - Views (Tripo): front is required, two views are the minimum and four are recommended. Name the files by view.
27
+ - Style: a stylized reference gives stylized output, but expect the texture to come back smoother.
28
+ - Checking results: inspect the raw GLB (the result's `glb` path) before any conversion. Change one variable at a time, and pass a fixed seed (`params=["model_seed=123"]`) to compare runs.
29
+
30
+ ## After import
31
+
32
+ These come from a project's character and cloth work, observed in its editor and files unless marked unverified.
33
+
34
+ - Inspect the raw GLB (scale in cm, part count, cracks, one fused shell or separate parts) before any conversion. Tripo's FBX convert caused tiny scale and cracks that the same task as GLB did not have.
35
+ - Tripo's auto-skin puts garment weight on arm bones (one poncho had 48% on them). Cloth input follows the skinned pose, so a garment that hangs from the shoulders balloons or spikes when the arms move, even with simulation off. Reweight such garments to the clavicles, spine and neck, and check that the share on arm bones is 0, before any clothing data is made.
36
+ - Tripo's auto physics asset had 12 bodies with no clavicle, neck or lower-arm bodies. Its radii looked large for a 100 cm character (unverified: the capsules were not visualized). Look at them before tuning cloth.
37
+ - The Unreal section index is not the Tripo part number. Read the material of each section: one poncho was section 4 and section 3 was the head, and binding to the wrong section is silent.
38
+ - Garments need to be their own part and their own material section to simulate, so use `segmentHint` when generation fuses them. A double-layer garment may cause chest clipping that no cloth setting removes (unverified).
39
+
11
40
  ---
12
41
 
13
42
  # Tripo CLI Skill
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ue-mcp-tripo",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Tripo plugin for ue-mcp. Runs Tripo's own CLI to turn a prompt or image into a rigged, textured Unreal Engine 5 character imported through ue-mcp core, and exposes every other CLI command through a passthrough.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,8 +36,9 @@
36
36
  "@types/node": "^22.20.5",
37
37
  "esbuild": "0.25.12",
38
38
  "typescript": "^5.7.0",
39
- "ue-mcp": "1.4.16-beta.11",
40
- "vitest": "^3.2.4"
39
+ "ue-mcp": "1.4.16-beta.12",
40
+ "vitest": "^3.2.4",
41
+ "yaml": "^2.9.1"
41
42
  },
42
43
  "scripts": {
43
44
  "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
@@ -51,6 +52,7 @@
51
52
  "node": ">=20"
52
53
  },
53
54
  "dependencies": {
55
+ "sharp": "^0.35.5",
54
56
  "tripo-cli": "0.11.2"
55
57
  }
56
58
  }
@@ -8,11 +8,40 @@ description: Generate, rig, animate, convert and import 3D models with Tripo thr
8
8
  This plugin runs tripo-cli 0.11.2, pinned in its package, so nothing needs installing. Every `tripo ...` command in the guide below is a call to `tripo(action="cli", args=[...])` with the words after `tripo` as the array: `tripo balance` is `tripo(action="cli", args=["balance"])`, and `tripo task get <id>` is `tripo(action="cli", args=["task","get","<id>"])`. The plugin adds `--json`, `--yes` and `--no-open` to every command and returns the parsed JSON result. Relative paths resolve against `<project>/Saved/Tripo`, so pass absolute paths.
9
9
 
10
10
  - Sign in with `tripo(action="cli", args=["login","--region","ov","--no-wait"])` (`cn` for the China site), or set `TRIPO_API_KEY` in the ue-mcp server environment. Then check with `tripo(action="cli", args=["doctor"])`.
11
- - To get a model into Unreal, use `tripo(action="generate", prompt="...")`. It runs `tripo make` with Unreal defaults (`--for anim`, a rig with `spec=unreal`, `convert:fbx`, `-p pbr=true`), writes to `<project>/Saved/Tripo/<name>` and imports the result with `asset(action="import_model")`. `dryRun=true` returns the plan and credit estimate. A pending result names the `generate(resume=...)` call that finishes the import.
11
+ - To get a model into Unreal, use `tripo(action="generate", prompt="...")`. It spends credits, so call it with `dryRun=true` first: the dry run returns the exact settings and the credit estimate for nothing, and the same call without `dryRun` generates. Without options it runs `tripo make` with `--model H3.1` (the cheapest model the CLI can price), GLB output, `-p pbr=false`, `--for anim` and a rig (`rig-check`, then `rig` with `spec=unreal` and `out_format=glb`); there is no convert step. It never picks a premium model, `texture_quality=detailed` or `geometry_quality=detailed`; pass `model` or `params` for those, only when the user asks. `format="fbx"` adds `convert:fbx` as the last step, but the conversion has produced tiny scale and cracked meshes that the same task as GLB did not, so leave it off unless FBX is required. The raw GLB and `preview.png` are saved under the job folder, and the result lists their paths, the settings used, the credits and when Tripo's download links expire (about 8 days). The result imports the model with `asset(action="import_model")`; when that cannot run it still returns success with `status="generated"` and the `importCall` to make next. A pending result names the `generate(resume=...)` call that finishes the import.
12
+ - Prefer a loadout when the subject is known: `generate(loadout="humanoid" | "creature" | "prop" | "hero-prop" | "environment", ...)` applies a bundle of model, face limit, rig and import settings, and options in the call override it field by field. `tripo(action="loadouts")` lists them for free with their resolved settings, including any the project defines under `ue-mcp.pluginConfig.tripo.loadouts` in the project's config. The dry run and every result say which loadout or option each setting came from. Built-ins use the cheapest model and standard texture quality, so a premium setting still needs an explicit option.
13
+ - **This overrides rule 7 of the Tripo guide below ("default to P2").** Through this plugin, generate defaults to H3.1 and the cheap settings (no PBR, standard texture quality, no `geometry_quality`). Use P2 only when the user asks for it, with `model="P2"`. Do not pass `--model P2` to `tripo(action="cli")` or switch generate to P2 on your own.
14
+ - `segmentHint="poncho, body"` separates garments after generation: it runs `mesh smartsegment` (55 credits at list price, on top of the estimate) on the raw GLB, then rigs the segmented model. Plain `mesh segment` fused a poncho that smartsegment separated. It is off by default and cannot be combined with `task` or `then`.
15
+ - The estimate covers the generation step only. Rig, retarget, texture and convert steps are billed on top.
12
16
  - A model file already on disk goes straight to `asset(action="import_model", filePath=..., kind="skeletal")`.
13
17
  - The cli action stops a command after `timeoutSec` (default 300). For long jobs pass `--no-wait`, then `["task","watch","<id>","--download"]`. `tripo mcp` and `tripo update` are not available through the plugin.
14
18
  - Ignore the guide's install, `TRIPO_CLIENT_APP` and `TRIPO_DISTRIBUTION_CHANNEL` instructions; the plugin handles the binary.
15
19
 
20
+ ## Making turnaround images
21
+
22
+ A character turnaround goes to `tripo(action="generate", views={front: ..., left: ..., back: ..., right: ...})`, or to `images` with files named by view. Generate prepares the views first, and `tripo(action="prepare_images", views={...})` does the same for free so the files can be checked before credits are spent. Files go to the job folder as lossless PNGs named `front.png`, `left.png`, `back.png` and `right.png`, which is how the CLI reads each view; originals are never changed. `prepareImages=false` sends them as they are.
23
+
24
+ Marked (Tripo) are Tripo's own guidance; the rest is what the preparation step does or what the plugin recommends.
25
+
26
+ - Format and size (Tripo): PNG, at least 1024 px, about 1600 px on the long edge recommended, 256 px minimum, 20 MB maximum. Preparation refuses a view under 256 px or over 20 MB, and warns below 1024 px.
27
+ - Framing (Tripo): the subject at 70-85% of the frame, centered, with margin on every side. Check the margin on width, not only height, so the fingertips of a T-pose keep clear space. Preparation targets 75% in the limiting dimension and warns when a subject touches the source edge.
28
+ - Pose (Tripo): T-pose when rigging is the priority, A-pose for cloth. Use the same pose in every view, limbs separated from the torso, and a neutral face.
29
+ - Consistency (Tripo): the same canvas and scale in every view, head and feet aligned across views, left and right as true mirrors, and the same details in every view. Preparation applies one scale and one baseline to all views, which assumes the views were drawn at the same scale; it warns when their source sizes differ.
30
+ - Background and light (Tripo): a plain white or light gray background, even diffuse light, no cast or ground shadows, and a level camera, ideally orthographic.
31
+ - Views (Tripo): front is required, two views are the minimum and four are recommended. Name the files by view.
32
+ - Style: a stylized reference gives stylized output, but expect the texture to come back smoother.
33
+ - Checking results: inspect the raw GLB (the result's `glb` path) before any conversion. Change one variable at a time, and pass a fixed seed (`params=["model_seed=123"]`) to compare runs.
34
+
35
+ ## After import
36
+
37
+ These come from a project's character and cloth work, observed in its editor and files unless marked unverified.
38
+
39
+ - Inspect the raw GLB (scale in cm, part count, cracks, one fused shell or separate parts) before any conversion. Tripo's FBX convert caused tiny scale and cracks that the same task as GLB did not have.
40
+ - Tripo's auto-skin puts garment weight on arm bones (one poncho had 48% on them). Cloth input follows the skinned pose, so a garment that hangs from the shoulders balloons or spikes when the arms move, even with simulation off. Reweight such garments to the clavicles, spine and neck, and check that the share on arm bones is 0, before any clothing data is made.
41
+ - Tripo's auto physics asset had 12 bodies with no clavicle, neck or lower-arm bodies. Its radii looked large for a 100 cm character (unverified: the capsules were not visualized). Look at them before tuning cloth.
42
+ - The Unreal section index is not the Tripo part number. Read the material of each section: one poncho was section 4 and section 3 was the head, and binding to the wrong section is silent.
43
+ - Garments need to be their own part and their own material section to simulate, so use `segmentHint` when generation fuses them. A double-layer garment may cause chest clipping that no cloth setting removes (unverified).
44
+
16
45
  ---
17
46
 
18
47
  # Tripo CLI Skill
package/ue-mcp.plugin.yml CHANGED
@@ -2,7 +2,70 @@ actionPrefix: tripo
2
2
  displayName: Tripo Connector
3
3
  # Plugin views, row buttons, app-only actions and the secret store ship in
4
4
  # 1.4.16-beta.11 (asset(import_model), which generate imports through, in beta.10).
5
- minServerVersion: 1.4.16-beta.11
5
+ minServerVersion: 1.4.16-beta.12
6
+
7
+ # Loadouts: named bundles of generate settings, read by the plugin as
8
+ # this.config.loadouts. A project adds or overrides them under
9
+ # ue-mcp.pluginConfig.tripo.loadouts in the project's config: an override replaces
10
+ # only the fields it names, a new name adds a loadout, and null removes one.
11
+ # Every built-in uses model H3.1, the cheapest the CLI can price, and standard
12
+ # texture quality; a premium option is never part of a built-in.
13
+ config:
14
+ loadouts:
15
+ humanoid:
16
+ description: A rigged biped for Unreal, imported as a skeletal mesh
17
+ guidance: >-
18
+ Prompt or draw a T-pose with the limbs apart from the torso; use an
19
+ A-pose for cloth. For a turnaround, pass views.
20
+ rig: true
21
+ rigType: biped
22
+ spec: unreal
23
+ format: glb
24
+ faceLimit: 8000
25
+ textureQuality: standard
26
+ pbr: false
27
+ params:
28
+ - smart_low_poly=true
29
+ - delight=true
30
+ - texture_alignment=original_image
31
+ - orientation=align_image
32
+ kind: skeletal
33
+ createPhysicsAsset: true
34
+ creature:
35
+ description: A rigged quadruped, imported as a skeletal mesh
36
+ rig: true
37
+ rigType: quadruped
38
+ format: glb
39
+ faceLimit: 20000
40
+ textureQuality: standard
41
+ pbr: false
42
+ kind: skeletal
43
+ createPhysicsAsset: true
44
+ prop:
45
+ description: A low-poly static mesh with no rig
46
+ rig: false
47
+ format: glb
48
+ faceLimit: 5000
49
+ textureQuality: standard
50
+ pbr: false
51
+ kind: static
52
+ hero-prop:
53
+ description: A higher-detail static mesh with no rig
54
+ rig: false
55
+ format: glb
56
+ faceLimit: 30000
57
+ textureQuality: standard
58
+ pbr: true
59
+ kind: static
60
+ environment:
61
+ description: A static mesh with Nanite on, for large or dense pieces
62
+ rig: false
63
+ format: glb
64
+ faceLimit: 50000
65
+ textureQuality: standard
66
+ pbr: true
67
+ kind: static
68
+ nanite: true
6
69
 
7
70
  # Tripo owns a domain (AI 3D generation, rigging and animation) that fits no
8
71
  # built-in category, so the plugin provides its own `tripo` tool. Every Tripo
@@ -32,9 +95,10 @@ registry:
32
95
  tagline: Prompt or image to a rigged, textured Unreal character with Tripo
33
96
  description: >-
34
97
  Runs Tripo's own CLI from ue-mcp: one call generates a model, rigs it with
35
- Unreal Mannequin bone names, optionally adds a preset animation, converts
36
- it to FBX and imports it as a skeletal mesh. Every other CLI command is
37
- available through a passthrough.
98
+ Unreal Mannequin bone names, optionally adds a preset animation and
99
+ imports it as a skeletal mesh, with a credit estimate before anything is
100
+ spent. Turnaround images are prepared for multiview. Every other CLI
101
+ command is available through a passthrough.
38
102
  category: asset
39
103
  tags: [tripo, ai-3d, text-to-3d, image-to-3d, rigging, skeletal-mesh]
40
104
 
@@ -42,7 +106,9 @@ provides:
42
106
  tripo:
43
107
  description: >-
44
108
  Tripo AI 3D generation into Unreal, through the pinned tripo-cli.
45
- generate turns a prompt, image or task into an imported asset; cli runs
109
+ generate turns a prompt, image or task into an imported asset (run it
110
+ with dryRun=true first to see the cost); prepare_images readies
111
+ turnaround views for free; cli runs
46
112
  any tripo command (doctor, balance, task, anim, mesh, model, ...) and
47
113
  returns its JSON. Not signed in: ask the user to open the plugin's
48
114
  Settings in Studio, or sign in with
@@ -53,34 +119,51 @@ provides:
53
119
  effect: mutate
54
120
  visibility: [model] # the agent's; the settings view never spends credits
55
121
  description: >-
56
- Prompt, image(s) or task ref to an imported Unreal asset. Runs one
57
- `tripo make` with --for anim (rig=true, default) or --for game-pc,
58
- a --then chain of rig-check, rig (biped with spec=unreal), an
59
- optional retarget preset and convert:fbx, and -p pbr=true, writing
60
- to <project>/Saved/Tripo/<name>. Then imports the model with
61
- asset(import_model), kind=skeletal when rigged, static otherwise.
62
- Returns task ids, credits, the import result and its warnings. When
63
- make outlasts waitSec (or wait=false) it returns status=pending and
64
- the generate(resume=<jobDir>) call that finishes the import.
65
- dryRun=true returns the plan and credit estimate without spending.
122
+ Spends Tripo credits. Call it with dryRun=true first: that returns
123
+ the exact settings, where each came from, and the credit estimate for
124
+ nothing, and the same call without dryRun then generates. loadout
125
+ picks a named bundle of settings (humanoid, creature, prop,
126
+ hero-prop, environment, or a project's own; list them with the
127
+ loadouts action) and options in the call override it. Prompt, image(s), turnaround views
128
+ or task ref to an imported Unreal asset. Runs one `tripo make` with
129
+ the cheapest priced model (H3.1) unless model is passed (not P2, even
130
+ though Tripo's own guide defaults to it), GLB output, and no PBR
131
+ unless pbr=true, plus --for anim (rig=true, default) and a --then chain of
132
+ rig-check, rig (biped with spec=unreal) and an optional retarget
133
+ preset; convert:fbx runs last only for format=fbx. Output goes to
134
+ <project>/Saved/Tripo/<name>, with the raw GLB and preview.png saved
135
+ beside it. Every result lists the settings used and the credit
136
+ estimate, with the generation task ids and credits spent. The model
137
+ is then imported with asset(import_model), kind=skeletal when rigged,
138
+ static otherwise; if that import cannot run, the result is still
139
+ success with status=generated and the ready asset(import_model) call
140
+ to make next. When make outlasts waitSec (or wait=false) it returns
141
+ status=pending and the generate(resume=<jobDir>) call that finishes.
142
+ Turnaround views are prepared first; see prepare_images.
66
143
  schema:
67
144
  prompt: { type: string, description: "Text prompt" }
68
- images: { type: array, description: "Absolute image path(s) or URLs: one image, or 2 to 4 views" }
145
+ images: { type: array, description: "Absolute image path(s) or URLs: one image, or 2 to 4 views named front, left, back, right in the file name" }
146
+ views: { type: object, description: "Turnaround as a map of view to image path, e.g. {front: ..., left: ..., back: ...}. Front plus at least one other. Prepared before upload." }
147
+ prepareImages: { type: boolean, description: "Prepare multiview images before upload (default true); false sends the originals" }
148
+ loadout: { type: string, description: "A named bundle of settings (see the loadouts action): humanoid, creature, prop, hero-prop, environment, or one the project defines. Options in this call override it field by field" }
149
+ faceLimit: { type: number, description: "Face limit, passed as -p face_limit (overrides the loadout)" }
150
+ textureQuality: { type: string, description: "standard | detailed, passed as -p texture_quality. detailed costs more; use it only when asked" }
69
151
  task: { type: string, description: "An existing Tripo task id (or @last / @name) to continue from" }
70
152
  rig: { type: boolean, description: "Rig and import as a skeletal mesh (default true)" }
71
153
  rigType: { type: string, description: "biped (default) | quadruped | hexapod | octopod | avian | serpentine | aquatic | others | auto (rig-check decides)" }
72
154
  spec: { type: string, description: "Biped bone naming (default unreal): unreal | tripo | mixamo | actorcore | unity | vrm" }
73
155
  animation: { type: string, description: "One preset animation, e.g. walk or preset:quadruped:walk" }
74
156
  retexture: { type: boolean, description: "Add a texture step first (for an untextured task ref)" }
75
- pbr: { type: boolean, description: "PBR textures (default true)" }
76
- format: { type: string, description: "fbx (default, adds convert:fbx) | glb" }
77
- model: { type: string, description: "Generation model, passed as --model" }
78
- params: { type: array, description: "Extra make -p key=value pairs, e.g. [\"face_limit=20000\"]" }
157
+ pbr: { type: boolean, description: "PBR textures (default false, as in Tripo's guidance)" }
158
+ segmentHint: { type: string, description: "Separate garments or parts: after generating, runs mesh smartsegment on the GLB with this hint (e.g. \"poncho, body\"), then rigs the segmented model. Adds 55 credits at list price; off by default. Not with task or then" }
159
+ format: { type: string, description: "glb (default) | fbx (adds convert:fbx as the last step)" }
160
+ model: { type: string, description: "Generation model, passed as --model. Default H3.1, the cheapest the CLI can price; P2 and P1 only when asked" }
161
+ params: { type: array, description: "Extra make -p key=value pairs, e.g. [\"face_limit=20000\"]. Premium options such as texture_quality=detailed go here, only when asked" }
79
162
  then: { type: string, description: "Replace the whole --then chain" }
80
163
  name: { type: string, description: "Asset and job folder name (default from the prompt)" }
81
164
  wait: { type: boolean, description: "Default true; false returns pending at once" }
82
165
  waitSec: { type: number, description: "How long this call waits for make (default 300)" }
83
- dryRun: { type: boolean, description: "Plan and credit estimate only; nothing is spent" }
166
+ dryRun: { type: boolean, description: "Run this first. Returns the exact settings and the credit estimate; nothing is spent" }
84
167
  resume: { type: string, description: "jobDir from a pending result: wait for it and import" }
85
168
  destination: { type: string, description: "Content folder (default /Game/Tripo)" }
86
169
  kind: { type: string, description: "auto | static | skeletal (default skeletal when rigged)" }
@@ -95,6 +178,43 @@ provides:
95
178
  onConflict: { type: string }
96
179
  save: { type: boolean }
97
180
 
181
+ loadouts:
182
+ task: tripo.loadouts
183
+ effect: read
184
+ visibility: [model]
185
+ description: >-
186
+ Free. Lists the built-in and project loadouts with their resolved
187
+ settings, where each setting comes from, and the guidance each
188
+ carries. Pick one with generate(loadout="<name>"). A project defines
189
+ its own, or changes a built-in, under
190
+ ue-mcp.pluginConfig.tripo.loadouts in the project's config.
191
+ schema:
192
+ name: { type: string, description: "Show one loadout" }
193
+
194
+ prepare_images:
195
+ task: tripo.prepare_images
196
+ effect: mutate
197
+ visibility: [model]
198
+ description: >-
199
+ Free. Prepares turnaround views for multiview generation without
200
+ calling Tripo, so the files can be inspected before credits are
201
+ spent. Flattens each view onto white, puts all of them on one square
202
+ canvas (default 1600 px) at one shared scale and baseline so heads
203
+ and feet line up, fills about 75% of the frame in its limiting
204
+ dimension, and writes PNGs named front, left, back and right to
205
+ <project>/Saved/Tripo/<name>/views. Originals are never modified.
206
+ Refuses a view under 256 px or over 20 MB and a turnaround without a
207
+ front view plus one other; warns below 1024 px and when a subject
208
+ touches the image edge. generate runs the same step on its own
209
+ multiview inputs.
210
+ schema:
211
+ views: { type: object, description: "Map of view to image path: front (required) plus at least one of left, back, right" }
212
+ images: { type: array, description: "Alternatively 2 to 4 files, named by view in the file name" }
213
+ name: { type: string, description: "Folder name under Saved/Tripo (default Turnaround)" }
214
+ outDir: { type: string, description: "Output folder instead of Saved/Tripo/<name>/views" }
215
+ canvas: { type: number, description: "Square canvas edge in pixels (default 1600)" }
216
+ fill: { type: number, description: "Share of the canvas the subject fills in its limiting dimension (default 0.75)" }
217
+
98
218
  cli:
99
219
  task: tripo.cli
100
220
  effect: mutate
@@ -161,6 +281,12 @@ tasks:
161
281
  tripo.generate:
162
282
  class_path: tasks/Generate
163
283
  description: "Prompt, image or task to an asset imported through core"
284
+ tripo.loadouts:
285
+ class_path: tasks/Loadouts
286
+ description: "List the loadouts and their resolved settings"
287
+ tripo.prepare_images:
288
+ class_path: tasks/PrepareImages
289
+ description: "Prepare turnaround views for multiview generation"
164
290
  tripo.cli:
165
291
  class_path: tasks/Cli
166
292
  description: "Run any tripo-cli command and return its JSON"