Skip to content

@W-21513849 Update MCP tool names and docs#270

Merged
yhsieh1 merged 8 commits intomainfrom
t/commerce/W-21513849
Mar 17, 2026
Merged

@W-21513849 Update MCP tool names and docs#270
yhsieh1 merged 8 commits intomainfrom
t/commerce/W-21513849

Conversation

@yhsieh1
Copy link
Copy Markdown
Contributor

@yhsieh1 yhsieh1 commented Mar 17, 2026

Summary

Renames MCP tools across the B2C DX MCP server for clearer, action-oriented naming. The changes affect the PWAV3, SCAPI, and STOREFRONTNEXT toolsets.

PWA Kit (PWAV3)

Old Name New Name
pwakit_development_guidelines pwakit_get_guidelines

SCAPI

Old Name New Name
scapi_custom_api_scaffold scapi_custom_api_generate_scaffold
scapi_custom_apis_status scapi_custom_apis_get_status

Storefront Next (STOREFRONTNEXT)

Old Name New Name
storefront_next_page_designer_decorator sfnext_add_page_designer_decorator
storefront_next_generate_component sfnext_analyze_component
storefront_next_site_theming sfnext_configure_theme
storefront_next_development_guidelines sfnext_get_guidelines
storefront_next_figma_to_component_workflow sfnext_start_figma_workflow
storefront_next_map_tokens_to_theme sfnext_match_tokens_to_theme

Naming Conventions Applied

  1. Action-oriented verbs — Tools use clear verbs: get_, generate_, add_, configure_, start_, analyze_, match_
  2. Shortened prefixstorefront_next_sfnext_ for Storefront Next tools
  3. Semantic claritymap_tokens_to_themematch_tokens_to_theme (reflects matching/suggestions, not direct mapping)

Files Changed

  • 48 files changed, 312 insertions, 320 deletions
  • Documentation: docs/mcp/, docs/.vitepress/
  • Source: packages/b2c-dx-mcp/src/tools/
  • Tests: packages/b2c-dx-mcp/test/
  • Changeset: .changeset/mcp-tool-renames.md

Testing

  • start MCP server locally and observer tool name changes
  • pnpm docs:dev and review docs for name changes

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)

@yhsieh1 yhsieh1 requested a review from sf-cboscenco March 17, 2026 17:52
Comment on lines -51 to -56
**Example prompts:**
- ✅ "Use the MCP tool to list all available SCAPI schemas."
- ✅ "Use the MCP tool to show me what checkout APIs exist." → `apiFamily: "checkout"`
- ✅ "Use the MCP tool to discover SCAPI product endpoints." → `apiFamily: "product"`
- ✅ "Use the MCP tool to list custom API definitions." → `apiFamily: "custom"`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FYI, I didn't see example prompt clean-up in the PR description so I'm not sure if these changes are intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is duplicated section. Its available in ## Usage Examples section so I remove it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

note to self, this looks like a new file, but i'm guessing it's a git mv that got confused

- **Auto mode** (fast): Ask in your IDE: *"Add Page Designer support to [ComponentName] with autoMode"*. The tool runs in one turn with no prompts.
- **Interactive mode** (control): Ask *"Add Page Designer support to [ComponentName]"* and answer questions about typeId, which props to expose, types, and optional nested regions.

### 2. `storefront_next_generate_page_designer_metadata` (STOREFRONTNEXT toolset)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

guessing this tool never existed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right, the tool is not there and I will update the cartridge_deploy to run build first. Thanks for catching this.

@yhsieh1 yhsieh1 merged commit bf35222 into main Mar 17, 2026
5 checks passed
@yhsieh1 yhsieh1 deleted the t/commerce/W-21513849 branch March 17, 2026 20:44
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