Skip to main content
Glama

nickol-knx-mcp

設計時のKNX / ETS6アシスタントをMCPサーバーとして公開。

以下の4つのことができます — すべて実際のKNXバスに触れることなく:

  1. 仕様からプロジェクトを設計 — 機器リスト/プロジェクト仕様を、完全で検証済みのグループアドレス構造および完全な実装ドキュメント一式(ETSインポート可能なXML/CSV、人間が読めるレポート、Home Assistant YAML、受け入れテストプロトコル、アズビルド引継ぎパック)に変換します。

  2. 既存プロジェクトの監査、修復、完成 — 命名規則・DPT & サブDPT・コマンド↔ステータス・KNX Secure・Matter対応を検証し、具体的な修正提案(推定DPT、合成ステータスGA)を取得、完全性を評価し、2つのプロジェクトバージョンを比較します。

  3. スマートホームレイヤーの生成 — 実際のデバイス状態を読み取る、組み立てられたHome Assistantエンティティ(カラーライト、空調、カバー、センサー)を生成し、曖昧なものはすべて人間のレビューに委ねます。

  4. パラメータ化されたルームテンプレートから新しいプロジェクトを構成 — 部屋のリスト(スロットごとにbasic/comfortプリセット付き)から、新しい検証済みプロジェクトを組み立て → 割り当てマニフェスト + ETS GA XML/CSV + デバイスBOM提案。ドライラン、新規プロジェクトのみ(R1)。

内部構造:デバイスライブラリにより、各アクチュエータを実際の通信オブジェクトに展開 — 汎用レシピから、ETSアプリケーションプログラムから直接解析された正確なベンダーオブジェクトモデルまで。

CI License: MIT Python 3.10+ Status: beta Live demo Join the discussion nickol-knx-mcp MCP server Case study

🇷🇺 Русская версия: README.ru.md


新機能 — デモハウス全体。 examples/demo-home には、合成された 239-GA / 47-機能 プロジェクト、ツールが生成したレポート + Home Assistant設定 + ETSエクスポート、そして完全なスマートホーム 「頭脳」 — 概日照明、8要素気候設定値、在/不在/季節/時間ステートマシンと統計 — が含まれており、5ビューのダッシュボードを駆動します。すべてを ライブサイト ↗ でご覧ください。


🖥️ ダッシュボード — Home Assistantでライブ

デモハウスを実行している実際のHome Assistantからのスクリーンショットです。ツールが組み立てたエンティティが動作している様子を示しています:RGBW / RGB / CCTカラーライト、6つの床暖房気候ゾーン(目標、モード、バルブ%)、概日照明カーブ、計算された気候設定値 — 手動設定ではありません。

気候

照明

エネルギー & 統計

在室

▶ ライブサイトでインタラクティブに探索 → · 設定は examples/demo-home/ha-brain にあります。


Related MCP server: PBIP Builder MCP Server

🧪 ステータス & テスター募集

これは公開ベータ版です。完全なパイプラインは合成プロジェクトでのエンドツーエンドのスモークテストに合格しており、実際の数千GA規模のETS5/ETS6プロジェクト(匿名化済み)に対して検証済みです — しかし実際のETSプロジェクトは驚くほど多様で複雑であり、より多くの現場レポートが品質向上に役立ちます。

👉 ETS5/ETS6プロジェクトをお持ちの方は、ぜひお試しいただき、結果をお知らせください。 Real-project test report のIssueを開いてください。このツールは読み取り専用で、バスに接続することはありませんので、テストは安全です(安全モデルを参照)。詳細は CONTRIBUTING.md をご覧ください。

💬 ディスカッションに参加 → — 挨拶、質問、ツールがあなたのプロジェクトで見つけたことの共有など、お気軽にどうぞ。


🗺️ ロードマップ — 実際のインテグレーターの声から

