MCP call logs: clickable rows with full request dump + fix pagination#116
Merged
MCP call logs: clickable rows with full request dump + fix pagination#116
Conversation
…ation Co-authored-by: tayyebi <14053493+tayyebi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Make row items clickable in MCP calls logs and add pagination
MCP call logs: clickable rows with full request dump + fix pagination
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MCP call log rows were not clickable and didn't store request payloads. Pagination UI existed but the handler always served page 1.
Changes
DB / Migration
014_mcp_log_request_body.sql: addsrequest_body TEXTtomcp_logsMcpLogstruct gainsrequest_body: Option<String>;list_mcp_logsSELECTs it;log_mcp_callaccepts and INSERTs itBackend (
mcp.rs)McpRequestderivesSerializeso the incoming request can be round-tripped to JSON at handler entryhandle: capturesserde_json::to_string(&req)before dispatch and passes it to all threelog_mcp_callcall sites (ok, error, unknown-method)McpPageQuery { page: i64 }extractor added;pagehandler now reads?page=N, computes offset, and clamps to valid rangeTemplate (
mcp/page.html)<tr>getsdata-body="..."(Askama HTML-escapes),cursor:pointer, andonclick="showMcpLog(this)"<dialog>modal displays the full request body as pretty-printed JSON viaJSON.parse/JSON.stringify(no request body recorded)✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.