.cursor/skills/sf-agentforce-mcp-actions/SKILL.md
MCP Server actions for Agentforce — registry, auth, prebuilt servers, Apex integration. Use when configuring MCP as an Agentforce action type. Do NOT use for building MCP servers.
npx skillsauth add jiten-singh-shahi/salesforce-claude-code sf-agentforce-mcp-actionsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
How to use Model Context Protocol (MCP) servers as Agentforce action types. For building MCP servers, see mcp-server-patterns.
MCP exposes external tools to Agentforce via JSON-RPC 2.0 over HTTP/SSE. An MCP server declares tools (with names, descriptions, parameters, return types), and Agentforce discovers them at connection time. Each tool becomes an available agent action.
Setup > MCP Servers > New MCP Server
| Field | Value | |---|---| | Name | Descriptive name (e.g., "Weather API") | | Endpoint URL | Server URL (HTTPS required for production) | | Auth | OAuth 2.0 with Integration User | | Transport | HTTP/SSE (standard) |
After registration, tools appear in Agentforce Asset Library and can be added to topics.
In Agent Script, MCP tools are referenced like any other action. The target: field is not needed — MCP tools are auto-discovered from the server's tool manifest.
topic weather:
actions:
get_weather:
description: "Get current weather for a city"
inputs:
city: string
description: "City name"
is_required: True
outputs:
temperature: number
description: "Temperature in Fahrenheit"
is_displayable: True
reasoning:
actions:
weather: @actions.get_weather
with city = ...
Setup > Agentforce > Agent Assets > Add Action > select MCP tool from Asset Library.
| Limit | Value | |---|---| | Requests per minute per server | ~50 | | Timeout per tool call | 120 seconds (matches agent timeout) | | Max payload size | Platform-dependent |
On connection, the MCP server returns its tool manifest:
{
"tools": [
{
"name": "get_weather",
"description": "Get current weather conditions",
"inputSchema": {
"type": "object",
"properties": {
"city": { "type": "string", "description": "City name" }
},
"required": ["city"]
}
}
]
}
Agentforce uses tool names and descriptions for LLM routing — keep them clear and specific.
| Server | Purpose | Setup |
|---|---|---|
| Salesforce DX MCP Server | Deploy, test, manage scratch orgs from AI assistants | @salesforce/mcp npm package |
| Heroku Platform | Manage Heroku apps, dynos, add-ons | Built-in connector |
| MuleSoft | API orchestration, integration flows | MuleSoft Anypoint connector |
Fully managed cloud endpoints — zero infrastructure. Pre-built for core CRM and B2C Commerce APIs.
If an MCP action fails in Agent Script:
sf mcp test or direct HTTP to verify the server respondsmcp-server-patterns — building MCP servers (Node SDK)sf-agentforce-development — Agent Script patternsdevelopment
Update Salesforce platform reference docs with latest release features and deprecation announcements. Use when SessionStart hook warns docs are outdated or a new Salesforce release has shipped. Do NOT use for Apex or LWC development.
development
Use when syncing documentation after Salesforce Apex code changes. Update README, API docs, and deploy metadata references to match the current org codebase.
development
Use when managing context during long Salesforce Apex development sessions. Suggests manual compaction at logical intervals to preserve deploy and org context across phases.
tools
Visualforce development — pages, controllers, extensions, ViewState, JS Remoting, LWC migration. Use when maintaining VF pages, building PDFs, or planning VF-to-LWC migration. Do NOT use for LWC, Aura, or Flow.