実際のKNXインテグレーターからの最近のレビュー(Discussions内)が今後の方向性を決めています:

  • デバイス間のパラメータ一貫性 (出荷済み — check_device_parameters) — ETSのパラメータ設定が同一の兄弟機と異なるデバイスをフラグ付け:設定値/ヒステリシスが異なるサーモスタット、検出時間が異なる在室検知器。.knxprojから直接デバイスごとのパラメータを抽出し、実際の42~275デバイスプロジェクトで異常値を検出 — 読み取り専用、ETS不要、バス不要 — クリーンなプロジェクトでは何も報告しません(異なるベンダー/インテグレーター流派間での誤検出なし)。

  • プロジェクトポリシープロファイル (出荷済み — check_policy) — プロジェクトをあなた自身の合意されたルール(命名規則、GA分類、コマンド/ステータス例外)に対して検証。インテグレーターごとに慣習が異なるため、普遍的な「プロフェッショナル標準」ではなく、プロファイルがない場合はプロジェクト自体から推測された分類に対して検証します。

  • ルームテンプレートライブラリ — パラメータ化されたルームテンプレートから新しいプロジェクトを構成。R1出荷済み(compose_rooms + validate_room_template:新規プロジェクト、ドライラン、割り当てマニフェスト + ETS XML/CSV + デバイスBOM)。R2計画中:既存プロジェクトへのドッキング + 正確なデバイス選択。

  • ロジックマシン対応 (近日公開 — 研究中) — 同じ読み取り専用の設計時モデルをロジックマシン(Embedded Systems)のインストールにも適用:LMベースのKNXプロジェクトを解析し、同じ命名/DPT/ステータス/トポロジ監査を実行し、同じ引継ぎ出力を生成。これによりLMインテグレーターも、生の.knxprojから得られるのと同じ証拠に基づくプロジェクトモデルを得られます。現在、実際のLogic Machine 5ユニットに対してスコープを検討中。

  • ETS内のグループアドレスリンクについては、意図的に車輪の再発明はしません:ETS内でGAを通信オブジェクトにリンクするには、現在すでにETS App Storeのアドインが存在し、ネイティブのスマートリンキングがETS7で登場予定です — それらを紹介し、読み取り専用の監査と証拠に基づくプロジェクトモデルに焦点を当てます。

テストしたいプロジェクト、壊れるワークフロー、形にしたい機能がありますか? → Discussions。


なぜこれが存在するのか

2026年半ば現在、既製のETS6 ↔ Claude / MCPツールは存在しません。KNXコミュニティは、AI/CLIワークフローを通じてプロジェクトを検査・修正(デバイスやグループアドレスの追加/名前変更)できる統合を明示的に求めています。このパッケージは、まさにその設計時レイヤー — 欠けていた部分 — を埋めます。

推奨される完全なセットアップは4つのレイヤーです。そのうち1つだけをゼロから構築する必要があります:

レイヤー

目的

使用するもの

構築する?

1. ライブ

実行中の家の状態、制御、デバッグ

公式Home Assistant MCPサーバー + KNX (XKNX) 統合

いいえ、すでに存在

2. 設計時

.knxprojを解析、DPT/命名/ステータス + GA意図ノイズ除去を検証、HA YAML(カラーライト + 気候を組み立て) & ETS XML/CSVを生成

nickol-knx-mcp(このパッケージ)

はい — これがギャップ

3. ファイル + Git

YAML/CSV/XML、アドレススキーマのバージョン管理

標準のファイルシステム + git MCPサーバー

いいえ、すでに存在

4. スキル

設計ルール(GA構造、命名、DPT、シーン)+ 運用規律

CLAUDE.md + skills/(ha-git-backup運用コンパニオン)

いいえ、含まれています

設計による安全性: レイヤー2(このサーバー)は物理的にバスに接続できません。ネットワーク/バス依存性はまったくなく、.knxprojを読み取り、制限されたワークスペースにファイルを書き込むだけです。「ライブバスに書き込まない」要件は、約束ではなく構造的に強制されています。家との実際のやり取りは、レイヤー1(Home Assistant)を通じてのみ行われます。


これでできること

📐 シナリオ1 — 仕様からプロジェクトを設計(仕様 → 実装キット)

プロジェクト仕様(機器スケジュール、ケーブルジャーナル、デバイスリスト)を、完全で検証済みのグループアドレス構造に変換 — そしてそれを実装するための完全なドキュメント一式:

  1. デバイスリスト → オブジェクトモデル。 各デバイスは、デバイスライブラリ(decompose_device)を介して実際の通信オブジェクトに展開されます。調光チャンネルは、オン/オフ + ステータス + 相対調光 (3.007) + 絶対値 (5.001) + 輝度ステータス — 「1つのGA」ではありません。床暖房ゾーンは8オブジェクト、パルスメーターは6オブジェクトです。

  2. プロフェッショナルロジックレイヤー。 仕様書だけでは、プロジェクトを完全にする要素(中央&ゾーンマクロ、シーン、在室ロジック、気候制御の骨組み、太陽/風によるシャッターロジック、漏水→遮断チェーン、天文/気象および日時ソース、全範囲の予約)については決して言及されません。この方法論は、KNX協会標準、公開されているメーカーのドキュメント、実際のプロフェッショナルな施工済みETSプロジェクト(匿名化)の研究から抽出された、これらの完全性パターンをエンコードしています。

  3. 構造と規律。 3レベルのアドレッシング、ゾーン+機能の命名、コマンド↔ステータスのペアリング、すべてのアドレスにDPT。

  4. 成果物(各コマンド1つ):ETSインポート可能なXML/CSV · Markdownレポート · Home Assistant YAML · 機能受入試験プロトコル · 施工済み引渡しパック(在庫、GAマップ、カバレッジ%、Secure姿勢、QA所見、トポロジSVG)。

