sf_detect_project_directory
Identify and configure Salesforce project directories to enable command execution for development workflows.
Instructions
Get instructions for setting up Salesforce project directories for command execution
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sf_detect_project_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:51-63 (handler)Inline asynchronous handler function for the 'sf_detect_project_directory' tool. It returns textual instructions guiding the user on how to set a Salesforce project directory, as direct message context access is not available in this MCP version.
server.tool('sf_detect_project_directory', 'Get instructions for setting up Salesforce project directories for command execution', {}, async () => { // Since we can't access the message in this version of MCP, // we need to rely on the LLM to extract the directory and use sf_set_project_directory return { content: [ { type: 'text', text: 'To set a project directory, please use sf_set_project_directory with the path to your Salesforce project, or include the project path in your message using formats like "Execute in /path/to/project" or "Use project in /path/to/project".', }, ], }; }); - src/index.ts:51-63 (registration)Registration of the 'sf_detect_project_directory' tool using server.tool(), including an empty input schema {} and the inline handler function.
server.tool('sf_detect_project_directory', 'Get instructions for setting up Salesforce project directories for command execution', {}, async () => { // Since we can't access the message in this version of MCP, // we need to rely on the LLM to extract the directory and use sf_set_project_directory return { content: [ { type: 'text', text: 'To set a project directory, please use sf_set_project_directory with the path to your Salesforce project, or include the project path in your message using formats like "Execute in /path/to/project" or "Use project in /path/to/project".', }, ], }; });