#!/bin/bash
# Check if sf command is available
if ! command -v sf &> /dev/null; then
echo "Error: Salesforce CLI (sf) is not installed or not in your PATH"
echo "Please install it from: https://developer.salesforce.com/tools/sfdxcli"
exit 1
fi
# Print current directory and sf version
echo "Current directory: $(pwd)"
echo "Salesforce CLI version:"
sf --version
# Build and run the server
echo "Building and starting MCP server..."
npm run build
# Pass all command-line arguments to the server (for project roots)
node build/index.js "$@"
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/codefriar/sf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server