完全な方法論:docs/spec-to-structure.md。実際の施工済みETSプロジェクト(3,600以上のグループアドレス)を仕様書のみから再構築して現場検証済み:約92%の構造的一致(分類、ドメイン、自動化ロジック、DPT分布)、検証エラーゼロ — 残りの差分はインテグレーターのデバイスごとのパラメータ設定であり、仕様書にはエンコードされていません。

🔍 シナリオ2 — 既存プロジェクトの監査、修復、完了

  • 読み取りと分類。 xknxproject を介してパスワード保護されたETS5/ETS6 .knxproj を解析。DPTと多言語(EN/DE/RU)の名前キーワードから、すべてのGAをカテゴリ(照明/シャッター/HVAC/センサー/シーン/エネルギー/診断)と種類(コマンド/ステータス/センサー)で分類。GAの目的タグ付け(functional / reserve / logic / scratch)により、意図的なプレースホルダーをエラーリストから除外し、レポートが誤警報を発しないようにします(実際の685-GAプロジェクトでは、誤エラーが29→6に減少)。

  • 検証(analyze_all ですべてを実行):命名と構造 · 欠落ステータスオブジェクト(ETS-Functionロールを優先、次に名前トークンペアリング、位置ペアリング — 1:1の名前を持つ並列ステータス中間 — および自己報告R+Tオブジェクト) · 欠落/不整合なDPT + サブDPTの健全性(5.001を持つ「温度」GAはフラグが立てられる) · 相対調光のみ · KNX Secure姿勢(セキュア化 vs 平文、混合グループ、キーリングチェックリスト — 鍵素材は決して読み取られない) · Matter対応 · エネルギードメインカバレッジ。

  • フラグを立てるだけでなく修復(suggest_repairs):名前からDPTを推測、疑わしいサブDPTを修正、空きアドレススロットに欠落ステータスGAを合成、絶対輝度GAを追加。提案のみ — 人間がレビューし、受け入れられたGAはETSエクスポートに供給されます。実際の3,646-GAプロジェクトでは:145の具体的な提案(32のDPT推測、112の合成ステータスGA)。

  • ジョブを完了:grade_completeness(骨組みのみ → 施工済みスコア)、suggest_names、diff_projects(2つの.knxprojリビジョンのセマンティック差分:追加/削除/DPT変更/名前変更/セキュア変更)、その後レポート、引渡しパック、テストプロトコルを再生成。

🏠 シナリオ3 — スマートホームレイヤーの生成(Home Assistant)

  • 控えめにエンティティを組み立て:カバー → カラー/調光可能ライト(オン/オフ + 輝度 + RGBW/RGB/色温度 + ステータス) → スイッチ → 気候(現在温度、目標温度ステータス、運転/コントローラーモード、バルブ値) → センサー/バイナリ。すべてのエンティティは、デバイスが報告可能な場所に state_address を取得 — HAは実際の状態を読み取り、決して推測しません。

  • レビュー優先:あいまいなもの(DPT 5.001 — 輝度かブラインド位置か?)は推測されません — 説明とともにreviewリストに送られます(invert_position / 走行時間など、どの.knxprojもエンコードしないアクチュエータ依存のカバーフラグを含む)。

  • 追加機能:日時ブロードキャスト用のexposeブロック(DPT 19.001)、Matter対応リント、KNX IoT(Turtle/RDF)セマンティックエクスポート。

  • 家のライブ制御は公式のHome Assistant統合(レイヤー1)に残ります — このサーバーはその設定を準備するだけです。

  • 運用コンパニオン:skills/ha-git-backup — デプロイ後の設定のライフ:/configの実際のgit履歴(デプロイキー + pre-commitシークレットスキャナー)に加え、GitHub Releases内の暗号化されたオフサイトバックアップ、月次リストア訓練付き。

🧱 シナリオ4 — 部屋テンプレートから新しいプロジェクトを構成

  • 白紙からではなく部屋から:6つの組み込みパラメータ化された部屋テンプレート(寝室、子供部屋、リビング、キッチン、バスルーム、廊下)から選択し、スロットごとにbasic / comfortプリセットを選択(家は快適な気候と基本的な照明を混在可能)、compose_roomsが新しいプロジェクトを組み立てます。

  • 出力:割り当てmanifest(メイン = ドメイン、ミドル = ロール、サブ = 連番)、既存のジェネレーターを介したETSインポート可能なGA XML/CSV、およびデバイスライブラリからのデバイスBOM提案。

  • 実際のリーダーによる検証:生成された.knxprojは標準のload_project(サードパーティプロジェクトに使用されるのと同じパス)を介して再読み取りされ、4つのリンターすべて(命名/欠落ステータス/DPT/ポリシー)をエラー0 / 警告0で通過します。

  • デフォルトでドライラン、新規プロジェクトのみ。 テンプレート形式は公開契約です(room_templates/SCHEMA.md):識別子はロケールに依存しないslot_idであり、人間の名前ではありません。

  • R2: 既存プロジェクトへのドッキング + 正確なデバイス選択 — 計画中。

