Skip to content

Show MCP agent info in Activity Log#25397

Merged
jkmassel merged 4 commits intotrunkfrom
jkmassel/activity-log-mcp-agent
Mar 18, 2026
Merged

Show MCP agent info in Activity Log#25397
jkmassel merged 4 commits intotrunkfrom
jkmassel/activity-log-mcp-agent

Conversation

@jkmassel
Copy link
Contributor

@jkmassel jkmassel commented Mar 18, 2026

Summary

  • Add isMCPAgent and mcpClient properties to ActivityActor to parse new API fields
  • Display MCP client name (e.g. "via Claude") in activity log list rows and detail view
  • Extract shared ActivityStringFormatting helper for actor display logic
  • Fix download-gutenberg-xcframeworks.sh copying frameworks into a nested version directory (unrelated, but I needed to do it while testing)

Screenshots

Screenshot 2026-03-17 at 7 28 50 PM Screenshot 2026-03-17 at 7 29 10 PM

Linear: AIINT-290

Test plan

  • Verify activity log entries from MCP agents show "via {client}" in the list row
  • Verify activity log detail view shows MCP client name below the actor role
  • Verify non-MCP activity entries display unchanged
  • Run ActivityTests and ActivityStringFormattingTests — all pass
  • Run make dependencies and confirm no v1.x.x subdirectory in WordPress/Frameworks/

🤖 Generated with Claude Code

@dangermattic
Copy link
Collaborator

dangermattic commented Mar 18, 2026

1 Error
🚫 PR requires at least one label.
1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@jkmassel jkmassel requested review from crazytonyli and kean March 18, 2026 01:30
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 18, 2026

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number31564
VersionPR #25397
Bundle IDorg.wordpress.alpha
Commit5ea404c
Installation URL2bi1ta0eoahco
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 18, 2026

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number31564
VersionPR #25397
Bundle IDcom.jetpack.alpha
Commit5ea404c
Installation URL0nrme5fcno7fg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

jkmassel and others added 3 commits March 17, 2026 23:51
Add `isMCPAgent` and `mcpClient` properties to `ActivityActor` to surface
when activity was performed by an MCP agent. Display the MCP client name
(e.g. "via Claude") in both the activity list rows and detail view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
`cp -a` copies the source directory itself into the destination when it
already exists, creating `WordPress/Frameworks/v1.121.0/`. Copy contents
instead so frameworks land directly in `WordPress/Frameworks/`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use positional format specifier (%1$@) for localized string
- Remove unused actorDescription(for:) method and its tests
- Restore original actorSubtitle behavior for non-MCP rows
- Fix shell script to copy dotfiles using cp -a dir/. pattern
- Add lineLimit(1) to metadata text to prevent truncation
- Improve localization comment for translator clarity

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jkmassel jkmassel force-pushed the jkmassel/activity-log-mcp-agent branch from 7f42d20 to 3e9c180 Compare March 18, 2026 05:51
Copy link
Contributor

@kean kean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good, minus one potentially unrelated change. Resolving with "Comment" since the PR is in draft.

exit 1
fi
cp -a "${CACHE_DIR}" "${FRAMEWORKS_DIR}"
mkdir -p "${FRAMEWORKS_DIR}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the change related to the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only insomuch as I hit it while testing and didn't think it was worth its own PR.

import Testing

class ActivityTests: XCTestCase {
struct ActivityTests {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see more XCTest rework.

}
"""

private let activityLogExplicitlyNotMCPAgent: String = """
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) It might be worth adding them in Resources to reduce the amount of work for the compiler and let you see these files with a JSON viewer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I didn't love this either but I figured I'd leave it to match what's already there 🤷

@jkmassel jkmassel marked this pull request as ready for review March 18, 2026 14:39
@kean kean self-requested a review March 18, 2026 15:18
Copy link
Contributor

@kean kean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jkmassel jkmassel enabled auto-merge March 18, 2026 16:15
@jkmassel jkmassel added this pull request to the merge queue Mar 18, 2026
@wpmobilebot
Copy link
Contributor

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

@sonarqubecloud
Copy link

Merged via the queue into trunk with commit c4a95ab Mar 18, 2026
25 of 28 checks passed
@jkmassel jkmassel deleted the jkmassel/activity-log-mcp-agent branch March 18, 2026 16:45
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.

4 participants