Skip to content
Kitbay

platform-mcp-tool-widget-coordinate

Apache-2.0Updated on Nov 6, 20261,156GitHub stars

A Salesforce skill that coordinates rendering what a custom MCP tool returns, where the tool is backed by an Apex invocable action, as a rich widget.

What the skill teaches

A Salesforce skill that coordinates rendering what a custom MCP tool returns, where the tool is backed by an Apex invocable action, as a rich widget. The agent selects the input, discovers the shape of the tool's output payload, presents a build plan for approval, then generates an object-based Lightning Type, a default renderer and an HXL widget bundle, and runs validation gates before summarising. The skill explains how this path differs from the Apex-backed Lightning Type skill, and it runs only when the request explicitly involves an MCP tool's output. It uses the sf CLI and jq.

Capabilities

  • Discover the output shape of an Apex-backed MCP tool
  • Generate an object-based Lightning Type for tool output
  • Generate an HXL widget to render the output
  • Validate the generated files