🧩 基盤 — 成長するデバイスライブラリ

  • parse_devices_from_project は、任意の.knxproj / .knxprod内のメーカーアプリケーションプログラムから、正確なベンダーオブジェクトモデル — HDL/Ekinexのような参照レベル(ComObjectRef)パブリッシャーを含む — を抽出します:オブジェクト番号、名前、サイズ、DPT、C/R/W/T/Uフラグ、チャンネルごとのブロックストライド — 決定論的かつPIIセーフ(ベンダーカタログデータのみ。ファイルのクライアントプロジェクト部分は決して読み取られません)。

  • NICKOL_KNX_CATALOGをカタログに向けると、decompose_deviceは汎用レシピではなく正確なモデル(catalog-exact)で応答します — カタログは、あなたがフィードするプロジェクトと製品データベースからオンデマンドで成長します。

  • ベンダーが宣言されたDPTなしで出荷するオブジェクトは、正直にunverifiedのまま — 決して推測されません。

すべての書き込みはワークスペースディレクトリ(NICKOL_KNX_WORKSPACE、デフォルト./knx-workspace)にのみ行われます。それ以外への書き込みは拒否されます。


インストール

Python 3.10+ が必要です。

git clone https://github.com/NickoScope/nickol-knx-mcp.git
cd nickol-knx-mcp
python3 -m venv .venv && source .venv/bin/activate
pip install -e .

依存関係:mcp>=1.10、xknxproject>=3.8、PyYAML>=6.0。

Debian/Ubuntuで、pipが外部管理環境について警告する場合は、venvを使用するか(上記参照)、pip install -e . --break-system-packagesを実行してください。PyJWTが競合する場合は、最初にpip install mcp --ignore-installed PyJWTを実行してください。

確認:

python tests/test_pipeline.py     # synthetic 16-GA project, end-to-end smoke test
nickol-knx-mcp                    # start the MCP server (stdio)

Claudeへの接続

Claude Desktop

examples/claude_desktop_config.json は、nickol-knx + filesystem + git + home-assistant を配線します。最小限の断片(macOS設定パス:~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "nickol-knx": {
      "command": "nickol-knx-mcp",
      "env": { "NICKOL_KNX_WORKSPACE": "/path/to/your/knx-workspace" }
    }
  }
}

Claude Code

claude mcp add nickol-knx \
  -e NICKOL_KNX_WORKSPACE="$HOME/knx-workspace" \
  -- /absolute/path/to/.venv/bin/nickol-knx-mcp

次に、CLAUDE.mdをプロジェクトルートに配置します — これはETSアシスタントスキルとして機能します(設計ルール、安全ルール、3レベルGA構造、コマンド/ステータスペアリング、DPT規律、命名、KNX Secureキーリング処理、推奨ワークフロー)。


MCPツール(31)

読み取り

ツール

目的

load_project(path, password?, language?)

.knxprojを解析(読み取り専用)してキャッシュ

list_group_addresses(category?, kind?)

分類とフィルターでGAを一覧表示

get_devices()

デバイスとその通信オブジェクト

get_topology()

トポロジ(エリア/ライン/デバイス)

explain_ga(address)

1つのGAの来歴:なぜこのように分類されたか — 信頼度階層(権威あるETS Function > 構造的DPT > ヒューリスティックな名前)による決定ごとの証拠、ステータスのペアリング方法、および競合(名前が"AC"と言い、DPTが照明と言う → contested)

検証

ツール

目的

check_naming(name_regex?)

命名規則 / 3階層構造の検証

check_missing_status()

ステータスオブジェクトがないアクチュエータを検出

check_dpt()

欠落・矛盾したDPT +サブDPTの妥当性チェック(温度→9.001、電力→14.056…)

check_topology()

トポロジ容量+個別アドレスの有効性(TP1 64/セグメント、256/ライン、有効かつ一意なA.L.D、カプラの存在 — KNXハンドブック準拠)

check_secure()

KNXデータセキュアの状態+キーリング引継ぎチェックリスト

check_matter()

Matter対応リント(Matterクラスタにマッピング可能な機能を判定)

check_energy()

計量・エネルギーDPTチェック+PV/バッテリー/EVSEのスキャフォールド

analyze_all(name_regex?)

全チェックを一括実行

check_policy(profile_path?, write_example_to?)

プロジェクトポリシープロファイル(メイングループ分類、命名規則、ペアリング)に対する検証 — プロファイル未指定時はプロジェクト自体から推論した分類体系を使用;あなたの規約から逸脱するGAをフラグ付け(普遍的な標準ではない)

修復と設計

ツール

目的

suggest_repairs()

問題の指摘だけでなく修正案を提示 — DPTの推論、ステータス・輝度GAの合成

suggest_names()

