Skip to main content
Glama
taurgis

SFCC Development MCP Server

by taurgis

list_sfcc_classes

Retrieve a full list of SFCC classes to explore APIs, understand the class hierarchy, and support SFCC development tasks efficiently.

Instructions

Get a complete list of all available SFCC classes. Use this for exploration and discovery when you need to understand the full scope of SFCC APIs, or when you're new to SFCC development and want to see what's available. Good starting point for understanding the SFCC class hierarchy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool handler configuration defining the execution logic, validation, defaults, and logging for 'list_sfcc_classes'. Delegates to SFCCDocumentationClient.getAvailableClasses()
    list_sfcc_classes: { defaults: (args: ToolArguments) => args, validate: (_args: ToolArguments, _toolName: string) => { // No validation needed for list operation }, exec: async (args: ToolArguments, context: ToolExecutionContext) => { const client = context.docsClient as SFCCDocumentationClient; return client.getAvailableClasses(); }, logMessage: (_args: ToolArguments) => 'List classes', },
  • Defines the MCP tool schema including name, description, and empty input schema (no required arguments)
    { name: 'list_sfcc_classes', description: "Get a complete list of all available SFCC classes. Use this for exploration and discovery when you need to understand the full scope of SFCC APIs, or when you're new to SFCC development and want to see what's available. Good starting point for understanding the SFCC class hierarchy.", inputSchema: { type: 'object', properties: {}, }, },
  • Actual implementation of listing available SFCC classes by scanning documentation cache, sorting, and formatting class names
    async getAvailableClasses(): Promise<string[]> { await this.initialize(); return Array.from(this.classCache.keys()) .sort() .map(className => ClassNameResolver.toOfficialFormat(className)); }
  • Registers the DocsToolHandler which handles 'list_sfcc_classes' among other doc tools
    this.handlers = [ new LogToolHandler(context, 'Log'), new JobLogToolHandler(context, 'JobLog'), new DocsToolHandler(context, 'Docs'), new BestPracticesToolHandler(context, 'BestPractices'), new SFRAToolHandler(context, 'SFRA'), new SystemObjectToolHandler(context, 'SystemObjects'), new CodeVersionToolHandler(context, 'CodeVersions'), new CartridgeToolHandler(context, 'Cartridge'), ]; }
  • DocsToolHandler returns the DOCS_TOOL_CONFIG which includes the 'list_sfcc_classes' handler spec for registration with MCP server
    protected getToolConfig(): Record<string, GenericToolSpec<ToolArguments, any>> { return DOCS_TOOL_CONFIG; }

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/taurgis/sfcc-dev-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server