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
import {defineConfig} from 'vite';
import {fileURLToPath} from 'node:url';
import {existsSync} from 'node:fs';
import {bundleReceipt} from './scripts/bundle-receipt.mjs';
const maintainedFacade=new URL('../scene-kit/src/renderer/three-runtime.ts',import.meta.url);
const portableFacade=new URL('./shared/three-runtime.ts',import.meta.url);
export default defineConfig({
base:'./',
plugins:[bundleReceipt()],
publicDir:'.runtime',
server:{host:'127.0.0.1',port:4431,strictPort:true},
resolve:{alias:[{find:/^three$/,replacement:fileURLToPath(existsSync(maintainedFacade)?maintainedFacade:portableFacade)}],dedupe:['three','react','react-dom','@react-three/fiber']},
build:{outDir:'dist',rolldownOptions:{input:{game:'game.html'}}}
});