命名規則の改善提案

decompose_device(order_number, channels?)

デバイス→GA分解:ローカルカタログ(NICKOL_KNX_CATALOG)からの正確なベンダーモデル、または汎用レシピ

list_device_recipes()

組み込みデバイスライブラリ(Zennio + ABBファミリ)

parse_devices_from_project(path, output_path?, password?)

.knxproj/.knxprod内のアプリケーションプログラムから正確なデバイスオブジェクトモデルを抽出 → デバイスライブラリYAML(ローカルカタログに供給)

check_device_parameters(path, password?, min_group?)

デバイス間パラメータQA:ETSパラメータが同一型の兄弟デバイスと異なるデバイスを検出(異常なサーモスタット・センサー) — clear_outliers(誤りの可能性大)+ split_configs(バランスの取れたバリアント、要レビュー)

grade_completeness()

プロジェクトの完成度評価:骨組み段階か施工完了段階か

diff_projects(path_a, path_b, …)

2つの.knxprojバージョン間の意味的差分

生成

ツール

目的

generate_ha_package(output_path?)

HA KNX YAML(色+気候+露出)+レビューリスト

generate_ets_group_addresses(fmt="xml"|"csv", output_path?)

ETSインポート可能なGA

generate_handover_pack(output_dir?)

施工完了引継ぎパッケージ:在庫一覧、GAマップ、カバレッジ、セキュア、QA、topology.svg

generate_test_protocol(output_path?)

機能受入試験プロトコル(コマンド→期待ステータス)

generate_knx_iot(output_path?)

KNX IoTセマンティックエクスポート(Turtle/RDF)

project_report(output_path?, name_regex?)

Markdownレポート

workspace_info()

ワークスペースパス+安全性保証

ルームライブラリ(R1 — ルームテンプレートから新規プロジェクトを構成)

ツール

目的

validate_room_template(template?, path?)

ルームテンプレート(組み込みslot_idまたはカスタムYAML)をR1スキーマに対して検証

compose_rooms(rooms, language="ru", project_name?, output_dir?, dry_run=true)

ルームリストから新規プロジェクトを構築 → 割り当てmanifest、ETS GA XML/CSV、デバイスbom提案;生成された.knxprojは標準ローダーで再読み込みされリントされる(エラー0 / 警告0)。新規プロジェクトのみ、デフォルトはドライラン。


典型的なワークフロー

  1. load_project → .knxprojを指定(保護されている場合はパスワードも)。

  2. analyze_allまたはproject_report → 結果を確認;まず人間によるレビュー。

  3. ETSで命名規則/DPT/ステータスを修正(生成されたGAをインポートするか手動で)。

  4. generate_ets_group_addresses(fmt="xml") → 不足しているGAをETSにインポート。

  5. generate_ha_package → YAMLをHome Assistantに配置;review項目を手動で解決。

  6. すべて(.knxprojエクスポート、HA設定、アドレススキーマ)をGitで管理。

  7. 実際の住宅にはHome Assistant MCP(レイヤー1)経由でのみアクセス。


制限事項(正直に)

  • コマンド/ステータスおよびカテゴリ分類はヒューリスティック(DPT+名前+ETS Functions)です。 Functionsがなく非標準の名前が使われている複雑なプロジェクトでは、偽陰性/偽陽性が発生する可能性があります — そのためレポートは常に人間によるレビュー用であり、曖昧なものは設定に含めずreviewに回します。

  • DPT 5.001は構造的に曖昧です(輝度か位置か);キーワードで判別します — 非標準の命名の場合は再確認してください。

  • HAジェネレーターは保守的です:誤ったエンティティを出力するよりも、アイテムをreviewに回すことを優先します。

  • サーバーはバスに書き込まず、ETSと直接通信しません — ETSとのやり取りはGAのファイルインポート/エクスポートのみです。

  • 合成デモプロジェクトおよび実際の数千GA規模のETS5/ETS6プロジェクト(匿名化)で検証済み — しかし実際の.knxprojファイルは多種多様であり、まだベータ版です。そのためテスター募集を行っています。


🔒 セキュリティモデル

  • 構造的にバスアクセスなし。 依存関係ツリーにネットワーキングやバスライブラリは含まれていません。 workspace_info()はbus_access: falseを報告します。

  • プロジェクトに対して読み取り専用。 project.pyのみが.knxprojにアクセスし、読み取りのみ行います。

  • 書き込み先を制限。 すべての出力はNICKOL_KNX_WORKSPACE内に制限され、外部パスは拒否されます。

  • 悪意のあるプロジェクトファイルに対する防御。 .knxprojは信頼できないZIP-of-XMLであるため、解析は safexml.pyを経由します:DTD/エンティティXMLは拒否(billion-laughs / XXE攻撃対策)、アーカイブは サイズ/エントリ数/展開率の上限とパストラバーサル名の拒否により事前チェックされます(zip爆弾対策)。

  • 人間がループに参加。 project_reportを生成し、ETSにインポートしたりHome Assistantにデプロイする前にレビューしてください。

