Telemetry stream: GET /api/telemetry + MCP get_telemetry (#16)
CI / build + unit (push) Successful in 21s
CI / build + unit (push) Successful in 21s
This commit was merged in pull request #16.
This commit is contained in:
@@ -77,6 +77,14 @@ export function createMeshMcpServer(mesh: MeshService): McpServer {
|
||||
async () => jsonResult(mesh.messages()),
|
||||
);
|
||||
|
||||
server.registerTool(
|
||||
'get_telemetry',
|
||||
{
|
||||
description: `Telemetry history, newest first (bounded recent window, last 100): TELEMETRY_APP packets from any node — device metrics (uptime/battery/voltage/channel+air utilization) and environment sensor readings where nodes have them. kind is the meshtastic.Telemetry oneof case name; data carries that variant's payload (proto uint64 fields as decimal strings). In-memory only, reset on every bridge reconnect.${CHANNEL_NOTE}`,
|
||||
},
|
||||
async () => jsonResult(mesh.telemetry()),
|
||||
);
|
||||
|
||||
server.registerTool(
|
||||
'device_info',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user