LLMs Can't Read Binary .glb Meshes — Giving Kiro 3D CAD Sight with a Custom Power, MCP & TypeScript Engine

2026-12-01来源 dev.toEnglish
LLMs Can't Read Binary .glb Meshes — Giving Kiro 3D CAD Sight with a Custom Power, MCP & TypeScript Engine

This post was written as part of the Kiroween 2026 hackathon.

Coding agents can read thousands of lines of TypeScript in seconds—but hand an LLM a binary .glb 3D CAD assembly and it is completely blind. Ask whether a retaining ring can slide off without pulling the central shaft, or click "Explode" in a standard 3D viewer, and parts ghost straight through solid metal.

For the Kiroween 2026 hackathon (Skeleton Crew category), I built UnboltKit inside Kiro IDE to solve both sides of that problem:

  1. Give Kiro direct geometric sight over binary .glb files via a custom CAD Assembly Auditor Power + local MCP server.
  2. Power two completely separate browser apps and a headless CI gate from one pure, zero-DOM TypeScript 3D disassembly core (@unboltkit/core):

Guide Forge checking the ring before and after removing the cap

1. Giving Kiro Geometric Sight over Binary .glb Files (MCP + Kiro Power + Crew CI)

Because binary glTF buffers aren't human-readable text, standard chat prompts have to guess how parts fit together. We wrapped UnboltKit's pure CPU planner into a local stdio MCP server (tools/cad-auditor-mcp) and packaged it with a triage skill as the CAD Assembly Auditor Kiro Power (powers/cad-assembly-auditor).

Once registered in .kiro/settings/mcp.json, Kiro calls three domain tools directly inside chat:

  • list_sample_kits — enumerates bundled solvable kits and intentional deadlock cages.
  • inspect_assembly_dbg — segments rigid mesh islands, builds a BVH-accelerated directional blocking graph, and returns either a proposed step sequence or a Tarjan strongly-connected deadlock witness naming the exact parts trapping one another (such as {dumbbell, captive_ring}).
  • diff_repairability — compares baseline vs. candidate .glb revisions to flag newly trapped parts or step-depth regressions.

We then wired the same auditor into UnboltKit Assembly CI—a standalone Kiro Crew app with a custom assembly-auditor agent whose SessionStart git hook detects modified .glb files, writes disassembly-manifest.json, and fails CI on new deadlocks.

2. Where Vibe-Coding Broke: Catching a 0-Hit Ray Blind Spot with Kiro Specs & Steering

Early on, Kiro vibe sessions made it fast to prototype Three.js camera framing and tactile UI interactions. Then a minimal three-bar test exposed a subtle bug in our legacy ray checker: one thin bar slid edge-to-edge straight through another bar, while sampled vertex rays missed the contact and reported 0 hits.

Three Kiro workflow primitives stopped us from cutting corners:

  • Anti-Spec-Gaming Steering (.kiro/steering/): Four steering files combined inclusion: always (geometry-invariants.md and no-spec-gaming.md banning hardcoded part names or fixture exceptions) with path-scoped inclusion: fileMatch (ui-separation.md on apps/**/* keeping both apps visually independent and 100% playable on mute).
  • Bugfix Spec Workflow (.kiro/specs/crossed-bars-false-verified/bugfix.md): Writing the exact failure geometry and verdict truth table (Clear, Blocked, Unverified) before touching code led us to separate heuristic multi-step planning from an independent finite straight-move verifier (moveVerifier.ts) that pairs bounded surface rays with feature-edge sweeps against opposing faces—and strip every unverified badge from full plans in the UI.
  • 17 fast-check Property Suites & Workspace Hooks (.kiro/hooks/): Random SE(3) rigid-transform and watertight 2-to-8 part assembly arbitraries proved that oriented-bounding-box pruning produces the exact same edges and triangle lists as an unpruned search (Property 18), while Kiro file-save hooks reran quick geometry checks on every solver edit and kept motion primitives synced across workspaces.

Unbolt Blitz running the same engine as a 3D game

Try It in Your Browser (Zero Sign-In)

原文:https://www.a8q9.cn/en/article/llms-can-t-read-binary-glb-meshes-giving-kiro-3d-cad-sight-with-a-custom-power-m-ad8e89.html

相关文章