Logo von Kiln

Kiln

Community
matthew-kissinger

Text-to-3D as code: language models write JavaScript programs that build game-ready GLBs, look at their own renders, and revise. Ships as an MCP server plus skills for any harness.

Herausgebermatthew-kissinger
Repositorykiln
SpracheTypeScript
Forks
13
Sterne
217
Verfügbare Tools
0
Transporttypstdio
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Kiln stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • Verfügbare Tools: 0

    Unten finden Sie die aufrufbaren Aktionen. Namen und Beschreibungen werden angezeigt, sofern der Server sie bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    Kennzahlen des verlinkten Repositorys: Sterne (217) und Forks (13).

Kiln

CI License: MIT

Build and revise 3D assets with your coding agent.

The agent writes JavaScript using Kiln's geometry and material helpers. Kiln runs the program and returns rendered views and structural checks so the agent can review its work. Export the asset as a GLB and keep the source for later changes.

Kiln runs locally. It includes an MCP server, a CLI, a TypeScript library, and skills for authoring, editing, animation review, and scene composition. Your agent supplies the model; Kiln does not require a separate model API key for its tools.

https://github.com/user-attachments/assets/375327bc-58bc-4344-bbb4-985d92c6f63a

Kiln 27-asset collection

Click the gallery banner above or select an asset below to explore in interactive 3D: Typewriter · Solar Sail Courier · Mechanical Peacock · Kestrel Rescue · Anglerfish · Kinetic Wave · Orrery · Orbital Station · Deco Radio · Cathedral · Steam Locomotive · Lighthouse · Alpine Cable Terminal · Research Vessel · Sushi Store · Windmill · Tram · Ribbon Tea Pavilion · Diesel Locomotive · Art Deco Conservatory · Floating Observatory · Deep Sea Station · Unfolding Dragonfly · Vintage Typewriter · Argent Carrier · Noctilus Submarine · Resolute Flagship

Mechanical peacock · Claude Opus 5Unfolding dragonfly · GPT-6 AstraSolar sail courier · Gemini 3.8 Flash
Mechanical peacock with articulated jewel fanClockwork dragonfly with unfolding wings and gearsSolar sail courier deploying origami gold sails

Browse the interactive gallery · All examples and model credits

These are saved examples from different authoring runs, not a model ranking. They are historical showcases from earlier Kiln versions, with unvetted modeling issues; they are not golden outputs or reference solutions. Credits, review conditions and build records.

Version 0.8.0 unifies authoring around Discovery and optional requirements, with updated geometry helpers, edit evidence and separate native-agent context. The tagged GitHub archive includes the built runtimes and is installable with npm. An official 0.8.0 package release has not been published. The qualification report records checks and support limits; the progress checkpoint retains the detailed work history.

Install and start an asset workspace

Use Node.js 20.15.0+ on the 20.x line, or 22.2.0 and later, with npm. Bun and a separate model API key are not required for this installation:

sh
mkdir kiln-install
cd kiln-install
npm init -y
npm install "https://github.com/matthew-kissinger/kiln/archive/refs/tags/v0.8.0.tar.gz" --omit=dev --include=optional
npm exec --offline -- kiln-init ../my-assets --harness opencode
cd ../my-assets
# Follow START.md for your harness

The installation stays separate from your asset workspace. Choose claude, codex, opencode, hermes, agy, copilot, or cursor-agent for --harness. The installation guide covers local archive files, existing-workspace upgrades and platform qualification. For a new installation, a maintained Node 22 or 24 LTS release is recommended; Node 20 compatibility accommodates existing distribution-managed installations.

Run from a checkout

For engine development, install Bun 1.4.2, then:

sh
git clone --filter=blob:none https://github.com/matthew-kissinger/kiln
cd kiln
bun install --frozen-lockfile
bun run kiln render examples/crate.kiln.js --out crate.glb --views sheet.png

--filter=blob:none checks out the current tree in full and leaves historical file contents on the server, fetching them only if you ask for an old revision. A plain git clone also works and gives you the whole history up front.

This writes a GLB and a six-view image of an existing program. It makes no model call. Rendering uses the CPU unless a compatible local GPU service is available. Use --render cpu to select the CPU explicitly. Sheets sit on a neutral grey; add --backdrop dark or --backdrop light when an asset's silhouette merges with it; kiln save takes the same flag for the preview it stores.

