Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
/** Resolve workers in source, compiled SDK and installed bundle layouts. */
export function isolatedWorkerUrls(moduleUrl: string): {
worker: URL;
probe: URL;
transport: URL;
} {
const source = new URL(moduleUrl).pathname.endsWith('.ts');
const sdk = new URL(moduleUrl).pathname.endsWith('/isolation.js');
const base = new URL(source || sdk ? './' : '../lib/evaluator/', moduleUrl);
const extension = source ? 'ts' : 'js';
return {
worker: new URL(`worker.${extension}`, base),
probe: new URL(`probe-worker.${extension}`, base),
transport: new URL('transport-worker.mjs', base),
};
}