Skip to content

@W-21435068 Add post action reminder for cartridge deploy mcp tool#233

Merged
yhsieh1 merged 1 commit intomainfrom
t/commerce/W-21435068
Mar 4, 2026
Merged

@W-21435068 Add post action reminder for cartridge deploy mcp tool#233
yhsieh1 merged 1 commit intomainfrom
t/commerce/W-21435068

Conversation

@yhsieh1
Copy link
Contributor

@yhsieh1 yhsieh1 commented Mar 4, 2026

Summary

Add important reminder in the success Cartridge Deployment response so that the deployed cartridge can be scanned and enabled.

It should remind user to update cartridge path in Business Manager: Sites → Manage Sites → [your site] → Settings tab → Cartridges field.

Testing

  • Create a Custom API cartridge
  • Use MCP tool to deploy the cartridge
  • Expect the execution response contains the reminder message
Screenshot 2026-03-03 at 4 43 58 PM

Dependencies

  • No net-new third-party dependencies were added
  • If net-new third-party dependencies were added, rationale/discussion is included and 3pl-approved is set by a maintainer

  • Tests pass (pnpm test)
  • Code is formatted (pnpm run format)

@@ -0,0 +1,5 @@
---
'@salesforce/b2c-dx-mcp': patch
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is .changeset used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its used to help developing CHANGELOG. It will be removed and convert to CHANGELOG in the Next Release PR, such as PR#228. Please reference this from Charles.

import {getLogger} from '@salesforce/b2c-tooling-sdk/logging';

/** Reminder shown after deploy so users add cartridges to the site cartridge path. */
const CARTRIDGE_PATH_REMINDER =
Copy link
Collaborator

@wei-liu-sf wei-liu-sf Mar 4, 2026

Choose a reason for hiding this comment

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

why not add this to the sdk's post instruction?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is more specific instruction for the agent. It uses function findAndDeployCartridges which is responsible for the deployment and do not return post action instructions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Reminding of setting cartridge path logic is common to both cli and mcp tool. Both can be used by agent, not just mcp tool IMO.

@yhsieh1 yhsieh1 merged commit 6eba028 into main Mar 4, 2026
4 checks passed
@yhsieh1 yhsieh1 deleted the t/commerce/W-21435068 branch March 4, 2026 15:58
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.

3 participants