Skip to main content
Glama

Neon3 AI Authoring MCP

AIにNeon3のインターフェースを正しく構築させ、その結果をNeon3自身に証明させつガ。

License

Neon3向けのMCPサーバー、詳細なオーシング・Skill、そしてPython/Nodeスタータキットです。3つのレイヤーを組み合わせたものです:

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

このMCPは、決して第二のUI言語を生み出しません。neon_nui_validateは本番のneon-ui-runtimeパーサー/コンパイラを呼び出し、ライブでの変更は既存の長さプレフックス付きneon.rpc規約を使用します。

主な特長

カテゴリ

含まれる内又

NUI Flow

V1グラマ、型付き入力、レイアウト、コントロル、イベンー、ブランチ、スートチャート、ドラッグ&ドロップ、ワールド・パネル

AI ワークフロー

validate、inspect、submit、snapshots、capabilities、diagnostics

ランタイム安全性

ループバックRPC、リクエストID、制限されたアプリパス、固定されたプロセスのプロファイル、タイムアウト

アプリ型の

公式Neon3エンベロープを使用するPython/Nodeテンプレート

ドキュメンテョン

MCPリソースに加えて、スタンドアロンのOpenCode互換Skill

Related MCP server: Flowcore Platform MCP Server

必要して

  • Node.js 20 l 以 do。

  • WindowsではD:\Neon3にNeon3がチェックアウト済みであること(NEON3_ROOTで別のチェックアウトを設定する)。

  • 以下のコマンドでNeon3オーシング・プローブを一度ビルドする:

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

このプローブは、このMCPパッケージと個々のNeOn3チェックアウトの間の互換性を橋渡しするものです。構造化されたJSONLを返し、実行中のUIラタイムと同じパーサー/コンパイラを使用します。

ソースからのインストール

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

コマンドはneon-mcpとして利用可能になります。

npmからのインストール

公開後:

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

バージョン固定のローカルインストール:

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

OpenCodeの設定

OpenCodeの設定にMCPエントリーを追加してください:

{
  "$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"
      }
    }
  }
}

skill/SKILL.mdをホストのSkillディレクトリにコピーするか、このリポジトリをSkillソースとして追加してください。このSkillはMCPサーバーとは別体なので、Neon3がオフラインでもオーサリングルールが利用できます。

MCPは、同じ内容をリソースとしても公開しています:

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

Claude Desktop / MCPクライアント

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

ツール

ツール

目的

neon3_nui_reference

正確で詳細な構文トピックを読む

neon3_nui_validate

Neon3を変更せずに構文解析・コンパイルを実行する

neon3_nui_inspect

正規IR、スキーマ、安定アす。

neon3_nui_submit

検証後、ui-rltime経由で送信する

neon3_capabilities

現在のサービスの機能(caps;abilities)とエポックを問い合わせる

neon3_ui_snapshotран

UI状態とリビジョン情報を取得する

neon3_project_assets

プロジェクト概要と安定した项目を読む

neon3_diagnose

サービスのスナショットとインタラクションを照合する

neon3_app_init

制限されたPython/Nodeアプリを作成する

neon3_app_run

タイムアウト付きで固定プロセス・プロファイルを実行する

neon3_app_test

決定論的なローカルアプリ検証を実行する

オーシングループ

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

有効で型付き・意味的に正しい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にfetch、コールバック、Pythonコード、ファイルパス、座標、GPUハンドル、任意の式を含めではけません。

テンプレート

templates/python-appとonノ、templates/node-appには以下が含まれています:

****---

  • neon3.app.json — アプリのメタデータ

  • ui/main.nui — 型付き・宣言的

  • 型の説明: not required, but I need to output the bulleted not hanging.

Let me write properly:

  • ui/main.nuiの型付き宣言的UI

  • 最小限の長さプレフィックス付きRPCクライアント

  • Stan...

Let me redo the list properly:

  • neon3.app.jsonのアプリのメタデータ

  • ui/main.nui型付き宣言的UI

  • 最小限の長さプレフィックス付きRPCクライアンー

  • 決定論的なプリテスト(または構文チェック)

neon3_app_initツールは、NEON3_APP_ROOTの配下(変国未設定の場合は現在のワーキング・ディレクトリ)にのみ書き込みます。

ランタイムなしでNUIを検証する

$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

このプロセスはJSONLを出力します。パーサーまたはコンパしに失敗した場合、終了コード1を返し、安定して診断メッセージとソーススパンを含みます。

Neon3ヘッドレス・サービスの起動

既存のNeon3ランチャーを使用してください。MCPは黙って第2のレンダラを作成しません:

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

その後、AIクライアンーからneon3_capabilities、neon3_ui_napshot、またはne_on3_nui_submitを呼び出してください。

設定

変数

デフォルト

説明

NEON3_ROOT

D:\Neon3

オーシング・プローブのビルド/実行に使用するNeon3チェックアウト

NEON3_AUTHORING_PROBE

auto

プローブの実行ファイルの絶対パス指定を上書

NEON3_UI_ENDPOINT

127.0.0.1:39102

UIラタイムのRPCエンドポイント

NEON3_WGPU_ENDPOINT

127.0.0.1:39103

WGPUランタイム・RPCエンドポイント

NEON3_PROJECTD_ENDPOINT

127.0.0.1:39104

プロジェクト(authority)のRPCエンドポイント

NEON3_APP_ROOT

現在のディレクトリ

生成したアプリ・プロセスに許可されルルート

ライブのエンドポイントはすべてループバックである必要があります。MCPは任意のシェル・コマンドを実行するツールを提んしていません。

トラブルシューティング

オーシング・プローブが起動できない

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

revision_conflict

neon3_ui_snapshotを呼び出し、返された正しいリビジョンを使用してや送信してください。古いミューションを盲目的にリトライしないでください。

サービスに到達できない

neon3_capabilitiesでエンドポイントを確認してください。Neon3はscripts\run-ne3-services.ps1で起動するか、ウィンドウ表示に必要: neon-devを使用します。

開発

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

プロトコルテストは決定的なローカルフェイクのNeon3エンドポイントを使用し、リクエストID、フレーミング、構造化されたJSON出力を検証します。実際のNUI境界は、Neon3リポジトリ内のneon3_authoring_probeにより検証されます。

プロジェクトの関係

このリポジトリはAI統合レイヤです。Neon3がプロトコル、NUIグラフ、UIランタイム、WGPUランタイム、プロジェクトのオーソリティを引き続き所有します:

  • MCP: [https]:En即... , keep URL: https://github.com/unco999/neon3-ai-authoring-mcp

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

ライセンス

MIT。 LICENSEを参照してください。

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