neon3-mcp
Neon3 AI Authoring MCP
Bringe einer KI bei, Neon3-Oberflächen korrekt zu erstellen, und lasse dann Neon3 das Ergebnis beweisen.
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 feedbackDer 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:\Neon3ausgecheckt, oderNEON3_ROOTist auf einen anderen Checkout gesetzt.Die Neon3-Authoring-Probe einmalig bauen:
cd D:\Neon3
cargo build -p neon-ui-runtime --bin neon3_authoring_probeDie 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 linkDer Befehl ist nun als neon3-mcp verfügbar.
Installation über npm
Sobald veröffentlicht:
npm install -g @neon3/ai-authoring-mcp
neon3-mcpFür eine gepinnte lokale Installation:
npm install --save-dev @neon3/ai-authoring-mcp
npx neon3-mcpOpenCode-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/diagnosticsClaude Desktop / MCP-Clients
{
"mcpServers": {
"neon3": {
"command": "neon3-mcp",
"env": {
"NEON3_ROOT": "D:\\Neon3",
"NEON3_UI_ENDPOINT": "127.0.0.1:39102"
}
}
}
}Werkzeuge
Werkzeug | Zweck |
| Liest ein detailliertes, maßgebliches Syntax-Thema |
| Parst und kompiliert, ohne Neon3 zu verändern |
| Gibt kanonische dokumentenIR, Schema, stabile Nodes, Bindungen und Budgets zurück |
| Validiert und übermittelt anschließend über |
| Fragt die aktuellen Service-Fähigkeiten und Epochen ab |
| Liest den UI-Zustand und Revisionsinformationen |
| Liest die Projektübersicht und stabile |
| Korreliert Service-Snapshots, und Interaktionstraces mit einander |
| Erstellt eine begrenzte Python- oder Node-Anwendung |
| Führt ein festes Anwendungsprofil mit einem Timeout aus |
| Führt deterministische Testprüfungen für die Anwendung aus |
Der Authoring-Kreislauf
reference -> capabilities -> generate NUI -> validate -> inspect -> submit -> diagnoseBeispiel 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.saveNUI-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 – Anwendungsmetadatenui/main.nui– typisierte deklarative UIeinen 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_probeDer 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.ps1Rufen Sie anschließend neon3_capabilities, neon3_ui_snapshot oder neon3_nui_submit über den
KI-Client auf.
Konfiguration
Variable | Standardwert | Bedeutung |
|
| Neon3-Checkout, mit dem die Authoring-Probe erstellt/ausgeführt wird |
| auto | Absoluter Pfad zum Authoring-Probe-Executable als Überschreibung |
|
| RPC-Endpunkt der |
|
| RPC-Endpunkt der WGPU-Runtime |
|
| RPC-Endpunkt der Projekt-Autorität |
| 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-runDer 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-mcpNeon3:
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.
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 feedbackDer 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:\Neon3unter Windows, oderNEON3_ROOTist auf einen anderen Checkout gesetzt.Baue die Neon3-Authoring-Probe einmal:
cd D:\Neon3
cargo build -p neon-ui-runtime --bin neon3_authoring_probeDie 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 linkDer Befehl ist nun als neon3-mcp verfügbar.
Installation über npm
Sobald
Available Tools
11 toolsneon3_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
Scored across 11 tools
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.
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.
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.
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
Related MCP Connectors
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
Deploy and manage Jade Hosting projects from AI clients. Jade account and OAuth required.
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
Create, test, publish, and manage Dreamlit notification workflows from AI clients.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables the management of AI-powered VibeKit apps, allowing users to control deployments, monitor logs, and perform database operations directly from MCP-compatible clients. It facilitates interaction with hosted AI agents and the execution of headless coding tasks through natural language.4946 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and manage Flowcore resources through a structured API.10-
- AlicenseBqualityDmaintenanceConnects AI assistants to the Node-RED Admin API, enabling flow inspection, node management, graph analysis, debug capture, and rollback operations through natural language.37MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to manage Flow Relay projects, generate handoffs and insights, and interact with integrations like Discord through natural language.181,100 npmAGPL 3.0