Skip to content

Add nextSeenAt to list_hosts MCP tool response#2339

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/update-list-hosts-nextseen
Draft

Add nextSeenAt to list_hosts MCP tool response#2339
Copilot wants to merge 1 commit into
mainfrom
copilot/update-list-hosts-nextseen

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

The list_hosts MCP tool was omitting the nextSeenAt field from its JSON output despite the Host entity already tracking it.

Changes

  • Added nextSeenAt (RFC3339) to the hostResult struct in tool_list_hosts.go
  • Populated from h.NextSeenAt alongside the existing lastSeenAt field

Example output

{
  "id": 1,
  "identifier": "abc-123",
  "name": "web-server-01",
  "lastSeenAt": "2024-01-15T10:30:00Z",
  "nextSeenAt": "2024-01-15T10:35:00Z",
  ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants