{"at":"2026-11-23T01:29:07.616Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:29:08.607Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:29:08.758Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:29:09.758Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"nickol-knx","version":"1.30.0"}}}}
{"at":"2026-11-23T01:29:09.758Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:29:09.758Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:29:09.760Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Parse a .knxproj file (read-only) and cache it for the session.\n\nArgs:\n    path: Path to the .knxproj file.\n    password: Project password, if the .knxproj is protected.\n    language: Optional language code (e.g. 'de-DE', 'ru-RU').\n","inputSchema":{"properties":{"language":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Language"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Password"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"load_projectArguments","type":"object"},"name":"load_project","outputSchema":{"additionalProperties":true,"title":"load_projectDictOutput","type":"object"}},{"description":"Load an ETS group-address export (ga-export/01 XML) instead of a full .knxproj.\n\nFor when you only have the GA list: an ETS \"Export Group Addresses\" file, or the\nETS import file a planning tool produces (TapPlan and similar). Names, addresses,\nDPTs, descriptions, the security flag and the range tree are read; the result\nreplaces the loaded project for every other tool.\n\nWorks: check_naming, check_missing_status, check_dpt, check_policy, check_secure,\nanalyze_all, suggest_repairs, project_report, generate_ha_package,\ngenerate_ets_group_addresses. Nothing to read (the export has no devices, ETS\nFunctions or topology): get_devices, get_topology, check_topology,\ndecompose_device, check_device_parameters, parse_devices_from_project. Pairing\nrelies on names only, since there are no ETS Function roles.\n\nArgs:\n    path: Path to the exported .xml file.\n","inputSchema":{"properties":{"path":{"title":"Path","type":"string"}},"required":["path"],"title":"load_ga_exportArguments","type":"object"},"name":"load_ga_export","outputSchema":{"additionalProperties":true,"title":"load_ga_exportDictOutput","type":"object"}},{"description":"List parsed group addresses with classification, in a **stable order**.\n\nFilters: category (lighting/shutter/hvac/sensor/scene/energy/diagnostics),\nkind (command/status/sensor), missing_dpt_only.\n\nPaging: results are always sorted by the group address itself (main/middle/sub\nnumerically, free-style addresses numerically, anything else lexically), so the\norder does not depend on how the project happened to parse and a retry returns\nthe same page. Pass the returned `next_cursor` back as `cursor` for the next\npage; `next_cursor` is null on the last page. `total_matched` reports how many\naddresses match the filters, so a truncated answer is never silent.\n","inputSchema":{"properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Category"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Kind"},"limit":{"default":500,"title":"Limit","type":"integer"},"missing_dpt_only":{"default":false,"title":"Missing Dpt Only","type":"boolean"}},"title":"list_group_addressesArguments","type":"object"},"name":"list_group_addresses","outputSchema":{"additionalProperties":true,"title":"list_group_addressesDictOutput","type":"object"}},{"description":"List devices (individual address, name, order number, manufacturer), sorted by\nindividual address (area/line/device numerically). Same paging contract as\n`list_group_addresses`: `next_cursor` / `total_matched` / `returned`.","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":500,"title":"Limit","type":"integer"}},"title":"get_devicesArguments","type":"object"},"name":"get_devices","outputSchema":{"additionalProperties":true,"title":"get_devicesDictOutput","type":"object"}},{"description":"Return the area/line/device topology tree.","inputSchema":{"properties":{},"title":"get_topologyArguments","type":"object"},"name":"get_topology","outputSchema":{"additionalProperties":true,"title":"get_topologyDictOutput","type":"object"}},{"description":"Validate naming conventions and 3-level structure.","inputSchema":{"properties":{"name_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name Regex"}},"title":"check_namingArguments","type":"object"},"name":"check_naming","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"check_namingOutput","type":"object"}},{"description":"Detect controllable GAs lacking a status/feedback counterpart.","inputSchema":{"properties":{},"title":"check_missing_statusArguments","type":"object"},"name":"check_missing_status","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"check_missing_statusOutput","type":"object"}},{"description":"Detect missing, inconsistent or mismatched DPTs.","inputSchema":{"properties":{},"title":"check_dptArguments","type":"object"},"name":"check_dpt","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"check_dptOutput","type":"object"}},{"description":"Check topology capacity and individual-address validity (KNX Handbook).\n\nFlags lines over the TP1 segment (64) / line (256) limits, invalid or\nduplicate individual addresses, and multi-line projects missing a coupler.\n","inputSchema":{"properties":{},"title":"check_topologyArguments","type":"object"},"name":"check_topology","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"check_topologyOutput","type":"object"}},{"description":"Propose concrete fixes for the project's findings — repair, don't just flag.\n\nFor each issue it suggests a reviewable fix: infer a DPT for a GA that has none,\ncorrect a suspect sub-DPT, synthesise a status/feedback GA in a free address slot,\nor add an absolute-brightness GA for a relative-only dimmer. Suggestions only —\na human reviews them; accepted new GAs feed generate_ets_group_addresses. The\nserver never writes to ETS or the bus.\n","inputSchema":{"properties":{},"title":"suggest_repairsArguments","type":"object"},"name":"suggest_repairs","outputSchema":{"additionalProperties":true,"title":"suggest_repairsDictOutput","type":"object"}},{"description":"Summarise KNX Data Secure posture + the keyring handover checklist.\n\nReports how many group addresses are secured vs plaintext, flags middle\ngroups that mix secure and plaintext addresses (a function is only as secure\nas its weakest GA), and emits the ETS/HA keyring workflow as a checklist.\nReport-only — this server never touches key material.\n","inputSchema":{"properties":{},"title":"check_secureArguments","type":"object"},"name":"check_secure","outputSchema":{"additionalProperties":true,"title":"check_secureDictOutput","type":"object"}},{"description":"Run every check and return the report summary plus all findings.","inputSchema":{"properties":{"name_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name Regex"}},"title":"analyze_allArguments","type":"object"},"name":"analyze_all","outputSchema":{"additionalProperties":true,"title":"analyze_allDictOutput","type":"object"}},{"description":"Generate a Home Assistant KNX package YAML.\n\nIf output_path is given, the YAML is written into the workspace and the path\nreturned; otherwise the YAML text is returned inline.\n","inputSchema":{"properties":{"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Path"}},"title":"generate_ha_packageArguments","type":"object"},"name":"generate_ha_package","outputSchema":{"additionalProperties":true,"title":"generate_ha_packageDictOutput","type":"object"}},{"description":"Generate an ETS-importable Group Address export.\n\nArgs:\n    fmt: 'xml' (ga-export/01, recommended) or 'csv' (native ETS layout).\n    output_path: optional file inside the workspace.\n","inputSchema":{"properties":{"fmt":{"default":"xml","title":"Fmt","type":"string"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Path"}},"title":"generate_ets_group_addressesArguments","type":"object"},"name":"generate_ets_group_addresses","outputSchema":{"additionalProperties":true,"title":"generate_ets_group_addressesDictOutput","type":"object"}},{"description":"Produce the human-readable Markdown report (review before any import).","inputSchema":{"properties":{"name_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name Regex"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Path"}},"title":"project_reportArguments","type":"object"},"name":"project_report","outputSchema":{"additionalProperties":true,"title":"project_reportDictOutput","type":"object"}},{"description":"Generate a project handover pack (as-built deliverable for commissioning).\n\nAssembles an equipment inventory, group-address map by domain, command/status\ncoverage, KNX Secure scope and QA state into ``handover.md``, plus a\n``topology.svg`` diagram, the full ``group-addresses.csv`` and the\n``ha-package.yaml``. When ``output_dir`` is given (a folder inside the\nworkspace) all files are written there and the paths returned; otherwise the\nhandover markdown + SVG are returned inline.\n","inputSchema":{"properties":{"output_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Dir"}},"title":"generate_handover_packArguments","type":"object"},"name":"generate_handover_pack","outputSchema":{"additionalProperties":true,"title":"generate_handover_packDictOutput","type":"object"}},{"description":"Expand a device into its group-address decomposition recipe.\n\nA KNX actuator channel is not one GA — it expands into command/status/dimming/\nposition/mode objects, each with its DPT. Given a device order number, type or\nalias (e.g. 'ZIO-MB24', 'dimmer', 'JRA/S', 'presence detector') and a channel\ncount, returns the objects a professional wires per channel and the total GA\ncount. Use when turning a spec/ТЗ device list into a group-address structure.\n","inputSchema":{"properties":{"channels":{"default":1,"title":"Channels","type":"integer"},"order_number":{"title":"Order Number","type":"string"}},"required":["order_number"],"title":"decompose_deviceArguments","type":"object"},"name":"decompose_device","outputSchema":{"additionalProperties":true,"title":"decompose_deviceDictOutput","type":"object"}},{"description":"List the device decomposition recipes in the built-in device library.","inputSchema":{"properties":{},"title":"list_device_recipesArguments","type":"object"},"name":"list_device_recipes","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_device_recipesOutput","type":"object"}},{"description":"Extract exact device object models from a .knxproj / .knxprod application programs.\n\nReads the manufacturer application programs (M-*) embedded in an ETS `.knxproj`\n(devices actually used) or a `.knxprod` product database, and returns each device's\norder number, app-program version, object counts and detected per-channel blocks —\nthe EXACT vendor comm-object model, not a generic recipe. Read-only and PII-safe: it\nreads only vendor catalog data, never the client project (P-*/0.xml).\n\nUse this to build/grow the local device catalog that `decompose_device` consumes\n(set NICKOL_KNX_CATALOG to the catalog dir). If `output_path` is given, the full\ncatalog is written into the workspace as device-library YAML; the return value is\nalways a compact per-device summary + coverage manifest (the full object lists are\nnot inlined). DPT `unverified` = the vendor app-program declares none (never guessed).\n","inputSchema":{"properties":{"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Path"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Password"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"parse_devices_from_projectArguments","type":"object"},"name":"parse_devices_from_project","outputSchema":{"additionalProperties":true,"title":"parse_devices_from_projectDictOutput","type":"object"}},{"description":"Find the device whose ETS **parameter** settings differ from its N identical\nsiblings — the odd thermostat/sensor out (e.g. one thermostat with a different\nsetpoint/hysteresis, one presence detector with a different detection time).\n\nReads per-device parameter values straight from the `.knxproj` project part\n(data xknxproject does not expose), groups identical devices by application\nprogram, and returns `clear_outliers` (a strong majority with a small minority —\nlikely a mistake) and `split_configs` (balanced 2+ variants — review, often two\nzones). Numeric config parameters are listed first; names are resolved from the\ndevice application program. Read-only, no ETS/bus. Give a real `.knxproj` `path`\n(a password-protected/encrypted project cannot be read).","inputSchema":{"properties":{"min_group":{"default":3,"title":"Min Group","type":"integer"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Password"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"check_device_parametersArguments","type":"object"},"name":"check_device_parameters","outputSchema":{"additionalProperties":true,"title":"check_device_parametersDictOutput","type":"object"}},{"description":"Validate the loaded project against a **Project Policy Profile** — *your*\nagreed rules (main-group taxonomy, naming regex, command/status exemptions),\nnot one universal \"standard\". Flags GAs whose domain doesn't match the main\ngroup your policy assigns, and names that don't match your pattern. Pass\n`profile_path` to a YAML profile (omit to validate against the taxonomy inferred\nfrom the project itself). Set `write_example_to` to drop a commented example\nprofile into the workspace — **seeded from the loaded project's own main groups**\n(mains that do not exist in the project are not written). Report-only.","inputSchema":{"properties":{"profile_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Profile Path"},"write_example_to":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Write Example To"}},"title":"check_policyArguments","type":"object"},"name":"check_policy","outputSchema":{"additionalProperties":true,"title":"check_policyDictOutput","type":"object"}},{"description":"**Provenance** for one group address — why the tool classified it the way it did.\nReplays the classification and shows, per decision (category / kind / status pairing),\nthe signals that fired with a **confidence tier**: authoritative (an ETS Function role) >\nstructural (the KNX DPT) > heuristic (a name keyword). Flags **conflicts** (e.g. a GA\nthe DPT calls `lighting` while its name says \"AC\") — the hotspot for silent\nmisclassification. Read-only; use before trusting a category or generating an entity.","inputSchema":{"properties":{"address":{"title":"Address","type":"string"}},"required":["address"],"title":"explain_gaArguments","type":"object"},"name":"explain_ga","outputSchema":{"additionalProperties":true,"title":"explain_gaDictOutput","type":"object"}},{"description":"Matter-readiness lint: which controllable functions round-trip to a Matter\ncluster (have command + status + a decodable DPT) and which won't.","inputSchema":{"properties":{},"title":"check_matterArguments","type":"object"},"name":"check_matter","outputSchema":{"additionalProperties":true,"title":"check_matterDictOutput","type":"object"}},{"description":"Grade the project: bare functional skeleton vs as-built grade — by the presence\nof the professional patterns (central macros, device tuning, astro/meteo, monitoring,\ndeep metering, scenes, reserves, a debug main).","inputSchema":{"properties":{},"title":"grade_completenessArguments","type":"object"},"name":"grade_completeness","outputSchema":{"additionalProperties":true,"title":"grade_completenessDictOutput","type":"object"}},{"description":"Check the metering/energy domain (energy DPTs 13.x / 14.056) and suggest a\nper-circuit / PV / battery / EVSE structure for the HA energy dashboard.","inputSchema":{"properties":{},"title":"check_energyArguments","type":"object"},"name":"check_energy","outputSchema":{"additionalProperties":true,"title":"check_energyDictOutput","type":"object"}},{"description":"Naming hygiene suggestions (empty names, status GAs missing a status keyword).","inputSchema":{"properties":{},"title":"suggest_namesArguments","type":"object"},"name":"suggest_names","outputSchema":{"additionalProperties":true,"title":"suggest_namesDictOutput","type":"object"}},{"description":"Draft a functional acceptance protocol (per function: command → expected status,\npass/fail/sign-off) as Markdown. Execution is manual/on-site; this only drafts it.","inputSchema":{"properties":{"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Path"}},"title":"generate_test_protocolArguments","type":"object"},"name":"generate_test_protocol","outputSchema":{"additionalProperties":true,"title":"generate_test_protocolDictOutput","type":"object"}},{"description":"Semantic diff between two .knxproj files (path_a = base/old, path_b = new):\nadded / removed GAs, DPT changes, renames, security-flag changes. Read-only.","inputSchema":{"properties":{"password_a":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Password A"},"password_b":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Password B"},"path_a":{"title":"Path A","type":"string"},"path_b":{"title":"Path B","type":"string"}},"required":["path_a","path_b"],"title":"diff_projectsArguments","type":"object"},"name":"diff_projects","outputSchema":{"additionalProperties":true,"title":"diff_projectsDictOutput","type":"object"}},{"description":"Export a KNX IoT semantic view (Turtle/RDF) of the project's functional\ndatapoints — a pragmatic skeleton for the IP-native model, for review.","inputSchema":{"properties":{"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Path"}},"title":"generate_knx_iotArguments","type":"object"},"name":"generate_knx_iot","outputSchema":{"additionalProperties":true,"title":"generate_knx_iotDictOutput","type":"object"}},{"description":"Validate a Room Library template against the R1 schema (report-only).\n\nPass ``template`` (a built-in template's semantic slot_id, e.g. 'bedroom',\n'kitchen') or ``path`` to a custom template YAML. Checks the public contract:\na locale-neutral slot_id, ru/en labels, per-slot basic/comfort presets, known\nfunction types, valid multiplicities, and that ``area_m2`` is a hint with\nprovenance (never a normative fact). Returns ok + findings; nothing is written.\n","inputSchema":{"properties":{"path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Path"},"template":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Template"}},"title":"validate_room_templateArguments","type":"object"},"name":"validate_room_template","outputSchema":{"additionalProperties":true,"title":"validate_room_templateDictOutput","type":"object"}},{"description":"Compose a **new** KNX project from a list of room templates (constructor).\n\n``rooms`` is a list of specs, each: ``{template, preset?, slot_presets?,\nparams?, label?}`` — e.g. ``{\"template\": \"bedroom\", \"preset\": \"comfort\"}``.\n``preset`` is basic|comfort (per-room); ``slot_presets`` overrides individual\nslots (mix comfort climate with basic lighting); ``params`` overrides template\ndefaults (window/circuit counts); ``label`` sets a custom zone name.\n\nPipeline: resolve templates+params to a functional model, allocate group\naddresses (main = domain, middle = role, sub sequential), write a real\n``.knxproj`` and **re-read it with the standard loader**, then run our linters\non the re-read project. Output: a ``manifest`` (allocation), ETS GA XML/CSV,\nand a device ``bom`` proposal from the device library.\n\nR1 builds NEW projects only and is dry-run by default (nothing written). Set\n``dry_run=false`` with ``output_dir`` (a folder inside the workspace) to write\nthe .knxproj, ETS exports, manifest.yaml and bom.yaml. Docking into an\nexisting project and exact device selection are R2. Never touches a bus.\n","inputSchema":{"properties":{"dry_run":{"default":true,"title":"Dry Run","type":"boolean"},"language":{"default":"ru","title":"Language","type":"string"},"output_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Output Dir"},"project_name":{"default":"Room Library house","title":"Project Name","type":"string"},"rooms":{"items":{"additionalProperties":true,"type":"object"},"title":"Rooms","type":"array"}},"required":["rooms"],"title":"compose_roomsArguments","type":"object"},"name":"compose_rooms","outputSchema":{"additionalProperties":true,"title":"compose_roomsDictOutput","type":"object"}},{"description":"Show the confined output workspace and the safety guarantees.","inputSchema":{"properties":{},"title":"workspace_infoArguments","type":"object"},"name":"workspace_info","outputSchema":{"additionalProperties":true,"title":"workspace_infoDictOutput","type":"object"}}]}}}
