Use LWC Workflow MCP Tools (Beta)

The LWC workflow MCP tools walk through the component creation process, providing guidance that follow best practices.

  • orchestrate_lwc_component_creation - Step-by-step component creation workflow guidance
  • orchestrate_lwc_component_optimization - Performance optimization and best practices for LWC
  • orchestrate_lwc_component_testing - Comprehensive testing workflow and test generation guidance
  • orchestrate_lwc_slds2_uplift - Migration guidance for upgrading to SLDS 2

MCP Tools for LWC Development is a pilot or beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer's sole discretion.

The tools are invoked automatically based on your prompts. Here are some possible prompts that invoke the LWC workflow MCP tools.

Ask about guidelines on creating a component.

  • Outline step-by-step tasks to build a contact list component.
  • Recommend data access (UI API vs Apex) and eventing approach for this component.
  • Provide an a11y checklist (roles, labels, keyboard, focus) tailored to this UI.

Ask about optimizing a component and proposing performance strategies.

  • Recommend virtualization or pagination for long lists and heavy DOM updates.
  • Propose strategies to reduce wire traffic via field minimization, batching, and caching.
  • Provide a performance checklist for TTI, CPU cost, paint, and memory.

Ask about testing workflow for accessibility, Jest tests, and more.

  • Create a test plan covering render states, user events, wires, and errors.
  • Add accessibility tests and guidance on interpreting failures.
  • Generate Jest test examples covering wire adapters, Apex mocks, and DOM assertions.

Ask about migrating a component to use SLDS 2.

  • Uplift this component to SLDS 2—list class/token replacements and provide before/after diffs.
  • Create an SLDS 2 migration guide for this component and call out any breaking changes.
  • Generate a step-by-step SLDS 2 uplift checklist for my components with search/replace patterns and sample updates.

See Also