sf_detect_project_directory
Identify and configure Salesforce project directories to enable execution of CLI commands, facilitating efficient project setup and management via AI tools.
Instructions
Get instructions for setting up Salesforce project directories for command execution
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:51-63 (handler)The 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 access to the message context for automatic detection 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-51 (registration)The server.tool() call that registers the 'sf_detect_project_directory' tool with its description, empty input schema, and inline handler function.server.tool('sf_detect_project_directory', 'Get instructions for setting up Salesforce project directories for command execution', {}, async () => {
- src/index.ts:51-51 (schema)The input schema for the tool, which is empty object indicating no parameters are required.server.tool('sf_detect_project_directory', 'Get instructions for setting up Salesforce project directories for command execution', {}, async () => {