Activity Log: Show MCP agent metadata#22706
Merged
Conversation
Display "via {client}" label (e.g. "via Claude") in the Activity Log
when an entry was performed by an MCP agent. Adds isMCPAgent and
mcpClient fields through the full data pipeline: API response parsing,
database persistence with migration, and UI rendering in both the
list and detail views.
Ref: AIINT-290
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Contributor
|
|
Contributor
|
|
Suppress LongParameterList for Actor class and extract hardcoded dot separator to a string resource. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #22706 +/- ##
=======================================
Coverage 37.49% 37.50%
=======================================
Files 2286 2287 +1
Lines 120484 120513 +29
Branches 16501 16510 +9
=======================================
+ Hits 45173 45195 +22
- Misses 71637 71645 +8
+ Partials 3674 3673 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Extract duplicated MCP formatting into ActivityActorExtensions - Remove unnecessary intermediate variable in detail ViewModel - Pass uiHelpers to EventItemViewHolder for consistent visibility handling - Add unit tests for MCP metadata in both list and detail ViewModels Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
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.






Description
Adds support for displaying MCP (Model Context Protocol) agent metadata in the Activity Log, matching the iOS implementation (WordPress-iOS #25397).
When an activity was performed by an MCP agent, a "via {client}" label (e.g., "via Claude") is now shown in both the list view and the detail view.
Changes across the full data pipeline:
is_mcp_agentandmcp_clientfields to the REST client actor response modelisMCPAgentandmcpClienttoActivityLogModel.ActivityActorMCP_AGENTandMCP_CLIENTcolumns to theActivityLogtable with migration (v211→212)Ref: AIINT-290
Screenshots
Testing instructions
Verify MCP metadata in Activity Log list:
Verify MCP metadata in Activity Log detail:
Verify non-MCP entries are unaffected:
🤖 Generated with Claude Code