nickol-knx-mcp
nickol-knx-mcp
一个设计期的 KNX / ETS6 助手,以 MCP 服务器形式提供。
你可以用它做四件事 — 全都无需接触实时 KNX 总线:
根据规范设计项目 — 将设备清单 / 项目规范转化为完整、经过校验的组地址结构,外加整套实施文档(ETS 可导入的 XML/CSV、易读的报告、Home Assistant YAML、验收测试协议、竣工移交包)。
审计、修复并完善现有项目 — 校验命名 · DPT 与子 DPT · 命令↔状态 · KNX Secure · Matter 就绪度,获得具体的修复建议(推断出的 DPT、合成的状态 GA),评估完整性,并对比两个项目版本。
生成智能家居层 — 组装好的 Home Assistant 实体(彩色灯、气候、窗帘、传感器)读取真实设备状态,所有存在歧义之处都留待人工审查。
从参数化房间模板组合新项目 — 根据房间列表(每个槽位带有
basic/comfort预设)组装一个新的、经过校验的项目 → 分配清单 + ETS GA XML/CSV + 设备 BOM 提案。仅限干跑、仅限新项目(R1)。
在底层:一个设备库,可将每个执行器展开为其真实的通信对象 — 从通用配方一直到直接从 ETS 应用程序解析出的精确厂商对象模型。
🇷🇺 Русская версия: README.ru.md
新增 — 一整栋演示住宅。
examples/demo-home附带一个合成的 239-GA / 47-Function 项目、该工具生成的报告 + Home Assistant 配置 + ETS 导出,以及一个完整的 智能家居**“大脑”** — 昼夜节律照明、8 因素气候设定点、存在/季节/时间 状态机和统计 — 驱动一个 5 视图仪表盘。在 在线站点 ↗ 上可以全部看到。
🖥️ 仪表盘 — 在 Home Assistant 中实时运行
来自运行演示住宅的实时 Home Assistant 的真实截图。它们展示了该工具组装好的实体在工作:RGBW / RGB / CCT 彩色灯、六个地暖气候分区(目标、模式和阀门开度 %)、一条昼夜节律照明曲线和一个计算得出的气候设定点 — 都不是手动设置的。
气候 | 照明 |
能源与统计 | 存在 |
▶ 在在线站点上交互式探索 → · 配置见 examples/demo-home/ha-brain
Related MCP server: PBIP Builder MCP Server
🧪 状态与测试者招募
这是一个公开 beta。完整流程在一个合成项目上通过了端到端冒烟测试,并已针对真实的数千个 GA 的 ETS5/ETS6 项目(已匿名化)进行验证 — 但真实的 ETS 项目总是千奇百怪、五花八门,更多的实测报告会让它变得更好。
👉 如果你有 ETS5/ETS6 项目,请试用它并告诉我们结果。 打开一个 真实项目测试报告 issue。该工具是只读的,从不连接总线,因此测试是安全的(参见 安全模型)。更多细节见 CONTRIBUTING.md。
💬 加入讨论 → — 说声你好、随便提问,或分享这个工具在你的项目上发现了什么。
🗺️ 路线图 — 由真实集成商塑造
来自从业 KNX 集成商的近期评论(见 讨论区)正在指引接下来的方向:
跨设备参数一致性 (已发布 —
check_device_parameters) — 标记出 ETS 参数设置与其 N 台完全相同的同类设备不同的那一台设备:一台设定点/迟滞不同的恒温器,一台检测时间不同的存在检测器。直接从.knxproj提取每台设备的参数,并在真实的 42–275 台设备项目上找出异常者 — 只读、无需 ETS、无需总线 — 并且在干净的项目上正确报告无异常(在不同厂商 / 集成商风格之间无误报)。项目策略配置文件 (已发布 —
check_policy) — 根据你们自己约定的规则(命名、GA 分类体系、命令/状态豁免)来校验项目,而不是某个放之四海而皆准的“专业标准”,因为各家集成商的惯例各不相同;在没有配置文件时,则根据项目本身推断出的分类体系进行校验。房间模板库 — 从参数化的房间模板组合一个新的项目。R1 已发布(
compose_rooms+validate_room_template:仅新项目、干跑、分配清单 + ETS XML/CSV + 设备 BOM)。R2 计划中:接入现有项目 + 精确设备选型。Logic Machine 支持 (即将推出 — 研究中) — 将同样的只读、设计期模型带给 Logic Machine(Embedded Systems)安装:解析基于 LM 的 KNX 项目,运行相同的命名 / DPT / 状态 / 拓扑审计,并生成相同的移交输出,让 LM 集成商获得与从原始
.knxproj获得的相同的可验证项目模型。目前正在针对一台真实的 Logic Machine 5 设备进行范围界定。关于 ETS 内的组地址连接,我们刻意不重复造轮子:要在 ETS 内把 GA 连接到通信对象,如今已经有 ETS App-Store 插件可用,原生的 Smart Linking 也将在 ETS7 中推出 — 我们会为你指明方向,同时继续专注于只读审计和可验证的项目模型。
有想测试的项目、跑不通的流程,或想一起塑造的功能?→ 讨论区。
为什么会有这个项目
截至 2026 年年中,还没有现成的 ETS6 ↔ Claude / MCP 工具。KNX 社区一直在明确要求这样一个集成:能够通过 AI/CLI 工作流检查并帮助修改项目(添加 / 重命名设备和组地址)。这个包恰恰填补了设计期这一层 — 缺失的那一层。
推荐的完整方案有四层;只有一层需要从零构建:
层级 | 用途 | 使用什么 | 需要构建吗? |
1. 实时 | 状态、控制、调试运行中的住宅 | 官方 Home Assistant MCP Server + KNX (XKNX) 集成 | 不需要,已存在 |
2. 设计期 | 解析 |
设备列表 → 对象模型。每个设备通过设备库(
decompose_device)展开为其真实的通信对象:一个调光通道包含开/关 + 状态 + 相对调光(3.007)+ 绝对值(5.001)+ 亮度状态——而非"一个GA";一个地暖区域包含8个对象;一个脉冲表包含6个。专业逻辑层。一份裸规格说明永远不会提及构成一个完整项目的要素:中央及区域宏、场景、存在逻辑、气候控制框架、太阳/风百叶逻辑、泄漏→关断链、天文/气象及日期时间源、各范围内的预留地址。该方法论编码了这些完整性模式——提炼自KNX协会标准、公开的制造商文档以及对真实专业竣工ETS项目(已匿名化)的研究。
结构与规范。3级寻址、区域+功能命名、命令↔状态配对、每个地址一个DPT。
交付物(各一条命令):可导入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(两个.knxproj修订版的语义差异:新增/删除/DPT变更/重命名/安全变更),然后重新生成报告、移交包和测试协议。
🏠 场景3——生成智能家居层(Home Assistant)
保守组装实体:遮阳帘 → 彩色/可调光灯(开/关 + 亮度 + RGBW/RGB/色温 + 状态)→ 开关 → 气候(当前温度、目标温度状态、运行/控制器模式、阀门值)→ 传感器/二进制传感器。每个实体在设备可报告的地方都获得一个
state_address——HA读取真实状态,从不假设。先审查:任何模棱两可的内容(DPT 5.001——亮度还是百叶位置?)不会被猜测——它会进入一个
review列表并附上解释(包括执行器相关的遮阳帘标志,如invert_position/行程时间,这些是任何.knxproj都无法编码的)。额外功能:用于日期/时间广播(DPT 19.001)的
expose块、Matter就绪性检查、KNX IoT(Turtle/RDF)语义导出。对房屋的实时控制保留在官方的Home Assistant集成(第1层)中——此服务器仅准备其配置。
运维伴侣:
skills/ha-git-backup——部署之后配置的生命周期:/config的真实git历史(部署密钥 + 预提交秘密扫描器)加上GitHub Releases中的加密异地备份,每月进行一次恢复演练。
🧱 场景4——从房间模板组合新项目
从房间开始,而非空白页:从六个内置的参数化房间模板(卧室、儿童房、客厅、厨房、浴室、走廊)中选择,为每个槽位选择
basic/comfort预设(一个房子可以混合舒适气候与基础照明),然后compose_rooms组装一个新项目。输出:一个分配
manifest(主=域,中=角色,子=顺序),通过现有生成器生成可导入ETS的GA XML/CSV,以及来自设备库的设备BOM建议。通过真实读取器验证:生成的
.knxproj通过标准的load_project重新读取——与用于第三方项目的相同路径——并通过所有四个检查器(命名/缺失状态/DPT/策略),0错误/0警告。默认试运行,仅限新项目。 模板格式是一个公共契约(
room_templates/SCHEMA.md):标识是区域中立的slot_id,绝不是人类名称。R2:接入现有项目 + 精确设备选择——计划中。
🧩 基础——不断增长的设备库
parse_devices_from_project从任何.knxproj/.knxprod内的制造商应用程序程序中提取精确的供应商对象模型——包括引用级(ComObjectRef)发布者(如HDL/Ekinex):对象编号、名称、大小、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个)
读取
工具 | 用途 |
| 解析 |
| 列出GA并附带分类和过滤器 |
| 设备及其通信对象 |
| 拓扑结构(区域/线路/设备) |
| 一个GA的溯源:为何如此分类——每个决策的证据及置信等级(权威性 ETS Function > 结构性 DPT > 启发式名称),其状态如何配对,以及冲突(名称说"AC",DPT说照明→ |
验证
Tool | 用途 |
| 验证命名 / 三层结构 |
| 检测缺少状态对象的执行器 |
| 检测缺失/不一致的DPT + 子DPT合理性检查(温度→9.001,电源→14.056……) |
| 拓扑容量 + 个体地址有效性检查(TP1 64/段,256/线,有效的唯一 |
| KNX数据安全配置 + 密钥交接清单检查 |
| Matter就绪度检查(哪些功能可映射至Matter集群) |
| 计量/能源DPT检查 + 光伏/电池/充电桩骨架验证 |
| 一次性运行所有检查 |
| 依据项目策略配置文件进行验证(主群组分类、命名规则、配对规则)——若无配置文件,则依据项目自身推断的分类体系;标记偏离你的约定的组地址,而非通用标准 |
修复与设计
Tool | 用途 |
| 提出修复建议,而非仅标记问题 —— 推断DPT,合成状态/亮度组地址 |
| 命名规范建议 |
| 设备→组地址分解:从本地目录( |
| 内置设备库(Zennio + ABB系列) |
| 从 |
| 跨设备参数质量检查:找出ETS参数与其N个同型号设备不同的设备(异常的恒温器/传感器)—— |
| 项目完整度评分:从粗略骨架到竣工状态 |
| 两个 |
生成
Tool | 用途 |
| Home Assistant KNX YAML(色彩+气候+暴露)+ 检查清单 |
| ETS可导入的组地址 |
| 竣工交接包:清单、组地址映射、覆盖范围、安全、质量检查、topology.svg |
| 功能验收协议(命令→预期状态) |
| KNX IoT语义导出(Turtle/RDF格式) |
| Markdown报告 |
| 工作区路径 + 安全保障说明 |
房间库 (R1 — 从房间模板构建新项目)
Tool | 用途 |
| 根据R1架构验证房间模板(内置 |
| 从房间列表构建新项目 → 分配 |
典型工作流程
load_project→ 指向你的.knxproj文件(如受保护需提供密码)。analyze_all或project_report→ 查看检查结果;首选人工审核。在ETS中修复命名/DPT/状态(通过导入生成的GA或手动操作)。
generate_ets_group_addresses(fmt="xml")→ 将缺失的GA导入ETS。generate_ha_package→ 将YAML文件放入Home Assistant;手动处理review项。将所有内容(
.knxproj导出、HA配置、地址架构)纳入Git管理。仅通过Home Assistant MCP(第1层)接触实际运行的设备。
局限性(坦诚说明)
命令/状态及类别分类基于启发式方法(DPT + 名称 + ETS功能)。对于无功能定义且命名不规范的项目,可能出现误报/漏报——因此报告始终需要人工审核,且不确定项会归入
review而非配置。DPT 5.001在结构上具有歧义性(亮度 vs 位置);通过关键词进行消歧——对于非标准命名请仔细核对。
HA生成器采用保守策略:宁愿将项目推迟至
review,也不生成错误的实体。服务器绝不向总线写入数据,也不直接与ETS通信——ETS交互仅限于GA文件的导入/导出。
已在合成演示项目和实际数千GA的ETS5/ETS6项目(已匿名处理)上验证——但真实的
.knxproj文件差异极大,仍处于测试阶段。因此诚邀测试者。
🔒 安全模型
结构上无总线访问。 依赖树中不包含任何网络或总线库。
workspace_info()报告bus_access: false。项目文件只读。
project.py是唯一处理.knxproj的模块,且仅执行读取操作。受限写入。 所有输出限制在
NICKOL_KNX_WORKSPACE内;拒绝该路径之外的写入请求。抵御恶意项目文件。
.knxproj是不可信的ZIP-XML格式,因此解析通过safexml.py进行:拒绝DTD/实体XML(防止十亿笑/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和问题模板。
许可证
MIT © 2026 尼古拉·米罗什尼琴科
与KNX协会无关联且未经其认可。"KNX"和"ETS"是KNX协会的商标。这是一个独立的社区工具。
Available Tools
32 toolsanalyze_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
Scored across 32 tools
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.
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.
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.
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
Related MCP Connectors
Manage SysML2 projects; check, evaluate, verify, query, document and diagram models.
Read, analyze, and safely edit Microsoft Project MPP files.
Independent static checks for supported tag and alarm CSV import formats; no HMI or PLC access.
Read, filter, group and write XLSX, CSV, TSV and JSON data, and convert between the formats.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables automated project analysis and structured development specification generation. Supports multiple export formats and integrates with AI models for comprehensive project documentation and validation.-
- FlicenseCqualityDmaintenanceCreates, inspects, validates, and modifies Power BI Project (.pbip) folders, generating PBIR-style reports and TMDL semantic models from structured inputs.52-
- AlicenseAqualityCmaintenanceLocal 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.2295 npm1Apache 2.0
- FlicenseAqualityBmaintenanceProvides 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.1574 PyPI10-