
codefriar/sf-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
codefriar/sf-mcp는 MCP 서버 후보로 https://github.com/codefriar/sf-mcp.에서 수입
개요
codefriar/sf-mcp는 MCP 서버 후보로 https://github.com/codefriar/sf-mcp.에서 수입
개요(AI 번역)
Model Context Protocol (MCP) 서버는 Claude Desktop과 같은 LLM 툴에 Salesforce CLI 기능을 제공합니다.
개요
이 MCP 서버는 Salesforce CLI (sf]]) 명령행 도구를 포장하고 MCP 도구 및 리소스로 명령을 노출하고 LLM 전원 에이전트를 허용 :
- Salesforce CLI 주제 및 명령에 대한 도움말
- Salesforce CLI 명령을 적절한 매개 변수로 실행
- AI 워크플로우의 Salesforce CLI 기능 활용
요구 사항
- Node.js 18+ 및 npm
- Salesforce CLI ([T1]]) 설치 및 구성
- CLI에서 설정된 Salesforce org 자격
설치
사용법
서버 시작
MCP 서버는 MCP 클라이언트와 함께 사용될 수 있는 stdio 수송을 이용합니다 MCP Inspector 또는 Claude 데스크탑과 같은.
Claude 데스크톱에서 구성
Claude Desktop에서 이 MCP를 구성하려면 .claude.json] 구성:
npm 패키지를 직접 사용하여:
개발
사용 가능한 도구 및 리소스
이 MCP 서버는 MCP 도구로 Salesforce CLI 명령을 제공합니다. 그것은 자동으로 Salesforce CLI에서 모든 사용 가능한 명령을 발견하고 등록하고 특히 가장 일반적으로 사용되는 명령을 구현합니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Salesforce CLI MCP Server
Model Context Protocol (MCP) server for providing Salesforce CLI functionality to LLM tools like Claude Desktop.
Overview
This MCP server wraps the Salesforce CLI (sf) command-line tool and exposes its commands as MCP tools and resources, allowing LLM-powered agents to:
- View help information about Salesforce CLI topics and commands
- Execute Salesforce CLI commands with appropriate parameters
- Leverage Salesforce CLI capabilities in AI workflows
Requirements
- Node.js 18+ and npm
- Salesforce CLI (
sf) installed and configured - Your Salesforce org credentials configured in the CLI
Installation
# Clone the repository
git clone
cd sfMcp
# Install dependencies
npm install
Usage
Starting the server
# Basic usage
npm start
# With project roots
npm start /path/to/project1 /path/to/project2
# or using the convenience script
npm run with-roots /path/to/project1 /path/to/project2
# As an npx package with roots
npx -y codefriar/sf-mcp /path/to/project1 /path/to/project2
The MCP server uses stdio transport, which can be used with MCP clients like the MCP Inspector or Claude Desktop.
Configuring in Claude Desktop
To configure this MCP in Claude Desktop’s .claude.json configuration:
{
"tools": {
"salesforce": {
"command": "/path/to/node",
"args": [
"/path/to/sf-mcp/build/index.js",
"/path/to/project1",
"/path/to/project2"
]
}
}
}
Using the npm package directly:
{
"tools": {
"salesforce": {
"command": "/path/to/npx",
"args": [
"-y",
"codefriar/sf-mcp",
"/path/to/project1",
"/path/to/project2"
]
}
}
}
Development
# Watch mode (recompiles on file changes)
npm run dev
# In another terminal
npm start [optional project roots...]
Available Tools and Resources
This MCP server provides Salesforce CLI commands as MCP tools. It automatically discovers and registers all available commands from the Salesforce CLI, and also specifically implements the most commonly used commands.
Core Tools
sf_version- Get the Salesforce CLI version informationsf_help- Get help information for Salesforce CLI commandssf_cache_clear- Clear the command discovery cachesf_cache_refresh- Refresh the command discovery cache
Project Directory Management (Roots)
For commands that require a Salesforce project context (like deployments), you must specify the project directory. The MCP supports multiple project directories (roots) similar to the filesystem MCP.
Configuration Methods
Method 1: Via Command Line Arguments
# Start the MCP with project roots
npm start /path/to/project1 /path/to/project2
# or
npx -y codefriar/sf-mcp /path/to/project1 /path/to/project2
설치
npx -y codefriar/sf-mcp /path/to/project1 /path/to/project2