For anchored CLI edits, import source with kiln source asset.kiln.js, then run kiln edit RETURNED_REF --edits edits.json. The file contains an array of { "oldString": "exact existing text", "newString": "replacement text" } objects. The command returns a new immutable reference and diff without executing source; render that new reference to inspect the result. kiln edit --help describes batch limits and replaceAll.

Using assets in Blender or Unity? Read the handoff guide for direct GLB import, materials, backfaces, named pivots and animation checks. The established exporter remains the default. An experimental community exporter is available for explicit comparison when you need its additional feature preservation; the guide includes activation, rollback and known limitations. Both converters are included in this installation.

History was rewritten on 2026-09-10 to drop 288 MB of gallery renders and launch video that no tool reads, taking a clone from 440 MB to 60 MB, or 49 MB with --filter=blob:none; measured 2026-09-12. Every commit survived and the tree is unchanged apart from those files, but every commit hash changed, so a clone made before that date cannot fast-forward.

Re-cloning is simplest. Before converting an old clone, back up uncommitted work and local branches: the commands below reset the checkout and prune recovery history. Move the tag as well as the branch:

sh
git fetch --tags --force origin
git reset --hard origin/main
git reflog expire --expire=now --all
git gc --prune=now

--force is the load-bearing flag. oss-2026-09-05 was rewritten too, and git will not move a tag that already exists without it: plain git fetch --tags, and even --prune-tags, both report would clobber existing tag and leave the old one in place, holding every removed file reachable. Omit it and .git stays at 228 MB where a fresh clone is 26 MB; run it and the same clone packs to 23 MB.

The gallery images are served from assets.kilnstudio.tools; the 83 poster receipts that attest their bytes stayed in examples/renders/.

Connect your agent

The agent reading guide links to setup, tool schemas and the source revision workflow in plain text.

The installation commands above create a separate asset workspace, register MCP and copy the Kiln skills. Follow its START.md to launch your harness. Setup writes project-local configuration and leaves your global settings unchanged.

If you are developing Kiln from a source checkout, create that workspace with:

sh
bun run build:runtime
node scripts/create-workspace.mjs ../my-assets --harness opencode
cd ../my-assets
# Follow START.md for your harness

Choose claude, codex, opencode, hermes, agy, copilot, or cursor-agent for --harness, then open that harness in the new directory using its generated START.md instructions and accept its project and MCP trust prompts. Sign in to your harness first. The compiled MCP server and CLI accept Node.js 20.15.0+ on the 20.x line, or 22.2.0 and later. Bun is for building and testing the engine; installed commands do not require it. The optional native Strands agent requires Node 22.2.0+. See the runtime requirements and qualification limits.

If the brief depends on textures, roughness, metalness, glass, or other material evidence, check the optional GPU renderer setup before the first authoring session. Auto mode starts a compatible local service lazily when its dependencies are available. CPU views are useful for shape and contact, but not for judging materials. After dependency repair or a failed startup, call kiln_renderer({action:"reprobe"}) inside the MCP session to refresh its connection. Restart after changing Kiln, environment variables or credentials. A compatible renderer can also run on another device: configure the MCP server's KILN_RENDER_PORT_URL and KILN_RENDER_TOKEN, or use CLI --render-port URL with the token in its environment. The rendering guide covers remote service authentication and lifecycle.

Follow START.md rather than launching the harness directly. Some harnesses keep all configuration in a user-level home and read nothing from a project directory, so the workspace reaches them through a small generated launcher -- node codex.mjs, node agy.mjs, node hermes.mjs -- which passes the server, the program store and the directory per invocation. Nothing is written outside the workspace and your existing configuration and sign-in are left alone. Starting those harnesses with their bare command in the workspace finds no Kiln tools. START.md names the right command for the harness you chose, and hermes needs one extra user-level registration that it prints for you.

Try: “Read AGENTS.md, then make a wooden workbench with a lower shelf. Render it, review the result, and save the source and GLB.”

Setup installs the core authoring, refinement and QA skills. Composition and batch workflows are opt-in. These skills work with your chosen harness through CLI/MCP. The optional built-in Strands agent adds its own workflow internally; do not copy that context into your harness. See the workflow boundary.

