kosh
Health Uyari
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Basarisiz
- exec() — Shell command execution in backend/src/main/resources/scripts/blender_daemon.py
- process.env — Environment variable access in frontend/src/app/layout.tsx
- network request — Outbound network request in frontend/src/app/page.tsx
- network request — Outbound network request in frontend/src/app/share/[id]/page.tsx
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Minimalist Developer-First Creative Model Context Protocol (MCP) Workstation Real-Time Parametric 3D CAD • Digital Sculpting • Procedural Animation • Headless Blender 5.2 LTS
K O S H (कौश)
Minimalist Developer-First Creative Model Context Protocol (MCP) Workstation
Real-Time Parametric 3D CAD • Digital Sculpting • Procedural Animation • Headless Blender 5.2 LTS
[!NOTE]
Live Demo Walkthrough: Demonstrates real-time 3D model synthesis, interactive viewport manipulation, DCC inspector synchronization, and headless Blender MCP integration. High-resolution 60fps recording is also available at assets/videos/demo.mp4.
Overview
Kosh (कौश — treasury / vessel of creation) is a high-performance, minimalist 3D workstation and Model Context Protocol (MCP) server hub. It bridges modern AI coding assistants with native desktop Blender 5.2 LTS in headless execution mode, allowing developers and designers to synthesize, manipulate, animate, and color 3D assets on the fly via JSON-RPC 2.0.
Built with a titanium-slate CAD workstation aesthetic, Kosh couples a Spring Boot 3.3 / Java 21 MCP server with an interactive Next.js 15 / Three.js digital content creation (DCC) studio.
Architecture
┌─────────────────────────────────────────────────────────────┐
│ LLM / AI Agent / MCP Client │
│ (Claude Desktop / Antigravity / Cursor / Gemini) │
└──────────────────────────────┬──────────────────────────────┘
│ JSON-RPC 2.0 (POST /mcp)
▼
┌─────────────────────────────────────────────────────────────┐
│ Spring Boot 3.3 MCP Server (:8080) │
│ ├─ McpController (/mcp) ├─ ShareController (/api) │
│ ├─ McpToolRegistry (82 Tools) ├─ AssetController │
│ ├─ McpResourceRegistry (20) ├─ McpPromptRegistry (13) │
│ └─ GoogleGeminiClient (BYOK) └─ BlenderExecutionService │
└──────────────────────────────┬──────────────────────────────┘
│ Subprocess Execution
▼
┌─────────────────────────────────────────────────────────────┐
│ Headless Blender Engine 5.2.1 LTS │
│ ├─ bpy / bmesh ├─ Dynamic Sculpting │
│ ├─ Geometry Nodes ├─ Shader Graph / Matcaps │
│ ├─ Rigid Body / Particle Sim └─ GLTF/GLB/STL Exporters │
└──────────────────────────────┬──────────────────────────────┘
│ Compiled 3D Buffers (.glb)
▼
┌─────────────────────────────────────────────────────────────┐
│ Next.js 15 Terminal Studio (:3000) │
│ ├─ 3D Viewport Navigation Gizmo (6-Axis Depth-Projected) │
│ ├─ All-in-One Universal Transform Handles (Move/Rot/Scale) │
│ ├─ Dope Sheet Animation Timeline with Keyframe Diamonds │
│ ├─ Multi-Palette CAD Theme Engine (Titanium/Blender/Nordic)│
│ ├─ Standalone 1-File HTML Exporter & Share Route (/share) │
│ └─ Hardware-Accelerated Canvas Protractor & Marquee Engine │
└─────────────────────────────────────────────────────────────┘
Expanded Creative MCP Tools Suite
Kosh exposes a comprehensive suite of 85 native creative CAD, DCC, repair, and surgical manipulation tools over JSON-RPC 2.0 (POST /mcp and GET /mcp/sse), every single one declaring explicit boolean behavioral hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) for full M8ven Trust Index Grade A compliance:
Precision 3D CAD & Engineering
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 1 | cad_create_primitive |
CAD Primitives | Precision parametric CAD solids (cube, cylinder, cone, sphere, torus) with constraints. | false, false, false, false |
| 2 | cad_boolean_operation |
CSG Booleans | Exact manifold boolean operations (DIFFERENCE, UNION, INTERSECT). | false, false, false, false |
| 3 | cad_apply_modifier |
CAD Modifiers | Numerical CAD modifiers (BEVEL, SUBSURF, MIRROR, SOLIDIFY). | false, false, false, false |
| 4 | cad_inspect_scene |
Topology Audit | Vertex/face count, bounding box, dimensions, and watertight manifold status. | true, false, true, false |
| 5 | cad_measure_dimensions |
Caliper Tool | Digital caliper measuring volume, bounding box, surface area, and 3D print readiness. | true, false, true, false |
| 6 | cad_hollow_shell |
3D Printing | Parametric hollow shelling with uniform wall thickness and resin drain holes. | false, false, false, false |
| 7 | cad_generate_threads |
Fasteners | Precision ISO metric screw threads, bolts, and nuts with standardized pitch. | false, false, false, false |
| 8 | cad_generate_gear |
Kinematics | Parametric spur, helical, and bevel gears with explicit tooth count and module. | false, false, true, false |
| 9 | cad_convex_hull |
Collision Hull | Minimal convex bounding hull for physics colliders and robotic envelopes. | false, false, true, false |
| 10 | cad_separate_loose_parts |
Multi-Body | Splits multi-body meshes into distinct child objects with centered origins. | false, false, true, false |
| 11 | cad_project_curve_cut |
Stamping | Projects 2D profiles onto curved 3D surfaces to emboss, deboss, or knife cut. | false, false, true, false |
| 12 | cad_lattice_infill |
Lightweight | Procedural structural lattice infills (gyroid, honeycomb, wireframe). | false, false, false, false |
| 13 | cad_wireframe_cage |
Lattice Strut | Transforms solid geometry into open structural wireframe truss lattices. | false, false, true, false |
| 14 | cad_point_cloud_surface |
Elevation | Parametric surface mesh synthesis from coordinate point clouds and heightmaps. | false, false, true, false |
| 15 | cad_export_engineering_drawing |
Blueprint 2D | Exports SVG 2D technical orthographic blueprint drawings with title blocks. | true, false, true, false |
| 16 | cad_apply_fillet_chamfer |
Edge Bevel | Metric edge rounding (fillet) or chamfer beveling via angle-limited modifier. | false, false, false, false |
Instant Assembly & Kitbashing (Zero LLM Latency)
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 17 | cad_assemble_kit |
Assembly | Pre-baked parametric templates (flange, quadcopter, panel, truss, tree) in <10ms. | false, false, true, false |
| 18 | cad_assemble_puzzle_pieces |
Puzzle Assembly | Joins modular puzzle pieces (dovetails, NEMA mounts, 2020 rails) to satisfy user query recipes. | false, false, true, false |
| 19 | cad_batch_csg |
Batch Pipeline | Sequential CSG booleans executed in one single transaction round-trip. | false, false, false, false |
| 20 | cad_synthesize_composite |
Generative CAD | Multi-part composite CAD assembly from natural language with aesthetic styles. | false, false, false, false |
| 21 | cad_compose_compound_scene |
Environments | Multi-subject compositions situated in rich cosmic/orbital environments. | false, false, false, false |
| 22 | scene_assembler |
Staging | Multi-asset modular architecture and compound scene assembly. | false, false, false, false |
Photorealistic Rendering & Studio Lighting
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 23 | cad_render_frame |
Beauty Render | Physically-based raytraced render via Blender EEVEE or Cycles engine. | true, false, true, false |
| 24 | blender_render_frame |
Studio Render | Frame capture with transparent background, studio lighting, and framing. | true, false, true, false |
| 25 | cad_studio_lighting_preset |
Lighting Rigs | 3-Point Classic, Cyberpunk Neon, Product Softbox, and Dramatic Rim rigs. | false, false, false, false |
| 26 | cad_apply_pbr_preset |
PBR Presets | Calibrated optical materials (Titanium, Carbon Fiber, Glass, Gold, Obsidian). | false, false, false, false |
| 27 | cad_batch_multiview_render |
Blueprints | 4-view orthographic and isometric blueprint engineering frames. | true, false, true, false |
| 28 | lighting_studio |
Custom Rig | Custom photographic lighting rigs, cyclorama infinity backdrops. | false, false, false, false |
| 29 | material_shader |
Shader Graph | Procedural Principled BSDF node trees with micro-displacement. | false, false, false, false |
| 30 | camera_compositor |
Director Rig | Cinematic camera rigs: 360-degree turntable orbits, dolly tracks, macro lenses. | false, false, false, false |
Digital Sculpting, Animation & Multi-Domain
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 31 | cad_uv_unwrap_auto |
UV Mapping | Smart UV Project unwrapping with customizable angle limits and packing margins. | false, false, true, false |
| 32 | blender_sculpt_op |
Sculpting | Digital sculpting brushes (clay, crease, inflate, grab) & dynamic remeshing. | false, false, false, false |
| 33 | blender_mesh_ops |
BMesh Ops | Manifold CSG booleans, chamfer bevels, solidification, and decimation. | false, false, false, false |
| 34 | blender_uv_paint |
Texturing | Smart UV Project unwrapping, normal map baking, and vertex colors. | false, false, false, false |
| 35 | blender_animate_pipeline |
Kinematics | Baked keyframed rigid body falls, cloth drapery, wave deforms, turntables. | false, false, false, false |
| 36 | geometry_nodes |
Algorithmic | Procedural Geometry Node networks, point scattering, and lattices. | false, false, false, false |
| 37 | kosh_svg_to_3d |
2D to 3D | Extrudes 2D vector SVG path coordinates into beveled 3D solids. | false, false, false, false |
| 38 | kosh_audio_reactive |
Audio Motion | 16-band frequency equalizer bars and concentric spectrum rings. | false, false, false, false |
| 39 | kosh_ascii_to_voxel |
Voxel Engine | Synthesizes multi-layered 3D voxel grid sculptures from ASCII templates. | false, false, false, false |
| 40 | kosh_cad_export_step |
Engineering | Precision engineered CAD models (spur gears, flange bearings, mounts). | false, false, false, false |
| 41 | mcp_check_tool |
Trust Index | Vets any MCP server across 120,000+ indexed servers via M8ven Trust Index. | true, false, true, true |
| 42 | kosh_system_health |
Telemetry | Live operational diagnostics, Blender 5.2 LTS status, and daemon telemetry. | true, false, true, true |
Arrays, Typography & Print Validation
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 43 | cad_linear_array |
Pattern Array | Duplicates a mesh in a linear grid with count, per-axis offset, and axis alignment. | false, false, true, false |
| 44 | cad_radial_array |
Pattern Array | Duplicates a mesh around a circular path with count, radius, and start angle. | false, false, true, false |
| 45 | cad_text_emboss |
Typography | Embosses or engraves 3D text onto a mesh surface via exact boolean operation. | false, false, true, false |
| 46 | cad_check_manifold |
Print Validation | Watertight/manifold diagnosis: boundary and non-manifold edge counts, volume, bbox. | true, false, true, false |
| 47 | cad_quick_fillet_chamfer |
Edge Bevel | Alias of cad_apply_fillet_chamfer for instant edge rounding/chamfering. |
false, false, true, false |
Online Models & Verified Asset Ingestion
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 48 | cad_search_online_models |
Asset Search | Searches verified online catalog repositories by semantic natural language queries. | true, false, true, true |
| 49 | cad_download_online_model |
Model Ingestion | Downloads, validates, caches, and imports base 3D models directly into scene. | false, false, true, false |
Parametric DCC & Extended Procedural Pipeline
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 50 | create_parametric_primitive |
Parametric Primitive | Direct parametric primitive synthesis (cube, cylinder, cone, sphere, torus). | false, false, false, false |
| 51 | apply_boolean_op |
CSG Boolean | Direct CSG difference, union, or intersection operation. | false, false, false, false |
| 52 | extrude_profile_2d |
2D to 3D Extrude | Extrudes 2D polygonal cross-section profiles along normal or arbitrary vectors. | false, false, false, false |
| 53 | inspect_geometry |
Topology Telemetry | Topological inspection: vertices, faces, edges, dimensions, and bounding boxes. | true, false, true, false |
| 54 | apply_pbr_material |
Material Pipeline | Assigns calibrated PBR material shaders with roughness and metalness. | false, false, false, false |
| 55 | export_cad_artifact |
Artifact Export | Packages and exports CAD scenes into GLB, STL, or OBJ buffers. | true, false, true, false |
| 56 | blender_mesh |
Mesh Generator | Core procedural Blender mesh synthesis engine. | false, false, false, false |
| 57 | cad_model |
CAD Engine | Core CAD modeling generator with dimensional constraints. | false, false, false, false |
| 58 | blender_animation |
Animation Core | Procedural keyframing and camera animation pipeline. | false, false, false, false |
| 59 | mesh_modifier |
Modifier Stack | Universal modifier stack execution (bevel, subsurf, mirror, boolean). | false, false, false, false |
| 60 | blender_sculpt |
Dynamic Sculpt | Dynamic topology sculpting engine with voxel remeshing. | false, false, false, false |
| 61 | physics_simulation |
Physics Engine | Rigid body, cloth, and particle dynamics solver. | false, false, false, false |
| 62 | rigging_armature |
Skeletal Rig | Armature bones, forward/inverse kinematics, and vertex weighting. | false, false, false, false |
Surgical CAD Modification Suite
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 63 | cad_transform_part |
Spatial Transform | Surgically translates, rotates, and scales named components with matrix baking. | false, false, true, false |
| 64 | cad_bisect_slice |
Planar Slicing | Planar cross-section bisection cut with manifold cap filling. | false, false, true, false |
| 65 | cad_recolor_part |
Material Surgery | Targeted PBR color, roughness, metalness, and emission reassignment. | false, false, true, false |
| 66 | cad_decimate_mesh |
Polycount Control | Intelligent polygon decimation preserving sharp CAD boundaries and UVs. | false, false, true, false |
| 67 | cad_voxel_remesh |
Solid Watertight | Fuses intersecting parts into a single seamless watertight OpenVDB solid. | false, false, true, false |
| 68 | cad_mirror_symmetry |
Bilateral Symmetry | Mirrors geometry across coordinate planes with automated seam welding. | false, false, true, false |
| 69 | cad_deform_taper_twist |
Nonlinear Deform | Spatial nonlinear deformation (taper, twist, bend, stretch) along chosen axes. | false, false, true, false |
| 70 | cad_delete_submesh |
Mesh Clean | Excises unwanted components, stands, or loose floating vertices by volume. | false, false, true, false |
| 71 | cad_extrude_face_region |
Push-Pull Extrude | Normal face extrusion for mounting tabs, bosses, flanges, and recesses. | false, false, true, false |
| 72 | cad_subdivide_smooth |
Curvature Polish | Catmull-Clark surface refinement with auto-smooth normal preservation. | false, false, true, false |
Advanced Geometric Repair, Assembly & Kinematics
| # | Tool Name | Domain | Description | Hints (RO, Destr, Idemp, OpenW) |
|---|---|---|---|---|
| 73 | cad_align_snap_objects |
Datum Snapping | Surgically snaps/aligns target object to anchor datum (Min/Max/Center/Stack). | false, false, true, false |
| 74 | cad_weld_vertices |
Seam Welding | Distance-based vertex merging to close cracks and seal non-manifold seams. | false, false, true, false |
| 75 | cad_flip_recalculate_normals |
Normals Repair | Consistent outward normal vector recalculation and face inversion repair. | false, false, true, false |
| 76 | cad_fill_holes |
Hole Capping | Automatically detects and caps open boundary perimeter holes for 3D printing. | false, false, true, false |
| 77 | cad_scale_to_bounding_box |
Dimensional Scale | Calibrates geometry to exact real-world dimensions in millimeters or uniform max. | false, false, true, false |
| 78 | cad_loft_curves |
Ruled Surface | Parametric cross-section profile skinning and ruled loft transitions. | false, false, true, false |
| 79 | cad_generate_helical_spring |
Coil Springs | Generates precision mechanical compression springs with ground ends. | false, false, true, false |
| 80 | cad_generate_o_ring_groove |
Fluid Seals | Precision annular O-ring gland and channel carving for hydraulic seals. | false, false, true, false |
| 81 | cad_split_into_components |
Island Separation | Separates disjoint connected mesh islands into independent child objects. | false, false, true, false |
| 82 | cad_explode_assembly_view |
Technical View | Radiates all scene components outward from assembly center of mass. | false, false, true, false |
| 83 | cad_image_to_model |
Image to 3D | Photo/sketch (base64) to watertight solid: vision_ai, base_match, or contour_extrusion with auto-fallback. | false, false, true, false |
| 84 | cad_analyze_image |
Vision Analysis | Multimodal description of a photo/sketch: primitives, proportions, features, recommended mode. | true, false, true, false |
| 85 | cad_extract_contours |
Contour Tracing | Offline sketch perimeter tracing to centered meter-space polygon points. | true, false, true, false |
Enterprise MCP Resources (26 Direct In-Memory Schemas)
Kosh pre-serializes domain knowledge into JVM memory at startup for sub-2ms resources/read resolution, eliminating LLM dimension hallucinations:
| # | Resource URI | Category | Description |
|---|---|---|---|
| 1 | kosh://scene/hierarchy |
Live Dynamic | Complete active scene graph tree, object transforms, and material IDs. |
| 2 | kosh://engine/capabilities |
Live Dynamic | Blender 5.2 LTS version, Python packages (NumPy), supported formats, poly quotas. |
| 3 | kosh://materials/catalog |
Live Dynamic | Ready-to-use studio PBR materials: MatteTitanium, ClearGlass, CastIron, CarbonFiber. |
| 4 | kosh://materials/library |
Curated Presets | Built-in material presets (Titanium, Frosted Acrylic, Redwax, Chrome, Cyber Neon). |
| 5 | kosh://scene/bounding-boxes |
Geometry | World-space Axis-Aligned Bounding Box (AABB) extents and dimensions. |
| 6 | kosh://viewport/active-selection |
Selection | Selected mesh vertex counts, face counts, active modifier stacks, transforms. |
| 7 | kosh://library/modular-models |
Catalog | Modular low-poly components and compound space/studio scene presets. |
| 8 | kosh://specs/hardware/metric-fasteners |
Fasteners | ISO 4762 clearance holes, tap drill diameters, socket-cap dimensions for M2-M12. |
| 9 | kosh://materials/pbr-presets |
Shaders | Disney Principled BSDF color hex, roughness, and metalness calibrated tokens. |
| 10 | kosh://guidelines/fdm-tolerances |
3D Printing | FDM print design rules: nozzle diameters, wall thickness, hole sizes, overhangs. |
| 11 | kosh://specs/engineering/stepper-motors |
Robotics | NEMA 14, 17, 23, 34 CAD dimensions, faceplate widths, pilot bosses, shaft diameters. |
| 12 | kosh://specs/standards/iso-bearings |
Bearings | ISO 15 deep groove ball bearings (608, 623, 624, 625, 688, 6900) bore/outer/width specs. |
| 13 | kosh://guidelines/sla-resin-tolerances |
Resin 3D Print | SLA/DLP photopolymer design rules: drain holes, wall thickness, suction cup prevention. |
| 14 | kosh://materials/physical-constants |
Physics | Mass density (kg/m3), Young's modulus, yield strength, Poisson's ratio for 7 materials. |
| 15 | kosh://standards/gdt-symbols |
GD&T Standard | ASME Y14.5 and ISO 1101 geometric dimensioning symbols and tolerance zones. |
| 16 | kosh://specs/optics/studio-hdri-lighting |
Photography | Photographic lighting ratios (2:1, 4:1, 8:1), Kelvin color temps, cyclorama curvature. |
| 17 | kosh://presets/game-engine-lod |
Game Engine | Real-time poly budgets and texture map sizes across LOD0 Hero to LOD3 Billboard. |
| 18 | kosh://specs/aerospace/unmanned-airframe |
Aerospace | UAV multirotor airframe design rules, prop tip clearances, motor PCD standards. |
| 19 | kosh://library/puzzle-pieces |
Modular Library | 12 CAD puzzle pieces with mate sockets, dovetails, NEMA brackets, and compound recipes. |
| 20 | kosh://library/saved-models |
Pre-Engineered | Complete multi-part assemblies: quadcopter drone, planetary gearbox, compound microscope. |
| 21 | kosh://specs/hardware/heat-set-inserts |
Fasteners | Brass heat-set insert hole/boss/engagement sizing (M2-M6) for printed bosses. |
| 22 | kosh://materials/filaments |
3D Printing | FDM filament nozzle/bed temps, tensile strength, shrinkage, and use cases. |
| 23 | kosh://specs/printers/build-volumes |
Printers | Prusa, Bambu Lab, Creality, and Voron build volumes for part fit-checking. |
| 24 | kosh://standards/iso-2768-tolerances |
Tolerancing | ISO 2768 f/m/c/v tolerance classes for linear and angular dimensions. |
| 25 | kosh://guides/image-to-3d |
Image Ingestion | Reconstruction modes, REST/MCP wiring, pipeline stages, and reliability tips for photo/sketch input. |
| 26 | kosh://guides/sketch-conventions |
Image Ingestion | Drawing rules for reliable sketch-to-3D: strokes, closed contours, views, per-mode expectations. |
Precision Engineering MCP Prompts (19 Standardized Blueprints)
Connected LLM clients (Claude Desktop, Cursor, Gemini) can query prompts/list and prompts/get to pull hardened step-by-step CAD plans with zero syntax hallucinations:
| # | Prompt Blueprint | Focus Domain | Key Arguments |
|---|---|---|---|
| 1 | scaffold_parametric_enclosure |
Electronics Enclosures | lengthMm, widthMm, heightMm, wallThicknessMm |
| 2 | optimize_manifold_topology |
Mesh Repair | meshName |
| 3 | lowpoly_stylized_environment |
Game Environments | theme, budgetTris |
| 4 | harden_mechanical_part |
Mechanical Hardening | mesh_name, tolerance_mm |
| 5 | decompose_narrative_object |
CSG Tree Structuring | concept_description |
| 6 | design_spur_gear_train |
Gear Transmission | gearRatio, module, driverTeeth, faceWidthMm |
| 7 | photorealistic_product_hero_shot |
Studio Photography | meshName, materialPreset, lightingMood |
| 8 | generative_drone_frame |
UAV Airframe | propellerDiameterInch, motorPcdType, armThicknessMm |
| 9 | procedural_architectural_pavilion |
Parametric Architecture | spanMeters, ribCount, canopyStyle |
| 10 | reverse_engineering_blueprint_to_3d |
2D to 3D CAD | blueprintDescription, nominalToleranceMm |
| 11 | sculpt_creature_bust |
Digital Sculpting | creatureType, voxelResolutionMm |
| 12 | generate_3d_printable_snapfit |
Snap-Fit Engineering | beamLengthMm, wallThicknessMm, catchDepthMm, entryAngleDeg |
| 13 | assemble_modular_puzzle_recipe |
Modular Assembly | recipeName, clearanceMm, scaleMultiplier |
| 14 | optimize_model_for_3d_printing |
Print Readiness | meshName, filament, nozzleDiameterMm, supportless |
| 15 | design_heat_set_insert_mount |
Insert Boss Design | threadSize, insertLengthMm, mountCount, patternPcdMm |
| 16 | plan_linear_motion_stage |
Linear Motion | travelMm, payloadKg, driveType, buildVolumeMm |
| 17 | image_to_3d_model |
Image to 3D | imageBase64, prompt, mode, format |
| 18 | hand_sketch_to_printable_part |
Print-Ready Sketches | sketchBase64, targetSizeMm, material |
| 19 | analyze_and_reconstruct_reference_image |
Vision Ingestion | imageBase64, notes |
Modular Puzzle-Piece Assembly Engine & Saved Models Library
Kosh introduces a physical interlocking assembly subsystem where CAD components act like modular puzzle pieces with calibrated socket vectors, enabling AI agents and connected clients to stitch components together to satisfy complex user queries with zero manual CAD modeling.
1. Interlocking Puzzle Pieces (kosh://library/puzzle-pieces)
The resource exposes 12 parametric CAD puzzle pieces adhering to the Kosh Modular Interlocking Standard (KMIS-2026), each specifying exact envelope dimensions, socket connection points, normal vectors, and 0.2mm nominal slide-fit tolerances:
dovetail_male_plate: 30x30x6mm planar plate with male dovetail tongue on +X and female groove on -X (15-degree wedge angle).dovetail_female_plate: 30x30x6mm planar plate with dual female dovetail grooves for bidirectional interlocking.corner_gusset_90: 25x25x20mm structural right-angle gusset with dual M3 counterbored holes and internal stiffening rib.t_slot_rail_2020: 20x20x100mm metric extrusion rail featuring standard 6mm slot profiles along 4 faces and central M5 tap core.bearing_block_608: 36x36x12mm pillow block housing with press-fit pocket for 608 ball bearings (22mm outer diameter, 8mm bore).nema17_motor_mount: 42.3x42.3x8mm stepper motor faceplate with 22.5mm pilot boss clearance and 31mm square PCD M3 bolt pattern.cantilever_strut: 14x14x80mm lightweight I-beam linkage strut with clevis pin pivot ends.ball_socket_joint: 20x20x28mm spherical ball-and-cup joint delivering +/- 35-degree conical articulation.hex_hub_6way: 32x32x15mm isogrid anchor node radiating 6 structural sockets at 60-degree increments for space frames.snap_fit_enclosure_base: 80x50x20mm perimeter snap-bead enclosure base with 4 internal PCB standoffs.snap_fit_enclosure_lid: 80x50x6mm mating lid with flexible cantilever hooks (0.25mm retention engagement).servo_horn_linkage: 40x12x5mm actuator arm featuring a standard 25T spline hub and M2 pushrod clevis hole.
2. Turnkey Composite Assembly Recipes
When an AI assistant receives natural language user requests, it matches them directly to pre-solved puzzle piece recipes executed deterministically via cad_assemble_puzzle_pieces:
interlocking_dovetail_plate("puzzle floor tile", "modular interlocking plates"): 4-tile planar lattice joined via 0.2mm slide dovetails with alternating dark titanium and brushed brass finishes.robotic_articulated_arm("robotic arm", "servo manipulator", "pick and place robot"): Multi-jointed arm mating a NEMA 17 motor mount, 608 bearing pivot, twin linkage struts, and servo clevis horn.modular_cube_chassis("cube frame", "extrusion chassis", "3D printer cage"): Rigid 3D cubic enclosure assembled from 12 2020 extrusion rails joined by 8 90-degree corner gussets.geodesic_hex_truss("hex truss", "space frame", "honeycomb lattice"): Isogrid structural node radiating 60-degree interlocking struts into an outer tension perimeter.bearing_transmission_carrier("transmission plate", "gearbox carrier", "motor bearing mount"): Mechanical powertrain sub-assembly mating a NEMA 17 faceplate to twin 608 pillow blocks across dual 2020 rails with a precision 8mm ground shaft.
3. Pre-Engineered Saved Complete Assemblies (kosh://library/saved-models)
For instant turn-key prototyping, Kosh pre-bakes complete multi-part CAD assemblies accessible directly through the resource registry:
drone_quadcopter_pro: Enterprise Pro Quadcopter Airframe (350x350x85mm) featuring carbon fiber arms, brushless motor mounts, avionics canopy, and landing skids.planetary_gearbox_stage: Epicyclic Planetary 4:1 Gearbox (80x80x45mm) with 48T outer ring gear, 16T central sun gear, 3 planet gears on carrier plate, and 8mm input shaft.biomedical_microscope_body: Laboratory Optical Compound Microscope (180x220x360mm) with cast iron arm, revolving quad objective turret, mechanical XY stage, and focus dials.modular_electronics_housing: IP54 DIN-Rail Instrument Housing (120x80x40mm) with O-ring gasket groove, transparent polycarbonate lid, PG7 cable gland knockouts, and 35mm DIN-rail spring clip.cosmic_astronaut_scene: Cinematic Apollo Astronaut Diorama (250x250x300mm) situated atop a cratered asteroid pedestal with dust rings and orbiting crystals.
Core Studio Features
1. Modern 3D Viewport Navigation Gizmo
- 6-Axis Real-Time Depth Sorting: Projects cardinal axes (
+X,-X,+Y,-Y,+Z,-Z) viacamera.matrixWorldInverse. Back axes render with subtle dashed stems and muted dots; front axes render with solid stems and sharp circular pill badges. - Smooth Easing Snap: Clicking any axis animates the viewport camera into orthogonal alignment over 300ms using ease-out cubic interpolation (
1 - (1 - t)³). - Interactive Drag Orbit: Dragging anywhere on the gizmo background disc smoothly orbits the scene in spherical coordinates.
- Center Isometric Hub: Center dot resets the camera view smoothly to Isometric (
iso). - HUD Mode Pill: Displays current view (e.g.
FRONT ORTHO,USER PERSPECTIVE) with 1-click Perspective / Orthographic projection toggle.
2. Universal Transform Gizmo
- Unified Axis Progression:
(0, 0, 0): Chamfered Zinc-white cube for uniform 3-axis scaling (0.18).0.28: Planar drag squares (XY Amber, XZ Cyan, YZ Purple) for smooth 2D sliding.0.65: Scale cubes positioned cleanly along shafts inside the rotation ring envelope.0.85: Rotation arc torus rings (0.016tube radius, 64 segments).1.15: Translation arrow cones (0.075radius).
- Dedicated Modes: Seamlessly switch between
All (Q),Select (V),Move (W),Rotate (E), andScale (R). - Z-Fighting Prevention: Visual handles render with
renderOrder = 99999anddepthTest = false.
3. Dope Sheet Animation Timeline
- Keyframe Diamond Markers (
◆): Visual indicators at transformation keyframes. Click diamonds to snap the scrubber head; drag diamonds to retime the sequence. - Parametric Exploded View Slider: 0% to 100% real-time disassembly slider using bounding box radial displacement vectors.
- Playback Controls: Play/Pause, Rewind, Looping, Frame counter, and Timecode display (
00:00:00).
4. 2-Way Blender Script Ingestion & Standalone HTML Export
- Paste
bpyScript: Paste raw Python scripts copied from Blender's Scripting workspace. The backend executes them headlessly and streams the resulting.glbdirectly into the viewport. - Standalone 1-File HTML Exporter: Exports an autonomous, self-contained single
.htmlfile embedding the model buffer (Base64) and Three.js from CDN with OrbitControls, directional lighting, and turntable rotation—zero server required. - Community Model Sharing & 1-Click Forking: Share creations via
/share/[id]with 3D cards, metadata, and an instant[ Fork in Kosh Studio ]workflow.
Prerequisites
Ensure the following tools are installed and available in $PATH:
| Requirement | Minimum Version | Verification |
|---|---|---|
| Java | OpenJDK 21+ | java -version |
| Maven | 3.9+ | mvn -version |
| Node.js | 20+ (20.x, 22.x, or newer) | node -v |
| npm | 10+ | npm -v |
| Blender | 4.x / 5.x LTS | blender --version |
Quickstart
Automated 1-Click Boot
Run the bootloader script, which verifies prerequisites, compiles the backend, and boots both services:
chmod +x run.sh
./run.sh
- Web Studio: http://localhost:3000
- MCP Server: http://localhost:8080
- Health Check:
curl http://localhost:8080/api/health
Manual Run
1. Backend MCP Server (Port 8080)
cd backend
mvn clean spring-boot:run
2. Frontend Terminal Studio (Port 3000)
cd frontend
npm install
npm run dev
MCP Usage (JSON-RPC 2.0)
1. List Available Tools
curl -s -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}' | jq
2. Execute 3D Mesh Tool (blender_mesh)
curl -s -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "X-Google-Key: YOUR_GEMINI_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "cad_model",
"arguments": {
"prompt": "Precision billet aluminum impeller with keyed center bore and perimeter bolt circle",
"format": "glb"
}
}
}' | jq
3. Execute Surgical CAD Modification (cad_bisect_slice)
curl -s -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "cad_bisect_slice",
"arguments": {
"targetMeshName": "Engine_Block",
"planePoint": [0.0, 0.0, 0.05],
"planeNormal": [0.0, 0.0, 1.0],
"fillCap": true
}
}
}' | jq
4. Execute Multi-Part Datum Alignment (cad_align_snap_objects)
curl -s -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "cad_align_snap_objects",
"arguments": {
"targetMeshName": "Bearing_Ring",
"referenceMeshName": "Shaft_Rotor",
"alignmentMode": "STACK_TOP",
"alignmentAxis": "z"
}
}
}' | jq
5. Connect Claude Desktop / Cursor / Zed (claude_desktop_config.json)
Option A — SSE transport (no Python required):
{
"mcpServers": {
"kosh": {
"url": "http://localhost:8080/mcp/sse"
}
}
}
Option B — stdio bridge (works with clients that only support command/args):
{
"mcpServers": {
"kosh": {
"command": "python3",
"args": ["/path/to/Kosh/scripts/kosh_mcp_stdio.py"]
}
}
}
The stdio bridge (scripts/kosh_mcp_stdio.py) forwards line-delimited JSON-RPC over stdio to http://localhost:8080/mcp (override with KOSH_MCP_URL; sends X-Google-Key: $GEMINI_API_KEY when set). With the server running, the client will discover all 85 tools, 26 resources, and 19 prompts automatically on connect.
Verify the connection:
curl -s -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"resources/read","params":{"uri":"kosh://specs/hardware/metric-fasteners"}}' | jq
Keyboard Shortcuts Cheat Sheet
| Key | Action |
|---|---|
Q |
All-In-One Universal Gizmo (Move, Rotate, Scale) |
V |
Select Mode (Pure raycast selection) |
W |
Move / Translate Gizmo |
E |
Rotate Gizmo |
R |
Scale Gizmo |
G / R / S |
Blender Modal Transform (Grab, Rotate, Scale with numeric input) |
Enter |
Commit Active Modal Transform |
Esc |
Cancel Modal Transform or Deselect |
A / Alt + A |
Select All / Deselect All |
Numpad 1 / Ctrl + 1 |
Front View (+Z) / Back View (-Z) |
Numpad 3 / Ctrl + 3 |
Right View (+X) / Left View (-X) |
Numpad 7 / Ctrl + 7 |
Top View (+Y) / Bottom View (-Y) |
Numpad 0 |
Reset to Isometric Perspective View |
Numpad 5 |
Toggle Perspective / Orthographic Projection |
F / . |
Frame / Focus Camera on Selected Mesh |
Alt + Z |
Toggle X-Ray Transparency |
Z |
Shading Pie Menu (Solid, Wireframe, Material, Normals) |
T |
Toggle Left Generator Panel |
N |
Toggle Right Code Inspector Drawer |
Tab then 2 |
Enter Edit Mode (enables face hotkeys below) |
Ctrl + B |
Bevel Edges — modal: drag X = width, wheel = segments, Enter / Esc |
E (Edit mode) |
Extrude active face — drag X = depth, Enter / Esc |
I (Edit mode) |
Inset active face — drag X = factor, Enter / Esc |
Ctrl + - |
Boolean Difference (1st selected = base, 2nd = cutter) |
Ctrl + + / Ctrl + = |
Boolean Union |
Ctrl + * / Ctrl + 8 |
Boolean Intersect |
| N-panel | Watertight topology pill (boundary/non-manifold counts) & Lay Flat on build plate |
F1 or ? |
Open Hotkeys Cheat Sheet |
Author & Security Verification
- Project: KOSH (Minimalist Creative MCP Hub)
- Author: Sachin SureshChandra Yadav (@SachinyadavAug20)
- Event: BharatCode Build League 2026
- License: Apache 2.0 (LICENSE)
- Privacy Policy: PRIVACY.md
- M8ven Trust Index Verification:
- Recursive MCP Vetting: Built-in
mcp_check_toolagainst 120,000+ indexed Model Context Protocol servers
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi