feat: 新增车辆心跳数据查询接口

- list_vehicle_heartbeat: 查询车辆心跳数据列表 (/api/vehicle/heartbeat/list)
- 支持分页、城市筛选、操作员筛选

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 10:41:58 +08:00
co-authored by Claude Opus 4.8
parent 000a899561
commit 8d15eab348
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -94,6 +94,7 @@ mcp_servers:
| `mcp_tlbm_list_vehicle_unavailability` | 所有车辆不可用统计 |
| `mcp_tlbm_get_vehicle_drive_mile` | 统计行驶距离 |
| `mcp_tlbm_get_vehicle_path_playback` | 轨迹回放 |
| `mcp_tlbm_list_vehicle_heartbeat` | 查询车辆心跳数据 |
| `mcp_tlbm_get_overdue_shipping` | 查询超时未确认装卸货 |
| `mcp_tlbm_get_order_summary` | 查询运单汇总 |
| `mcp_tlbm_get_today_orders` | 当日运单列表 |
+14
View File
@@ -151,6 +151,20 @@ const TOOLS = [
},
endpoint: { method: "GET", path: "/api/vehicle/path/playback" },
},
{
name: "list_vehicle_heartbeat",
description: "查询车辆心跳数据列表,支持分页",
inputSchema: {
type: "object",
properties: {
cityId: { type: "integer", description: "城市ID" },
operator: { type: "string", description: "操作员" },
page: { type: "integer", default: 1, description: "页码" },
pageSize: { type: "integer", default: 20, description: "每页数量" },
},
},
endpoint: { method: "GET", path: "/api/vehicle/heartbeat/list" },
},
// === 运单监控 ===
{