Skip to content

fix(workflow-executor): pass collectionId to MCP activity log#1608

Merged
Scra3 merged 2 commits into
feat/prd-214-server-step-mapperfrom
fix/mcp-activity-log-collection-id
May 28, 2026
Merged

fix(workflow-executor): pass collectionId to MCP activity log#1608
Scra3 merged 2 commits into
feat/prd-214-server-step-mapperfrom
fix/mcp-activity-log-collection-id

Conversation

@Scra3
Copy link
Copy Markdown
Member

@Scra3 Scra3 commented May 28, 2026

Summary

  • The MCP step executor was the only one missing collectionId in buildActivityLogArgs
  • Without it, activity logs created by MCP steps were not linked to their collection in the Forest Admin UI

Root cause

McpStepExecutor.buildActivityLogArgs returned renderingId, action, type, and label but omitted collectionId, which is present in all other step executors (update-record, trigger-record-action, load-related-record).

fixes PRD-414

🤖 Generated with Claude Code

Note

Pass collectionId to MCP activity log in McpStepExecutor.buildActivityLogArgs

Adds collectionId from this.context to the CreateActivityLogArgs returned by buildActivityLogArgs in mcp-step-executor.ts. A new test in mcp-step-executor.test.ts verifies that activityLogPort.createPending receives collectionId when executing a fully automated MCP step.

Macroscope summarized 7dacdac.

The MCP step executor was missing collectionId in buildActivityLogArgs,
causing activity logs to not show up in the Forest Admin UI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear Bot commented May 28, 2026

PRD-414

…ionId

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@qltysh
Copy link
Copy Markdown

qltysh Bot commented May 28, 2026

Qlty


Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@Scra3 Scra3 merged commit a29c4f0 into feat/prd-214-server-step-mapper May 28, 2026
30 checks passed
@Scra3 Scra3 deleted the fix/mcp-activity-log-collection-id branch May 28, 2026 14:49
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.

2 participants