セキュリティ問題を発見しましたか? SECURITY.mdを参照してください。


パッケージ構成

nickol-knx-mcp/
├── nickol_knx_mcp/
│   ├── dpt_map.py        # DPT → category / kind / HA platform / value_type
│   ├── project.py        # the ONLY module that reads .knxproj (read-only)
│   ├── safexml.py        # hardened ZIP/XML parsing of untrusted .knxproj (zip-bomb / XXE defense)
│   ├── pairing.py        # command↔status pairing by name tokens
│   ├── analyze.py        # naming / missing-status / DPT checks
│   ├── generate_ha.py    # Home Assistant KNX YAML generation
│   ├── generate_ets.py   # ETS XML + CSV generation
│   ├── report.py         # Markdown report
│   ├── room_library.py   # Room Library R1 — compose a new project from templates
│   ├── room_templates/   # built-in room YAML templates + SCHEMA.md (public contract)
│   └── server.py         # FastMCP server, 31 tools, confined writes
├── tests/test_pipeline.py
├── examples/claude_desktop_config.json
├── skills/
│   └── ha-git-backup/    # ops companion: 2-circuit HA backup (git history + encrypted offsite)
├── CLAUDE.md             # ETS Assistant skill / playbook
├── pyproject.toml
└── README.md

コントリビューション

テスターやコントリビューターを歓迎します — 特に実プロジェクトのテストレポートを歓迎します。 CONTRIBUTING.mdおよびissueテンプレートを参照してください。

ライセンス

MIT © 2026 Nikolay Miroshnichenko

KNX Associationとの提携や推奨はありません。「KNX」および「ETS」はKNX Association ccの商標です。 これは独立したコミュニティツールです。

Available Tools

32 tools
analyze_allC

Run every check and return the report summary plus all findings.

Inputs: name_regex. Returns: object

check_device_parametersA

Find the device whose ETS parameter settings differ from its N identical siblings — the odd thermostat/sensor out (e.g. one thermostat with a different setpoint/hysteresis, one presence detector with a different detection time).

Reads per-device parameter values straight from the `.knxproj` project part
(data xknxproject does not expose), groups identical devices by application
program, and returns `clear_outliers` (a strong majority with a small minority —
likely a mistake) and `split_configs` (balanced 2+ variants — review, often two
zones). Numeric config parameters are listed first; names are resolved from the
device application program. Read-only, no ETS/bus. Give a real `.knxproj` `path`
(a password-protected/encrypted project cannot be read).

Inputs: path (required), password, min_group. Returns: object

check_dptB

Detect missing, inconsistent or mismatched DPTs.

Inputs: no named parameters. Returns: result

check_energyA

Check the metering/energy domain (energy DPTs 13.x / 14.056) and suggest a per-circuit / PV / battery / EVSE structure for the HA energy dashboard.

Inputs: no named parameters. Returns: object

check_matterB

Matter-readiness lint: which controllable functions round-trip to a Matter cluster (have command + status + a decodable DPT) and which won't.

Inputs: no named parameters. Returns: object

check_missing_statusB

Detect controllable GAs lacking a status/feedback counterpart.

Inputs: no named parameters. Returns: result

check_namingC

Validate naming conventions and 3-level structure.

Inputs: name_regex. Returns: result

check_policyA

Validate the loaded project against a Project Policy Profile — your agreed rules (main-group taxonomy, naming regex, command/status exemptions), not one universal "standard". Flags GAs whose domain doesn't match the main group your policy assigns, and names that don't match your pattern. Pass profile_path to a YAML profile (omit to validate against the taxonomy inferred from the project itself). Set write_example_to to drop a commented example profile into the workspace — seeded from the loaded project's own main groups (mains that do not exist in the project are not written). Report-only.

Inputs: profile_path, write_example_to. Returns: object

check_secureA

Summarise KNX Data Secure posture + the keyring handover checklist.

Reports how many group addresses are secured vs plaintext, flags middle groups that mix secure and plaintext addresses (a function is only as secure as its weakest GA), and emits the ETS/HA keyring workflow as a checklist. Report-only — this server never touches key material.

Inputs: no named parameters. Returns: object

check_topologyA

Check topology capacity and individual-address validity (KNX Handbook).

Flags lines over the TP1 segment (64) / line (256) limits, invalid or duplicate individual addresses, and multi-line projects missing a coupler.

Inputs: no named parameters. Returns: result

compose_roomsA

Compose a new KNX project from a list of room templates (constructor).

``rooms`` is a list of specs, each: ``{template, preset?, slot_presets?,
params?, label?}`` — e.g. ``{"template": "bedroom", "preset": "comfort"}``.
``preset`` is basic|comfort (per-room); ``slot_presets`` overrides individual
slots (mix comfort climate with basic lighting); ``params`` overrides template
defaults (window/circuit counts); ``label`` sets a custom zone name.

