Skip to main content
Glama

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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".', }, ], }; });

Latest Blog Posts

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