Skip to main content
Glama

Salesforce CLI MCP Server

sf_set_project_directory

Set the project directory for Salesforce CLI commands by specifying the absolute path to a directory containing an sfdx-project.json file. Optionally name, describe, or set it as the default root for command execution.

Input Schema

NameRequiredDescriptionDefault
descriptionNoOptional description for this project root
directoryYesThe absolute path to a directory containing an sfdx-project.json file
isDefaultNoSet this root as the default for command execution
nameNoOptional name for this project root

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "description": { "description": "Optional description for this project root", "type": "string" }, "directory": { "description": "The absolute path to a directory containing an sfdx-project.json file", "type": "string" }, "isDefault": { "description": "Set this root as the default for command execution", "type": "boolean" }, "name": { "description": "Optional name for this project root", "type": "string" } }, "required": [ "directory" ], "type": "object" }

You must be authenticated.

Other Tools from Salesforce CLI MCP Server

Related Tools

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