Pipeline: resolve templates+params to a functional model, allocate group
addresses (main = domain, middle = role, sub sequential), write a real
``.knxproj`` and **re-read it with the standard loader**, then run our linters
on the re-read project. Output: a ``manifest`` (allocation), ETS GA XML/CSV,
and a device ``bom`` proposal from the device library.

R1 builds NEW projects only and is dry-run by default (nothing written). Set
``dry_run=false`` with ``output_dir`` (a folder inside the workspace) to write
the .knxproj, ETS exports, manifest.yaml and bom.yaml. Docking into an
existing project and exact device selection are R2. Never touches a bus.

Inputs: rooms (required), dry_run, language, output_dir, +1 more. Returns: object

decompose_deviceA

Expand a device into its group-address decomposition recipe.

A KNX actuator channel is not one GA — it expands into command/status/dimming/ position/mode objects, each with its DPT. Given a device order number, type or alias (e.g. 'ZIO-MB24', 'dimmer', 'JRA/S', 'presence detector') and a channel count, returns the objects a professional wires per channel and the total GA count. Use when turning a spec/ТЗ device list into a group-address structure.

Inputs: order_number (required), channels. Returns: object

diff_projectsA

Semantic diff between two .knxproj files (path_a = base/old, path_b = new): added / removed GAs, DPT changes, renames, security-flag changes. Read-only.

Inputs: path_a (required), path_b (required), password_a, password_b. Returns: object

explain_gaA

Provenance for one group address — why the tool classified it the way it did. Replays the classification and shows, per decision (category / kind / status pairing), the signals that fired with a confidence tier: authoritative (an ETS Function role) > structural (the KNX DPT) > heuristic (a name keyword). Flags conflicts (e.g. a GA the DPT calls lighting while its name says "AC") — the hotspot for silent misclassification. Read-only; use before trusting a category or generating an entity.

Inputs: address (required). Returns: object

generate_ets_group_addressesA

Generate an ETS-importable Group Address export.

Args:
    fmt: 'xml' (ga-export/01, recommended) or 'csv' (native ETS layout).
    output_path: optional file inside the workspace.

Inputs: fmt, output_path. Returns: object

generate_handover_packA

Generate a project handover pack (as-built deliverable for commissioning).

Assembles an equipment inventory, group-address map by domain, command/status
coverage, KNX Secure scope and QA state into ``handover.md``, plus a
``topology.svg`` diagram, the full ``group-addresses.csv`` and the
``ha-package.yaml``. When ``output_dir`` is given (a folder inside the
workspace) all files are written there and the paths returned; otherwise the
handover markdown + SVG are returned inline.

Inputs: output_dir. Returns: object

generate_ha_packageA

Generate a Home Assistant KNX package YAML.

If output_path is given, the YAML is written into the workspace and the path
returned; otherwise the YAML text is returned inline.

Inputs: output_path. Returns: object

generate_knx_iotB

Export a KNX IoT semantic view (Turtle/RDF) of the project's functional datapoints — a pragmatic skeleton for the IP-native model, for review.

Inputs: output_path. Returns: object

generate_test_protocolA

Draft a functional acceptance protocol (per function: command → expected status, pass/fail/sign-off) as Markdown. Execution is manual/on-site; this only drafts it.

Inputs: output_path. Returns: object

get_devicesA

List devices (individual address, name, order number, manufacturer), sorted by individual address (area/line/device numerically). Same paging contract as list_group_addresses: next_cursor / total_matched / returned.

Inputs: limit, cursor. Returns: object

get_topologyB

Return the area/line/device topology tree.

Inputs: no named parameters. Returns: object

grade_completenessA

Grade the project: bare functional skeleton vs as-built grade — by the presence of the professional patterns (central macros, device tuning, astro/meteo, monitoring, deep metering, scenes, reserves, a debug main).

Inputs: no named parameters. Returns: object

list_device_recipesA

List the device decomposition recipes in the built-in device library.

Inputs: no named parameters. Returns: result

list_group_addressesA

List parsed group addresses with classification, in a stable order.

Filters: category (lighting/shutter/hvac/sensor/scene/energy/diagnostics),
kind (command/status/sensor), missing_dpt_only.

Paging: results are always sorted by the group address itself (main/middle/sub
numerically, free-style addresses numerically, anything else lexically), so the
order does not depend on how the project happened to parse and a retry returns
the same page. Pass the returned `next_cursor` back as `cursor` for the next
page; `next_cursor` is null on the last page. `total_matched` reports how many
addresses match the filters, so a truncated answer is never silent.

Inputs: kind, limit, cursor, category, +1 more. Returns: object

load_ga_exportA

Load an ETS group-address export (ga-export/01 XML) instead of a full .knxproj.

