SF-MCP is a Node.js server that exposes Salesforce CLI functionality through the Model Context Protocol, allowing AI assistants to interact with Salesforce orgs. Developed by Kevin Poorman, it dynamically discovers and registers all available SF CLI commands as MCP tools, supports project-specific command execution through configurable roots, and includes caching mechanisms for improved performance. The implementation handles contextual command execution within Salesforce project directories, making it particularly valuable for developers and administrators who need to perform Salesforce operations like querying data, deploying code, or managing orgs through AI assistants.
아직 리뷰가 없습니다. 첫 번째 리뷰를 작성해 보세요!
대화에 참여하려면 로그인하세요
Get the Salesforce CLI version information.
Get help information for Salesforce CLI commands.
Clear the command discovery cache.
Refresh the command discovery cache.
Set a Salesforce project directory to use for commands. Parameters: directory (path to a directory), name (optional name for this project root), description (optional description for this project root), isDefault (optional flag to set this root as the default).
List all configured project roots.
Attempt to detect project directory from user messages.
List Salesforce orgs. Parameters: json (optional flag for JSON output), verbose (optional flag for verbose output).
List authenticated Salesforce orgs. Parameters: json (optional flag for JSON output), verbose (optional flag for verbose output).
Display details about an org. Parameters: targetusername (username of the target org), json (optional flag for JSON output).
Open an org in the browser. Parameters: targetusername (username of the target org), path (optional path), urlonly (optional flag to return URL only).
Run anonymous Apex code. Parameters: targetusername (username of the target org), file (optional path to the file), apexcode (the Apex code to run), json (optional flag for JSON output).
Run Apex tests. Parameters: targetusername (username of the target org), testnames (optional names of tests to run), suitenames (optional names of test suites), classnames (optional names of classes to run), json (optional flag for JSON output).
Execute a SOQL query. Parameters: targetusername (username of the target org), query (the SOQL query to execute), json (optional flag for JSON output).
List sObjects in the org. Parameters: targetusername (username of the target org), json (optional flag for JSON output).
Describe a Salesforce object. Parameters: targetusername (username of the target org), sobject (the name of the Salesforce object), json (optional flag for JSON output).
Deploy the source to an org. Parameters: targetusername (username of the target org), sourcedir (directory of source files), json (optional flag for JSON output), wait (optional wait time).