Skip to main content
Glama

Neon3 AI Authoring MCP

Bringe einer KI bei, Neon3-Oberflächen korrekt zu erstellen, und lasse dann Neon3 das Ergebnis beweisen.

License

Ein MCP-Server, eine detaillierte Authoring-Skill sowie ein Python/Node-Starter-Kit für Neon3. Es kombiniert drei Ebenen:

Skill                 durable NUI Flow rules and design boundaries
MCP resources/tools   searchable references, live capability discovery, orchestration
Neon3 runtime         authoritative parser, compiler, revision, and renderer feedback

Der MCP erfindet nie eine zweite UI-Sprache. neon3_nui_validate ruft den Produktions-Parser/Compiler von neon-ui-runtime auf, während Live-Mutationen den vorhandenen längenpräfixierten neon3.rpc-Vertrag verwenden.

Highlights

Bereich

Inhalt

NUI-Flow

V1-Grammatik, typisierte Eingaben, Layouts, Steuerelemente, Ereignisse, Verzweigungen, Statecharts, Drag-and-Drop, Welt-Panels

KI-Workflow

Validierung, Inspektion, Übermittlung, Snapshots, Fähigkeiten, Diagnose

Laufzeitsicher

Loopback-RPC, Request-IDs, begrenzte App-Pfade, feste Prozessprofile, Timeouts

Anwendungscode

Python- und Node-Vorlagen mit dem offiziellen Neon3-Envelope

Dokumentation

MCP-Ressourcen plus eine eigenständige, OpenCode-kompatible Skill

Related MCP server: Flowcore Platform MCP Server

Voraussetzungen

  • Node.js 20 oder neuer.

  • Neon3 ist unter Windows in D:\Neon3 ausgecheckt, oder NEON3_ROOT ist auf einen anderen Checkout gesetzt.

  • Die Neon3-Authoring-Probe einmalig bauen:

cd D:\Neon3
cargo build -p neon-ui-runtime --bin neon3_authoring_probe

Die Probe ist die Kompatibilitätsbrücke zwischen diesem MCP-Paket und dem exakten Neon3-Checkout. Sie erzeugt strukturierte JSONL-Ausgaben und verwendet denselben Parser/Compiler wie die laufende UI-Runtime.

Installation aus dem Quellcode

git clone https://github.com/unco999/neon3-ai-authoring-mcp.git
cd neon3-ai-authoring-mcp
npm install
npm link

Der Befehl ist nun als neon3-mcp verfügbar.

Installation über npm

Sobald veröffentlicht:

npm install -g @neon3/ai-authoring-mcp
neon3-mcp

Für eine gepinnte lokale Installation:

npm install --save-dev @neon3/ai-authoring-mcp
npx neon3-mcp

OpenCode-Konfiguration

Fügen Sie der OpenCode-Konfiguration einen MCP-Eintrag hinzu:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "neon3": {
      "type": "local",
      "command": ["neon3-mcp"],
      "enabled": true,
      "environment": {
        "NEON3_ROOT": "D:\\Neon3",
        "NEON3_UI_ENDPOINT": "127.0.0.1:39102",
        "NEON3_WGPU_ENDPOINT": "127.0.0.1:39103",
        "NEON3_PROJECTD_ENDPOINT": "127.0.0.1:39104"
      }
    }
  }
}

Kopieren Sie skill/SKILL.md in das Skill-Verzeichnis des Hosts oder fügen dieses Repository als Skill-Quelle hinzu. Die Skill ist vom MCP-Server getrennt, damit ihre Authoring-Regeln auch verfügbar bleiben, wenn Neon3 offline ist.

Der MCP stellt dasselbe Material auch als Ressourcen bereit:

neon3://skill
neon3://references/overview
neon3://references/grammar
neon3://references/components
neon3://references/statecharts
neon3://references/interactions
neon3://references/diagnostics

Claude Desktop / MCP-Clients

{
  "mcpServers": {
    "neon3": {
      "command": "neon3-mcp",
      "env": {
        "NEON3_ROOT": "D:\\Neon3",
        "NEON3_UI_ENDPOINT": "127.0.0.1:39102"
      }
    }
  }
}

Werkzeuge

Werkzeug

Zweck

neon3_nui_reference

Liest ein detailliertes, maßgebliches Syntax-Thema

neon3_nui_validate

Parst und kompiliert, ohne Neon3 zu verändern

neon3_nui_inspect

Gibt kanonische dokumentenIR, Schema, stabile Nodes, Bindungen und Budgets zurück

neon3_nui_submit

Validiert und übermittelt anschließend über ui-runtime

neon3_capabilities

Fragt die aktuellen Service-Fähigkeiten und Epochen ab

neon3_ui_snapshot

Liest den UI-Zustand und Revisionsinformationen

neon3_project_assets

Liest die Projektübersicht und stabile AssetRef-Werte

neon3_diagnose

Korreliert Service-Snapshots, und Interaktionstraces mit einander

neon3_app_init

Erstellt eine begrenzte Python- oder Node-Anwendung

neon3_app_run

Führt ein festes Anwendungsprofil mit einem Timeout aus

neon3_app_test

Führt deterministische Testprüfungen für die Anwendung aus

Der Authoring-Kreislauf

reference -> capabilities -> generate NUI -> validate -> inspect -> submit -> diagnose

Beispiel für gültiges, typisiertes, semantisches NUI:

version 1
surface surface.example revision 1
budget nodes=32 bindings=16 instances=16 text=16 glyphs=1024 events=8 clips=64
input title text default text:empty
input can_save bool default false
surface root column w 520 h 240 gap 8 pad 16
  text heading value $title
  button save value "Save" enabled $can_save event document.save

NUI-Flow darf kein fetch, keine Callbacks, keinen Python-Code, keine Dateipfade, keine Koordinaten, keine GPU-Handles und keine beliebigen Ausdrücke enthalten.

Vorlagen

templates/python-app und templates/node-app enthalten:

  • neon3.app.json-Datei – Anwendungsmetadaten

  • ui/main.nui – typisierte deklarative UI

  • einen minimalen längenpräfixierten RPC-Client

  • einen deterministischen Protokolltest bzw. eine Syntaxprüfung

Das Werkzeug neon3_app_init schreibt Nur unterhalb von NEON3_APP_ROOT (oder in das aktuelle Build-Verzeichnis, wenn diese Variable nicht gesetzt ist).

NUI ohne laufende Runtime validieren

$source = [string]::Join("`n", (Get-Content .\templates\node-app\ui\main.nui))
$request = @{ request_id = "manual-1"; operation = "validate"; sequence = 1; source = $source } | ConvertTo-Json -Compress
$request | cargo run --quiet -p neon-ui-runtime --manifest-path D:\Neon3\Cargo.toml --bin neon3_authoring_probe

Der Process gibt JSONL aus. Ein Parser- oder Compiler-Fehler liefert den Exitcode 1 und enthält stabile Diagnoseinformationen sowie Quelldaten.

Start der Neon3-Headless-Dienste

Verwenden Sie den vorhandenen Neon3-Launcher. Der MCP erstellt nicht still und leise einen zweiten3 Renderer:

cd D:\Neon3
scripts\run-neon-services.ps1

Rufen Sie anschließend neon3_capabilities, neon3_ui_snapshot oder neon3_nui_submit über den KI-Client auf.

Konfiguration

Variable

Standardwert

Bedeutung

NEON3_ROOT

D:\Neon3

Neon3-Checkout, mit dem die Authoring-Probe erstellt/ausgeführt wird

NEON3_AUTHORING_PROBE

auto

Absoluter Pfad zum Authoring-Probe-Executable als Überschreibung

NEON3_UI_UNIT_ENDPOINT

127.0.0.1:39102

RPC-Endpunkt der

NEON3_WGPU_ENDPOINT

127.0.0.1:39103

RPC-Endpunkt der WGPU-Runtime

NEON3_PROJECTD_ENDPOINT

127.0.0.1:39104

RPC-Endpunkt der Projekt-Autorität

NEON3_APP_ROOT

aktuelles Verzeichnis

Erlaubtes Verzeichnis für erzeugte App-Prozesse

Alle Live-Endpunkte müssen Loopback-Endpunkte sein. Der MCP legt kein Werkzeug für beliebige Shell-Befehle offen.

Fehlerbehebung

Die Authoring-Probe lässt sich nicht starten

cd D:\Neon3
cargo build -p neon-ui-runtime --bin neon3_authoring_probe
$env:NEON3_ROOT = 'D:\Neon3'

revision_conflict

Rufen Sie neon3_ui_snapshot auf, verwenden Sie die zurückgegebene maßgebliche Revision und senden Sie die Datei erneut. Versuchen Sie nicht, eine veraltete Mutation blind erneut zu senden.

Ein Dienst ist nicht erreichbar

Prüfen Sie den Endpunkt in neon3_capabilities. Starten Sie Neon3 mit scripts\run-no-services.ps1 oder verwenden Sie für neon-dev ein Fenster.

Entwicklung

npm install
npm test
node --check src/index.js
npm pack --dry-run

Der Protokolltest verwendet einen deterministischen, lokalen Fake-Neon3-Endpunkt, der Request-IDs, Framing und strukturierte JSON-Ausgabe verifiziert. Die echte NUI-Grenze wird durch die neon3_authoring_probe im Neon3-Repository verifiziert.

Projektbeziehung

Dieses Repository ist die KI-Integrationsschicht. Neon3 bleibt Inhaber des Protokolls, der NUI-Grammatik, der UI-Runtime, der WGPU-Runtime und der Projekt-Autorität:

  • MCP: https://github.com/unco999/neon3-ai-authoring-mcp

  • Neon3: https://github.com/unco999/Neon3-CiJian

Lizenz

MIT. Siehe Siehe LICENSE.# Neon3 AI Authoring MCP

Bring einer KI bei, Neon3-Oberflächen korrekt zu erstellen, und lass dann Neon3 das Ergebnis bestätigen.

