From da8e2c0d122fedf4e2e2e0837907a41122cd7f21 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Apr 2026 00:29:55 +0000 Subject: [PATCH] feat: add nextSeenAt to list_hosts MCP tool response Agent-Logs-Url: https://github.com/spellshift/realm/sessions/d1b7d319-238a-4f05-9554-76a561070214 Co-authored-by: hulto <7121375+hulto@users.noreply.github.com> --- tavern/internal/mcp/tool_list_hosts.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tavern/internal/mcp/tool_list_hosts.go b/tavern/internal/mcp/tool_list_hosts.go index d2d231598..4b5d83904 100644 --- a/tavern/internal/mcp/tool_list_hosts.go +++ b/tavern/internal/mcp/tool_list_hosts.go @@ -51,15 +51,16 @@ func handleListHosts(ctx context.Context, request mcp.CallToolRequest) (*mcp.Cal Principal string `json:"principal"` } type hostResult struct { - ID int `json:"id"` - Identifier string `json:"identifier"` - Name string `json:"name"` - Platform string `json:"platform"` - PrimaryIP string `json:"primaryIP"` - ExternalIP string `json:"externalIP"` - LastSeenAt string `json:"lastSeenAt"` - Tags []tagInfo `json:"tags"` - Beacons []beaconInfo `json:"beacons"` + ID int `json:"id"` + Identifier string `json:"identifier"` + Name string `json:"name"` + Platform string `json:"platform"` + PrimaryIP string `json:"primaryIP"` + ExternalIP string `json:"externalIP"` + LastSeenAt string `json:"lastSeenAt"` + NextSeenAt string `json:"nextSeenAt"` + Tags []tagInfo `json:"tags"` + Beacons []beaconInfo `json:"beacons"` } results := make([]hostResult, 0, len(hosts)) @@ -72,6 +73,7 @@ func handleListHosts(ctx context.Context, request mcp.CallToolRequest) (*mcp.Cal PrimaryIP: h.PrimaryIP, ExternalIP: h.ExternalIP, LastSeenAt: h.LastSeenAt.Format(time.RFC3339), + NextSeenAt: h.NextSeenAt.Format(time.RFC3339), } for _, t := range h.Edges.Tags { hr.Tags = append(hr.Tags, tagInfo{