sfcc-dev-mcp
Version:
MCP server for Salesforce B2C Commerce Cloud development assistance including logs, debugging, and development tools
76 lines • 2.3 kB
TypeScript
/**
* MCP Server for SFCC Development
*
* This module implements the Model Context Protocol (MCP) server for accessing
* Salesforce B2C Commerce Cloud development features. It provides a standardized interface
* for AI assistants to interact with SFCC development tools and data.
*/
import { SFCCConfig } from '../types/types.js';
/**
* MCP Server implementation for SFCC development assistance
*
* This class sets up the MCP server, defines available tools, and handles
* requests from MCP clients (like AI assistants) to interact with SFCC development features.
*/
export declare class SFCCDevServer {
private server;
private logClient;
private docsClient;
private bestPracticesClient;
private sfraClient;
private ocapiClient;
private logger;
private capabilities;
/**
* Initialize the SFCC Development MCP Server
*
* @param config - SFCC configuration for connecting to the logging system
* @param debug - Whether to enable debug logging (default: true)
*/
constructor(config: SFCCConfig, debug?: boolean);
private initializeClients;
private initializeServer;
private logMethodEntry;
private logMethodExit;
/**
* Helper method to validate client availability and throw consistent error messages
*/
private validateClientAvailability;
/**
* Helper method to create consistent response format
*/
private createResponse;
/**
* Helper method to handle tool execution with consistent logging and timing
*/
private executeToolHandler;
/**
* Handle log-related tools with common pattern
*/
private handleLogTool;
/**
* Handle documentation-related tools with common pattern
*/
private handleDocsTool;
/**
* Handle best practices tools with common pattern
*/
private handleBestPracticesTool;
/**
* Handle system object tools with common pattern
*/
private handleSystemObjectTool;
/**
* Handle SFRA documentation tools with common pattern
*/
private handleSFRATool;
/**
* Set up MCP tool handlers for SFCC operations
*/
private setupToolHandlers;
/**
* Start the MCP server
*/
run(): Promise<void>;
}
//# sourceMappingURL=server.d.ts.map