Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 () => {
  • 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 () => {

Other Tools

Related Tools

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