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 {readFileSync} from 'node:fs';
export function decodeUtf8(bytes:Uint8Array,context:string):string{
try{return new TextDecoder('utf-8',{fatal:true}).decode(bytes);}
catch(error){throw new Error(`${context}: invalid UTF-8`,{cause:error});}
}
export function readUtf8(path:string):string{return decodeUtf8(readFileSync(path),path);}