Mcp tool builder
Skill divingsbysangam/salesforce-compound-engineering-plugin/skills/mcp-tool-builder
Building custom MCP server tools — Apex InvocableMethod, Flow tools, prompt templates (with real-world gotchas), dual architecture patterns, and testingFrom its SKILL.md
npx -y skills add divingsbysangam/salesforce-compound-engineering-plugin --skill mcp-tool-builderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 10 stars10 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.3 KB, as published. Nobody here has run it
MCP Tool Builder
SCOPE: HOSTED_MCP - This skill applies to building custom tools for Salesforce Hosted MCP Servers.
Use when: Creating Apex @InvocableMethod actions, Flow-based tools, Named Query APIs, or prompt templates for MCP exposure.
Custom MCP servers expose backend logic as tools that AI clients (Claude, ChatGPT, Cursor) can invoke.
CRITICAL WARNING: MCP and Agentforce use fundamentally different orchestration models. Code designed for Agentforce will break on MCP unless adapted. See "MCP vs Agentforce Architecture" section.
Required reads
Procedure lives in sibling files, not only in this orchestrator:
- Tool Types — read
references/tool-types.mdbefore acting on this section. - Apex Invocable Action Tools — read
references/apex-invocable-action-tools.mdbefore acting on this section. - MCP vs Agentforce Architecture — read
references/mcp-vs-agentforce-architecture.mdbefore acting on this section. - Flow-Based MCP Tools — read
references/flow-based-mcp-tools.mdbefore acting on this section. - Named Query API Tools — read
references/named-query-api-tools.mdbefore acting on this section. - Prompt Templates for MCP — read
references/prompt-templates-for-mcp.mdbefore acting on this section. - Recommended Resolution — read
references/recommended-resolution.mdbefore acting on this section. - Similar Resolved Cases — read
references/similar-resolved-cases.mdbefore acting on this section. - Confidence: High — read
references/confidence-high.mdbefore acting on this section. - Retrieved Data (merge fields here) — read
references/retrieved-data-merge-fields-here.mdbefore acting on this section. - Your Task — read
references/task.mdbefore acting on this section. - Custom Server Registration — read
references/custom-server-registration.mdbefore acting on this section. - Testing MCP Tools — read
references/testing-mcp-tools.mdbefore acting on this section. - Tool Description Best Practices — read
references/tool-description-best-practices.mdbefore acting on this section.