For when you only have the GA list: an ETS "Export Group Addresses" file, or the
ETS import file a planning tool produces (TapPlan and similar). Names, addresses,
DPTs, descriptions, the security flag and the range tree are read; the result
replaces the loaded project for every other tool.

Works: check_naming, check_missing_status, check_dpt, check_policy, check_secure,
analyze_all, suggest_repairs, project_report, generate_ha_package,
generate_ets_group_addresses. Nothing to read (the export has no devices, ETS
Functions or topology): get_devices, get_topology, check_topology,
decompose_device, check_device_parameters, parse_devices_from_project. Pairing
relies on names only, since there are no ETS Function roles.

Args:
    path: Path to the exported .xml file.

Inputs: path (required). Returns: object

load_projectA

Parse a .knxproj file (read-only) and cache it for the session.

Args:
    path: Path to the .knxproj file.
    password: Project password, if the .knxproj is protected.
    language: Optional language code (e.g. 'de-DE', 'ru-RU').

Inputs: path (required), language, password. Returns: object

parse_devices_from_projectA

Extract exact device object models from a .knxproj / .knxprod application programs.

Reads the manufacturer application programs (M-*) embedded in an ETS `.knxproj`
(devices actually used) or a `.knxprod` product database, and returns each device's
order number, app-program version, object counts and detected per-channel blocks —
the EXACT vendor comm-object model, not a generic recipe. Read-only and PII-safe: it
reads only vendor catalog data, never the client project (P-*/0.xml).

Use this to build/grow the local device catalog that `decompose_device` consumes
(set NICKOL_KNX_CATALOG to the catalog dir). If `output_path` is given, the full
catalog is written into the workspace as device-library YAML; the return value is
always a compact per-device summary + coverage manifest (the full object lists are
not inlined). DPT `unverified` = the vendor app-program declares none (never guessed).

Inputs: path (required), password, output_path. Returns: object

project_reportC

Produce the human-readable Markdown report (review before any import).

Inputs: name_regex, output_path. Returns: object

suggest_namesB

Naming hygiene suggestions (empty names, status GAs missing a status keyword).

Inputs: no named parameters. Returns: object

suggest_repairsA

Propose concrete fixes for the project's findings — repair, don't just flag.

For each issue it suggests a reviewable fix: infer a DPT for a GA that has none,
correct a suspect sub-DPT, synthesise a status/feedback GA in a free address slot,
or add an absolute-brightness GA for a relative-only dimmer. Suggestions only —
a human reviews them; accepted new GAs feed generate_ets_group_addresses. The
server never writes to ETS or the bus.

Inputs: no named parameters. Returns: object

validate_room_templateA

Validate a Room Library template against the R1 schema (report-only).

Pass ``template`` (a built-in template's semantic slot_id, e.g. 'bedroom',
'kitchen') or ``path`` to a custom template YAML. Checks the public contract:
a locale-neutral slot_id, ru/en labels, per-slot basic/comfort presets, known
function types, valid multiplicities, and that ``area_m2`` is a hint with
provenance (never a normative fact). Returns ok + findings; nothing is written.

Inputs: path, template. Returns: object

workspace_infoB

Show the confined output workspace and the safety guarantees.

Inputs: no named parameters. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 32 tools

    Disambiguation4/5

    Tools are largely distinct due to consistent prefixes (check_*, generate_*, list_*, get_*) and targeted domains. Minor overlap exists (e.g., check_naming vs. suggest_names, analyze_all vs. project_report), but descriptions clarify boundaries.

    Naming Consistency4/5

    Most names follow a verb_noun pattern with strong category prefixes. A few irregular names (analyze_all, project_report, workspace_info) break the pattern, but the overall style is predictable and readable.

    Tool Count2/5

    32 tools is a large surface, well above the typical 3-15 range. While each tool appears justified, the count feels heavy and could be consolidated (e.g., parameterized check/generate tools), increasing cognitive load for agents.

    Completeness4/5

    The toolset covers the full KNX workflow: project loading, multiple analysis/check dimensions, report generation, exports, room composition, and device decomposition. Minor gaps exist (no direct write/apply fixes, no update/delete operations), but these are intentional design constraints.

    Maintenance

    ActivityStale
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables automated project analysis and structured development specification generation. Supports multiple export formats and integrates with AI models for comprehensive project documentation and validation.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Local electronics tools for MCP-capable assistants, enabling static analysis of CRUMB save files and Logisim-evolution projects, including net tracing, BOM building, electrical rule checks, and optional truth table generation.
      22
      95 npm
      1
      Apache 2.0
    • F
      license
      A
      quality
      B
      maintenance
      Provides read-only analysis of Mitsubishi GX Works3 PLC projects via MCP, enabling device tracing, cross-referencing, ladder inspection, linting, and report generation without modifying source projects.
      15
      74 PyPI
      10
      -