Activity Log Web UI
The Activity Log page provides real-time monitoring and analysis of all activity across your MCP servers through a web-based interface.
Overviewโ
Access the Activity Log by navigating to /ui/activity in the MCPProxy web interface or by clicking "Activity Log" in the sidebar navigation.
Featuresโ
Activity Tableโ
The main view displays activities in a sortable table with the following columns:
| Column | Sortable | Description |
|---|---|---|
| Time | Yes | Timestamp with relative time display (e.g., "5m ago"). Default sort: newest first |
| Type | Yes | Activity type with icon indicator |
| Server | Yes | Link to the server that generated the activity |
| Details | No | Tool name or action description |
| Intent | No | Operation type badge (read/write/destructive) with tooltip showing full intent details |
| Status | Yes | Color-coded badge (green=success, red=error, orange=blocked) |
| Duration | Yes | Execution time in ms or seconds |
Sorting: Click any sortable column header to sort. Click again to toggle between ascending/descending. The current sort column and direction are indicated with an arrow.
Activity Typesโ
| Type | Icon | Description |
|---|---|---|
| Tool Call | ๐ง | MCP tool invocations to upstream servers |
| System Start | ๐ | MCPProxy server startup events |
| System Stop | ๐ | MCPProxy server shutdown events |
| Internal Tool Call | โ๏ธ | Internal proxy tool calls (retrieve_tools, call_tool_*, code_execution, upstream_servers, etc.) |
| Config Change | โก | Configuration changes (server added/removed/updated) |
| Policy Decision | ๐ก๏ธ | Security policy evaluations |
| Quarantine Change | โ ๏ธ | Server quarantine status changes |
| Server Change | ๐ | Server enable/disable/restart events |
Real-time Updatesโ
Activities appear automatically via Server-Sent Events (SSE):
- New activities are prepended to the list
- Completed activities update their status and duration
- The connection status indicator shows live/disconnected state
Filteringโ
Filter activities by:
- Type: Multi-select dropdown with checkboxes. Select one or more types to filter (uses OR logic between selected types):
- Tool Call, System Start, System Stop, Internal Tool Call, Config Change, Policy Decision, Quarantine Change, Server Change
- Server: Dynamically populated from activity data
- Status: Success, Error, Blocked
- Date Range: From/To datetime pickers to filter by time period
Type filters combine with OR logic (show any selected type). Other filters combine with AND logic. Active filters are displayed as badges below the filter controls.
Activity Detailsโ
Click any row to open the detail drawer showing:
- Full metadata (ID, type, timestamp, server, tool, duration, session, source)
- Request arguments displayed in a syntax-highlighted JSON viewer with:
- Color-coded keys (primary color)
- Green strings
- Orange numbers
- Purple booleans
- Red null values
- Copy-to-clipboard button with byte size indicator
- Response data in the same syntax-highlighted JSON viewer with truncation indicator
- Error message (for failed activities)
- Intent declaration (if present)
Sessions and the failure timelineโ
The Sessions tab (/ui/activity?view=sessions) lists work sessions: one row per agent run, read from GET /api/v1/work-sessions. A run is told apart by its credential, its client and its project: two scripts that use the same API key over REST within 30 minutes of each other are one session, unless each sends its own X-MCPProxy-Run name (1 to 128 printable characters; a name outside that is ignored and the call joins the unnamed session). One credential can open 1,000 named sessions in a UTC day; a new name after that is dropped the same way. The count is kept in memory, so it starts again when MCPProxy restarts. The run name is stored and shown as it was sent, to everyone who can see the session: do not put a secret or a signed URL in it.
| Cell | What it shows |
|---|---|
| Agent token | The token the run used, linked to the agent tokens list. A column of its own from 1536 px, where a run that used the API key or a client credential has a dash; on a narrower screen the token is the first line of the next cell, and a run without one has no such line. |
| Client ยท Project | The client (or the calling surface: rest, cli, webui, tray), the run name sent as X-MCPProxy-Run, and the project when the client disclosed one. A name written as ~name (reported) is what the caller said about itself: it stands alone when no known client was matched, and under the client's name when one was. "Start trimmed" marks a session whose first rows retention has removed. "No single owner" marks a session recorded by an older version whose rows do not all name one credential or user (calls of more than one credential share the session id, or some rows name none): the token shown is at most one of them, and the counts are of all the rows. Its Calls link therefore drops the page's token filter. |
| Started ยท Duration | Start time, duration, and whether the session is still active. |
| Calls | The number of attempts. It is a link to the Tool calls view filtered by this session; the link includes the calls MCPProxy refused and drops the page's time range, which this list does not apply. Below 640 px the calls and the failures are a line of the client cell. |
| Failures | The number of failures, with the policy blocks among them on a second line. |
| Last failure ยท Reason | The short reason of the last failure, then its error class and server:tool, and when it happened, with the first failure under it when there was more than one. A reason wraps; it is not cut. "Rebuilt from rows" in the client cell marks a session whose counts were rebuilt from the rows the log held at that time, so they leave out whatever retention had removed before. Below 1280 px these lines fold into the client cell. |
| Timeline | Opens the session's timeline. |
Above the table:
- Failed only keeps the sessions that have at least one failure. With it on, Include blocked decides whether a session whose only failures are calls MCPProxy itself refused (quarantine, a profile, a rate limit) is listed. Switch it off to see only sessions where something else failed. It selects sessions and changes nothing in a row: the Failures count of a listed session still includes its blocked calls, and the order by last failure still uses a blocked call when that was the last one.
- Sort orders by last activity or by last failure, newest first. With "Failed only" on, the list reads newest failure first unless you choose otherwise.
- The filter, the order and the paging are applied by the server, so the list is exact however long the log is. The profile, client and token filters of the page ("View as", the Filters popover) narrow the list too, with two exceptions that a line under the toolbar names when they apply: "unattributed" has no meaning for work sessions, and a signed-in user of the server edition who is not an administrator cannot filter by profile. The page reads the list again every 30 seconds while Auto-refresh is on. The list has 25 sessions to a page. The page number is not in the address (the list is ordered by time, so a page number names other sessions a minute later); the browser keeps it with the history entry, so Back from a session's Tool calls or from a timeline, or a reload, opens the page you left.
The filter and the order are part of the address (failed=true, include_blocked=false, sort=last_failure or sort=last_activity when it is not the default), so a filtered list can be bookmarked. "Clear Filters" in the Filters popover switches "Failed only" off as well.
A session that never failed opens at its most recent row. Below 1280 px the last failure and its reason move under the client name, below 1536 px the agent token is the first line of that cell, and below 640 px the two counts are a line of it too.
The table of MCP connections that this tab used to show (capabilities, token count, "Tools it sees", "View Activity") is in the Client connections section under the list. It is collapsed until you open it.
Timeline. A row's Timeline button opens /ui/activity?view=sessions&ws=<session id>&at=<position>. The address names the session and the row the page is positioned at, so it can be shared and reloaded. Without at the page opens at the first failure that is still in the log, with the 20 rows before it and the 20 after. A session that never failed opens at its most recent row. A session whose failed rows were all removed by retention still shows its lifetime failure count and opens at its earliest remaining row. at=failure:<n> counts the failures that are in the log now, so the same address can open a different row, or none, once retention has removed an earlier failure; to share one particular row, use at=row:<activity id> (the address the page has after "Open in session timeline" from a call's details).
- A failed call has a red bar and background; a call MCPProxy refused is amber and says "Blocked", or "Rejected" when a concurrency limit or the rate limit of its token refused it. The row the page is positioned at has an outline.
- A call made through
call_tool_read,call_tool_writeorcall_tool_destructiveis one row, namedserver:tool. MCPProxy stores a second row for the built-in call around it, which the timeline leaves out. The row's details say which one carried the call ("Called through") and how long that call took end to end ("End to end"), next to the upstream "Duration"; when the built-in call recorded a fuller response than the reply the agent got, it is shown under "Response recorded by call_tool_โฆ". Other built-in tools (retrieve_tools,code_executionand the like) are rows of their own, named by the tool, with "built-in tool" beside the name. - A call MCPProxy refused before it was sent (a quarantined tool, a profile) made no upstream call: the counted failure is the row of that decision. (A call refused inside
code_executionis recorded as a blocked call row instead, and that row is the counted failure.) One refusal is recorded the other way round. When the connection to the upstream server was replaced while the call waited, or the review of the server's tools was not recorded yet, nothing reached the upstream either, but the counted failure is the call's own row, which ended in an error; the decision row next to it is not counted. A rejected call (a concurrency limit, a token's rate limit) has no decision row at all: its own row is the counted failure. - An upstream event (connection lost, process exited, token refresh failed, login required, connection restored) is a row of its own with a plug icon, the server name and the fixed message; a problem has its
MCPX_*code when MCPProxy classified the cause (a connection lost for no classified reason has none, and neither has a restored connection). It is context, placed by time: what happened to a server the session called, at that moment. It is often, but not necessarily, the reason a later call to that server failed; an event of one server can sit above a call to another. Repeats within a minute are one row at the time of the first, with the count and the time of the last. - Session started and Session ended rows mark the two ends.
- Times are printed to the millisecond; hover a time for the date.
- Previous failure and Next failure step through the failures still in the timeline, and the label says "failure N of M". Latest rows jumps to the end of the session. A step that does not exist (before the first failure, after the last one, Latest rows at the end) is dimmed and does nothing; the button keeps the keyboard focus.
- Load earlier rows and Load later rows widen the page around the same position; a screen reader is told the new range. A step to another failure keeps that width. A page opened at the latest rows is widened around the row it shows (the address changes to
at=row:<id>), so new rows do not push the ones on screen away: a session that is still running grows, and one that has ended resumes when its connection makes another call. A page holds at most 250 rows on each side of its position. At that limit the button reads "Continue from the earliest row shown" (or "the latest"): the page then moves to that row and reads 50 rows beyond it, so the failure it was positioned at can leave the screen; Previous failure and Next failure bring it back. When the last rows of a side have been read its button goes away, and the keyboard focus moves to the nearest row. - Refresh reads the same page again, for a session that is still running.
- The facts at the top repeat what the list row shows and add the first and the last failure to the millisecond. The profile, client and token filters of the page narrow the list of sessions; they do not change a timeline, so the Filters control is put away while a timeline is open and is back on the list, and "View as" shows its values dimmed ("Not applied on this page") without the "Viewing as" line; the filter chips stay, each marked "not applied on this page", and can be removed from there.
- The arrow at the end of a row opens its details. The arguments and the response are fetched only then.
- Copy as CLI command gives the
mcpproxy activity session <id> ...command that asks for the same position and the same number of rows in a terminal. It is the same question, not a snapshot: for a session that is still running,--at endis its last row at the moment the command runs. Once the arguments or the response of a row are on screen here, the command has--include-bodies, which prints the arguments and responses of every row of the page, not only of the rows opened in the browser: keep that in mind before pasting the output into a report. - Tool calls of this session opens the Tool calls view filtered by the session, with the calls MCPProxy refused included (a Type filter names the three row types) and without the page's time range, which a timeline does not apply. Following this link, or the Calls count of a list row, to a session other than the one the Tool calls view was showing also resets that view's "Sensitive data" and "View sub-calls" filters, which are not part of the address. From there, a call's detail panel has Open in session timeline, which opens the timeline at that call. The link is offered for the rows a timeline holds: a client request and the two kinds of skill row carry their session but are not rows of its timeline, so they have no such link. One case does not: when the session resumed after retention had dropped its older rows from the timeline, a call that is still listed in Tool calls is no longer a row of the timeline. The link then opens the timeline with an error that says there is no such row, and a button to open it at the first failure.
What retention changes. A session leaves the list once its last activity is older than session_retention_days (7 by default; this is about the Sessions list, its calls stay in the Tool calls view for as long as the activity log keeps them); the cleanup pass applies this, so a long run that is still active stays listed. While it is listed, its counts are lifetime facts and stay exact. There are three exceptions. A session marked Rebuilt from rows (in the list and in its timeline) lost its summary, which was rebuilt from the rows still in the log, so its counts cover those rows only; the mark is shown to administrators, an agent token sees such a session without it. And a long-lived connection whose session left this list (it went quiet for longer than the retention window, which removes the session's summary and can leave its calls in the Tool calls view for a while longer, or the whole session was removed under the record or size cap) and that then makes another call under the same session id starts a new summary: the session is listed again with the counts of what happened since, and nothing marks it. And a session recorded by a version before the one that added this list was summarised once, at the first start after the upgrade, from the rows that were still in the log then and already carried a work-session id: if retention had already removed some of its rows, its counts are of the rows that were left, and nothing marks it either. Rows older than that id have no work session at all, so no timeline shows them; they are in the other views of the Activity page (Tool calls, System events, All), as before. Under the record or size cap a whole session can be removed before that, oldest last activity first; its address then shows "Session not found". When retention has removed rows, the timeline says so instead of showing a shorter history as if it were complete:
- "The start of this session is no longer in this timeline" appears at the top when the first rows are gone from it, and the list row carries "Start trimmed".
- "This session had N failures in all. M are still in this timeline" appears when failures were dropped from it. The failure steps then count the M that are left.
- Both notes speak of the timeline, not of the log. Usually the rows are gone from both. When a session that retention was removing resumed, the rows it had already let go of can still be stored for a while: they are in the Tool calls view until retention removes them there too.
- A row that was kept without its arguments and response says so when you open its details.
See retention for the settings. An address that names a session that does not exist, or one you may not see, shows "Session not found" with a link back to the list. An agent token, and a signed-in user of the server edition who is not an administrator, see only their own sessions, and only the part of each that touched servers in their reach: the counts of a row are then of the calls to those servers, and the note under the list says so; the profile, the connection count and the "start trimmed" marker are shown to administrators only.
Paginationโ
Navigate through large datasets with:
- First/Previous/Next/Last page buttons
- Page size selector (10, 25, 50, 100 per page)
- "Showing X-Y of Z" count display
Exportโ
Export filtered activities to JSON or CSV format:
- Apply desired filters
- Click the Export dropdown
- Select format (JSON or CSV)
- File downloads via browser
Dashboard Widgetโ
The Dashboard includes an Activity Summary widget showing:
- 24-hour totals (total, success, errors)
- 5 most recent activities
- "View All" link to the Activity Log page
Auto-refresh Toggleโ
Control real-time updates:
- Toggle on (default): Activities update automatically via SSE
- Toggle off: Manual refresh required, use the refresh button
API Endpointsโ
The Activity Log uses these REST API endpoints:
| Endpoint | Description |
|---|---|
GET /api/v1/activity | List activities with filtering |
GET /api/v1/activity/{id} | Get activity details |
GET /api/v1/activity/summary | Get 24h statistics |
GET /api/v1/activity/export | Export activities (JSON/CSV) |
GET /api/v1/work-sessions | List work sessions (the Sessions tab) |
GET /api/v1/work-sessions/{id}/timeline | One page of a session's timeline |
Query parameters for filtering:
type: Filter by activity type (comma-separated for multiple, e.g.,?type=tool_call,config_change)server: Filter by server namestatus: Filter by statusintent_type: Filter by intent operation type (read,write,destructive)limit: Maximum records to returnoffset: Pagination offset
SSE Eventsโ
Real-time updates are received via these SSE event types:
activity.tool_call.started: Tool call initiatedactivity.tool_call.completed: Tool call finishedactivity.policy_decision: Policy evaluation resultactivity: Generic activity event
Intent Declarationโ
For activities with intent declarations (Spec 018), the detail panel displays:
- Operation type with icon (๐ read, โ๏ธ write, โ ๏ธ destructive)
- Data sensitivity level
- Reason for the operation
See CLI Activity Commands for command-line access to activity data.