License

Ein MCP-Server, eine detaillierte Authoring-Skill und ein Python/Node-Startterkit für Neon3. Es kombiniert drei Ebenen:

Skill                 durable NUI Flow rules and design boundaries
MCP resources/tools   searchable references, live capability discovery, orchestration
Neon3 runtime         authoritative parser, compiler, revision, and renderer feedback

Der MCP erfindet nie eine zweite UI-Sprache. neon3_nui_validate ruft den Produktions-Parser/Compiler von neon3-ui-runtime auf, während Live-Mutationen den vorhandenen längenpäfixierten neon3.rpc-Vertrag verwenden.

Highlights

Bereich

Inhalt

NUI-Flow

V1-Grammatik, typisierte Eingaben, Layouts, Steuerelemente, Ereignisse, Verzweigungen, Zustandsautomaten, Drag/Drop, Welt-Panels

KI-Workflow

Validierung, Inspektion, Übermittlung, Snapshots, Fähigkeiten, Diagnose

Laufzeitsicherheit

Loopback-RPC, Request-IDs, begrenzte App-Pfade, feste Prozessprofile, Timeouts

Anwendungscode

Python- und Node-Vorlagen mit dem offiziellen Neon3-Envelope

Dokumentation

MCP-Ressourcen plus eigenständige, OpenCode-kompatible Skill

Anforderungen & Voraussetzungen

  • Node.js 20 oder neuer.

  • Neon3 ausgecheckt unter D:\Neon3 unter Windows, oder NEON3_ROOT ist auf einen anderen Checkout gesetzt.

  • Baue die Neon3-Authoring-Probe einmal:

cd D:\Neon3
cargo build -p neon-ui-runtime --bin neon3_authoring_probe

Die Probe ist die Kompatibilitätsbrücke zwischen diesem MCP-Paket und dem exakten Neon3-Checkout. Sie liefert strukturierte JSONL-Daten und verwendet denselben Parser/Compiler wie die laufende UI-Laufzeit.

Installation aus dem Quellcode

git clone https://github.com/unco999/neon3-ai-authoring-mcp.git
cd neon3-ai-authoring-mcp
npm install
npm link

Der Befehl ist nun als neon3-mcp verfügbar.

Installation über npm

Sobald

Available Tools

11 tools
neon3_app_initB

Create a bounded Python or Node Neon3 application template. Files are written only below NEON3_APP_ROOT.

Inputs: runtime (required), destination (required), overwrite.

neon3_app_runC

Run a generated Python or Node app with a fixed executable profile and bounded timeout.

Inputs: cwd (required), runtime (required), args, entry, +1 more.

neon3_app_testA

Run the generated app's deterministic local protocol checks without contacting a live Neon3 service.

Inputs: cwd (required), runtime (required), timeout_ms.

neon3_capabilitiesC

Query service.describe from Neon3 services and return their current capabilities and epochs.

Inputs: ui_endpoint, wgpu_endpoint, projectd_endpoint.

neon3_diagnoseC

Aggregate service snapshots, UI revisions, and interaction trace for a Neon3 authoring issue.

Inputs: ui_endpoint, wgpu_endpoint, interaction_id.

neon3_nui_inspectC

Return the canonical IR, typed input schema, state machines, stable node outline, bindings, and budgets for NUI Flow.

Inputs: source (required).

neon3_nui_referenceB

Read the authoritative Neon3 NUI Flow V1 reference. Topics: overview, grammar, components, statecharts, interactions, diagnostics.

Inputs: topic (required).

neon3_nui_submitC

Validate NUI Flow locally, then submit it through ui-runtime to the WGPU runtime.

Inputs: source (required), ui_endpoint, idempotency_key, expected_revision.

neon3_nui_validateB

Parse and compile NUI Flow with Neon3's production parser/compiler. Never submit automatically.

Inputs: source (required).

neon3_project_assetsC

Read project summary and stable AssetRef entries from projectd.

Inputs: projectd_endpoint.

neon3_ui_snapshotC

Read the current UI runtime snapshot, including active fragment and input revisions.

Inputs: ui_endpoint.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool addresses a distinct stage or resource: reference docs, validation, IR inspection, submission, project assets, capabilities, UI snapshot, app template lifecycle, and diagnostics. There is no meaningful overlap, and validate/inspect/submit are clearly separated by compile, inspect, and runtime submission roles.

    Naming Consistency4/5

    All tool names share the neon3_ prefix and use snake_case, which is consistent and readable. However, the set mixes noun-style names like nui_reference and ui_snapshot with verb-style names like nui_validate and app_run, so the naming pattern is not perfectly uniform.

    Tool Count5/5

    11 tools is a well-scoped count for a Neon3 authoring/debugging server. Each tool provides a distinct capability needed for the domain without redundant or superfluous entries.

    Completeness4/5

    The core workflow is well covered: reference, validate, inspect, submit, create/run/test app templates, and diagnose issues. Minor gaps exist, such as no explicit update/delete for app templates and no write access to project assets, but these do not block the primary authoring flow.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers