Commit 347271d
committed
feat: add device CRUD tools and fix uuid identification
BREAKING CHANGE: Devices now correctly use uuid field as identifier (not mac)
Critical fixes:
- Fix search tool to use device.uuid (was incorrectly using mac)
- Fix list_devices to expose uuid field as primary identifier
- API uses uuid as device identifier, mac is just a property
New tools added:
- get_device: Get detailed device information by UUID
- update_device: Update device properties (label, desc, groupId, fav)
- delete_device: Delete device permanently by UUID
Changes:
- Updated ApiClientService.delete() to support request body
- All device operations now use uuid consistently
- Improved device list response with both uuid and mac fields
- Added comprehensive logging for all CRUD operations
Tool usage:
- get_device(uuid) - Get full device details
- update_device(uuid, label?, desc?, groupId?, fav?) - Update properties
- delete_device(uuid) - Permanently delete device1 parent dd196e5 commit 347271d
File tree
3 files changed
+3589
-7
lines changed- docs
- src
- mcp/services
- services
3 files changed
+3589
-7
lines changed
0 commit comments