Skip to content

Show what an agent sent in History, as it happens - #99

Merged
MathiasWP merged 1 commit into
mainfrom
log-mcp-requests-in-history
Sep 17, 2026
Merged

MathiasWP merged 1 commit into
mainfrom
log-mcp-requests-in-history

Conversation

@MathiasWP

Copy link
Copy Markdown
Owner

Requests an agent sends through the MCP server now appear in the History tab as they happen, with an MCP badge, instead of only after a relaunch. The server always recorded them to the shared database, but the window only read it at startup; History now refreshes on focus, when the tab is opened, and every few seconds while it stays open, merging new rows so loaded bodies and in-flight sends are untouched. Every entry also gets a name: the request it came from, else the endpoint its URL hits in that collection's loader manifest or saved requests, else its path, which fixes the untitled rows for MCP, scratch and deleted-request sends. Typing mcp in the history search filters to agent sends. Includes a changeset.

The MCP server has always recorded its sends — it writes to the same
database as the window, so `query_response` can read a body back — but
the window only read that database at launch. A request an agent made
appeared in History after the next relaunch, and then as a bare URL:
the server files its sends under one synthetic request per collection
rather than an endpoint's id, so the name lookup came up empty.

History now catches up on focus, when the tab is opened, and every few
seconds while it stays open. The list is merged rather than replaced, so
a loaded body or a send still streaming is untouched. Entries from the
server wear an `MCP` badge, and `mcp` matches in the search box.

Every entry now has a name. One with no request to be named after — sent
by an agent, from scratch, or by a request since deleted — takes the name
of the endpoint its URL hits in that collection, the loader's or a saved
request's, and failing that its path, the way endpoint rows read in
Collections. A row without a name looked like a rendering fault.
@MathiasWP
MathiasWP merged commit c9e7159 into main Sep 17, 2026
2 of 4 checks passed
@MathiasWP
MathiasWP deleted the log-mcp-requests-in-history branch September 17, 2026 12:38
@github-actions github-actions Bot mentioned this pull request Sep 17, 2026
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.

1 participant