The workspace contains your brief, assets, and skills. The engine source and example collection stay in the installation directory. See clean-room setup for the exact boundaries and headless use, or installation for other harnesses and the plugin path.

For Google models, see Antigravity and Gemini setup. Local coding agents use stdio directly; browser chat connections have different setup requirements.

Revise an asset

Save finished work into this workspace with node kiln.mjs save workbench.kiln.js --name "Workbench", or add --collection library when you explicitly want it in your cross-workspace user library. Run node kiln.mjs view to browse This project and Your library, inspect revisions, and download Original GLB, Runtime GLB with companion metadata, or editable ZIP bundles. Both collections use the same portable format and viewer. See saved assets and the viewer.

For application delivery, export with --profile runtime --out asset.glb to move Kiln's animation review metadata into a hash-linked JSON sidecar. Native glTF animation still plays without that sidecar. The default editable profile preserves saved files exactly; keep its ZIP for source and build records. The delivery profile is independent of the established/experimental converter selected during generation. Which options to use, why they exist, and examples are also included in the authoring and QA skills installed into new asset workspaces.

Use Kiln in a chat client

Create and refine assets in ChatGPT through a private MCP connection, then ask to see a saved revision. kiln_present opens that exact revision in an interactive 3D card in supporting MCP App clients. Every coding harness receives exact artifact descriptors and readable resource URIs in the JSON result; a verified host can opt into core MCP resource_link blocks. An agent can also launch the local viewer on the saved revision and provide its loopback URL. Orbit the model and inspect its animation without leaving chat. ChatGPT viewing was verified with real saved assets.

  1. Install Kiln (or build the runtime from a checkout) and connect its stdio MCP server through an OpenAI Secure MCP Tunnel scoped to your workspace.
  2. Install the authoring and refinement skills with their reference files using ChatGPT's native skill uploader.
  3. Ask: “Make a field recorder, review the renders, save it to my project collection, and show it with kiln_present.”

The ChatGPT setup guide covers connection, skill packaging, and host requirements. This currently needs developer setup; it is not a public one-click ChatGPT app. Local GLB and editable ZIP downloads work through kiln view. ChatGPT-native GLB/ZIP attachments remain unverified; download support depends on the client or a host-provided delivery link.

Restore source for another edit

Import an existing program from your asset workspace:

sh
node kiln.mjs source workbench.kiln.js

The command prints a short programRef, such as p_7c94a132b8e0, identifying that exact source. Copy it exactly for later calls:

js
// programRef is the value returned by Kiln.
kiln_source({ programRef, query: "shelfHeight" })
kiln_edit({
  programRef,
  edits: [{ oldString: "shelfHeight = 0.2", newString: "shelfHeight = 0.35" }]
})

kiln_source reads a bounded portion of the source. kiln_edit applies the changes and renders the result, returning a new reference and a diff. The original revision remains available. Text outside the replacements stays unchanged, and a failed edit does not modify the base.

Save the new revision and export it without copying its source through the model:

sh
node kiln.mjs source RETURNED_REF --out workbench-v2.kiln.js
node kiln.mjs render RETURNED_REF --out workbench-v2.glb --views workbench-v2.png

Replace RETURNED_REF with the new reference from the edit. Short references survive local server restarts while you keep the workspace's store. Full SHA-256 references are still accepted. Inline code still works for new drafts and existing integrations. Program storage and API details.

Shape geometry and choose views

Keep equations and custom modeling functions in the program. For example, this samples a curved sheet; the complete canopy example adds its material, posts and sockets.

js
const surface = parametricSurface(
  (u, v) => [u, 1.35 + 0.22 * Math.sin(u * 2) + 0.12 * v * v, v],
  { u: [-1.6, 1.6], v: [-0.8, 0.8],
    uSegments: 48, vSegments: 24, orientation: 'vu' }
);

Use meshGeo for explicit topology, or shape existing geometry with bends, twists, lofts and sweeps. Geometry contracts and limits.

To check an attachment, request a close-up beside a whole-asset view. Reuse the programRef and exact partPath from the render result:

js
kiln_render({ programRef, capture: {
  version: 'kiln.capture.v1', cols: 2,
  shots: [
    { name: 'Whole asset' },
    { name: 'Attachment', subject: { path: partPath },
      visibility: 'context', camera: { type: 'orbit', relativeTo: 'part',
        azimuthDeg: 65, elevationDeg: -18, padding: 3 } }
  ]
}});

The close-up follows the part's local axes while retaining surrounding geometry. You can also set explicit camera positions, return separate images, or sample animation frames. Either capture shape also takes backdrop: 'neutral' | 'dark' | 'light', and every result echoes the one used as capture.backdrop. kiln_save takes the same field for the preview it stores, and the manifest records it as preview.backdrop. Camera controls.

Tool reference

Use kiln_discover to find operations, assemblies and optional recipes in ordinary modeling language. An empty request returns a compact overview with starting signatures and six summaries. For example, search with { query: "curved hollow tube" }, then request { ids: ["sweepProfile"] } for a complete contract and example. Exact batches accept up to six distinct IDs or executable names. Search is local and needs no separate model, network call, or asset-category selection.

The same workflow is available from your asset workspace in the CLI:

sh
node kiln.mjs discover --query "curved hollow tube"
node kiln.mjs discover --id sweepProfile --id createPart --json
node kiln.mjs discover --kind recipe
node kiln.mjs discover --capabilities

Search and overview accept family, kind, tags, offset and limit (default six, maximum twelve). CLI uses --family, --kind, repeated --tag, --offset and --limit. Browse current filter labels in the overview. Search relevance does not certify that a helper supports the entire requested asset; read its limitations and exact contract.

kiln_list_primitives and its name, names, and category selectors are removed, with no callable alias. Stop the harness/MCP session, then run kiln-init WORKSPACE --check and kiln-init WORKSPACE --upgrade from the updated installation. Upgrade preserves assets and refuses conflicting local changes; resolve those explicitly before retrying. Restart the session to load current schemas. A fresh workspace is also supported. --repair repairs paths without upgrading copied skills. Use kiln migrate intent|manifest OLD.json --out REVIEW.json for an explicit legacy-data review; unresolved obligations prevent activation. See migration. The generated tool reference covers source editing, validation, rendering, part inspection, animation and interior views. The shared factory is createKilnProgramToolRegistry in @kiln/engine/tools.

Uses and limitations

The examples cover props, machinery, vehicles, buildings and rigid-part animation. Programs are useful when you want named parts, adjustable dimensions and repeatable variants. Organic shapes and detailed character work are less well demonstrated. Kiln is not a reconstruction tool: a reference image does not establish unseen geometry.

Structural checks help find problems, but do not establish visual quality or suitability for a particular game. Review scale, performance, collision and appearance in your target scene. The CPU renderer shows geometry and base colours; inspect viewFidelity before judging textures or PBR materials. GPU setup and materials.

Development

sh
bun run typecheck
bun run lint
bun run test
bun run test:coverage

Tests run without model calls and use CPU rendering. Coverage thresholds are checked in CI. Runtime changes to the MCP server or CLI must also rebuild their committed bundles:

sh
bun run build:runtime

For bug reports, include the smallest program that reproduces the problem and the render or error you saw. CONTRIBUTING.md covers setup, checks and pull requests; AGENTS.md covers repository conventions.

Kiln began as the engine behind Kiln Studio. The hosted product has retired; this repository contains the open-source engine and local tools.

MIT licensed. Built by Matthew Kissinger.

Kiln MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Kiln verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor einrichten“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Einstellungen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor einrichten“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie „Terminal“ (macOS) bzw. „Windows Terminal“ (Windows).
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Kiln als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server bearbeiten“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server bearbeiten“.
  3. Fügen Sie die MCP-Server-Konfiguration für Kiln ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server bearbeiten“
{
  "mcpServers": {
    "matthew-kissinger-kiln": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Kiln. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Kiln.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Kiln bei dieser Aufgabe helfen?
Kiln
Gerne. Ich habe es gelesen.
Das habe ich mit Kiln gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Kiln verwendet?

Kiln ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich den MCP-Server Kiln mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Kiln mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum den MCP-Server Kiln mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Kiln verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich den MCP-Server Kiln mit TypingMind?

Kiln wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt der MCP-Server Kiln in TypingMind bereit?

Kiln stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um den MCP-Server Kiln zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal. Sie wählen Ihre Modellanbieter selbst und behalten die Kontrolle über Ihre API-Schlüssel, Prompts und MCP-Konfiguration. Falls Kiln eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