.ha_mcp/logs/mcp_usage.jsonl

This commit is contained in:
Home Assistant Version Control
2026-08-26 03:54:50 +00:00
parent 631d0c5606
commit ac401c071a
+1
View File
@@ -2034,3 +2034,4 @@
{"timestamp": "2026-08-26T03:54:19.141968+00:00", "tool_name": "ha_manage_app", "parameters": {"slug": "45df7312_zigbee2mqtt", "path": "/api", "method": "GET", "body": "{\"command\": \"bridge/devices/get\", \"transaction\": \"4\"}", "debug": false, "port": null, "offset": 0, "limit": null, "websocket": true, "wait_for_close": false, "message_limit": 5, "message_offset": 0, "summarize": true, "python_transform": "response = [m for m in response if isinstance(m, dict) and m.get('type') == 'result']", "options": null, "network": null, "boot": null, "auto_update": null, "watchdog": null, "array_patch": null, "request_headers": null, "action": null, "repository": null}, "execution_time_ms": 68.18294525146484, "success": true, "error_message": null, "response_size_bytes": 397, "user_context": null}
{"timestamp": "2026-08-26T03:54:27.867310+00:00", "tool_name": "ha_manage_app", "parameters": {"slug": "45df7312_zigbee2mqtt", "path": "/api", "method": "GET", "body": "{\"command\": \"bridge/devices/get\", \"transaction\": \"5\"}", "debug": false, "port": null, "offset": 0, "limit": null, "websocket": true, "wait_for_close": false, "message_limit": 50, "message_offset": 0, "summarize": true, "python_transform": "response = [m for m in response if isinstance(m, dict) and m.get('type') == 'result' and isinstance(m.get('data'), list)][0]['data'] if any(isinstance(m, dict) and m.get('type') == 'result' and isinstance(m.get('data'), list) for m in response) else response", "options": null, "network": null, "boot": null, "auto_update": null, "watchdog": null, "array_patch": null, "request_headers": null, "action": null, "repository": null}, "execution_time_ms": 102.29110717773438, "success": true, "error_message": null, "response_size_bytes": 401, "user_context": null}
{"timestamp": "2026-08-26T03:54:36.605601+00:00", "tool_name": "ha_manage_app", "parameters": {"slug": "45df7312_zigbee2mqtt", "path": "/api", "method": "GET", "body": "{\"command\": \"bridge/devices/get\", \"transaction\": \"6\"}", "debug": false, "port": null, "offset": 0, "limit": null, "websocket": true, "wait_for_close": false, "message_limit": 50, "message_offset": 0, "summarize": true, "python_transform": "\nimport json\ndevices = []\nfor m in response:\n if isinstance(m, dict) and m.get('type') == 'result' and isinstance(m.get('data'), list):\n for d in m['data']:\n name = d.get('friendly_name', d.get('ieee_address', 'unknown'))\n ieee = d.get('ieee_address', '')\n dev_type = d.get('type', '')\n online = d.get('availability', [{}])\n devices.append({'name': name, 'ieee': ieee, 'type': dev_type, 'endpoints': len(d.get('endpoints', {}))})\nresponse = devices\n", "options": null, "network": null, "boot": null, "auto_update": null, "watchdog": null, "array_patch": null, "request_headers": null, "action": null, "repository": null}, "execution_time_ms": 61.22946739196777, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Expression validation failed: Forbidden node type: Import \\u2014 imports aren't available; built-ins like isinstance/len/range are exposed\",\n \"suggestion\": \"Operate on the `response` variable (in-place or reassign)\",\n \"suggestions\": [\n \"Operate on the `response` variable (in-place or reassign)\",\n \"Check expression syntax\",\n \"Ensure only allowed operations are used\",\n \"See tool description for allowed operations\",\n \"Expression: \\nimport json\\ndevices = []\\nfor m in response:\\n if isinstance(m, dict) and m.get('type') == 'result...\"\n ]\n },\n \"expression_preview\": \"\\nimport json\\ndevices = []\\nfor m in response:\\n if isinstance(m, dict) and m.get('type') == 'result' and isinstance(m.get('data'), list):\\n for d in m['data']:\\n name = d.get('friendl\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-26T03:54:44.852401+00:00", "tool_name": "ha_manage_app", "parameters": {"slug": "45df7312_zigbee2mqtt", "path": "/api", "method": "GET", "body": "{\"command\": \"bridge/devices/get\", \"transaction\": \"7\"}", "debug": false, "port": null, "offset": 0, "limit": null, "websocket": true, "wait_for_close": false, "message_limit": 50, "message_offset": 0, "summarize": true, "python_transform": "devices = []; [devices.extend(m['data']) for m in response if isinstance(m, dict) and m.get('type') == 'result' and isinstance(m.get('data'), list)]; response = [{'name': d.get('friendly_name','?'), 'ieee': d.get('ieee_address','?'), 'type': d.get('type','?'), 'nwk': d.get('network_address','?')} for d in devices]", "options": null, "network": null, "boot": null, "auto_update": null, "watchdog": null, "array_patch": null, "request_headers": null, "action": null, "repository": null}, "execution_time_ms": 88.03319931030273, "success": true, "error_message": null, "response_size_bytes": 398, "user_context": null}