Skip to main content
Glama

TailorKit MCP

Official
by sellersmith
index.ts1.24 kB
import { TailorKitClient } from "../../sdk.js"; import { ToolHandlersRegistry } from "./registry/ToolHandlersRegistry.js"; import { TemplateHandlerRegistrar, LayerHandlerRegistrar, IntegrationHandlerRegistrar, UserPreferencesHandlerRegistrar, ShopifyHandlerRegistrar } from "./registrars/index.js"; import { ServiceManager } from "../services/index.js"; /** * Initialize and register all tool handlers * @param client - The TailorKit client instance * @returns The populated handler registry */ export function initializeToolHandlers(client: TailorKitClient): ToolHandlersRegistry { const registry = new ToolHandlersRegistry(); const serviceManager = ServiceManager.getInstance(client.getBaseClient()); // Register handlers by service type const registrars = [ new TemplateHandlerRegistrar(registry, serviceManager), new LayerHandlerRegistrar(registry, serviceManager), new IntegrationHandlerRegistrar(registry, serviceManager), new UserPreferencesHandlerRegistrar(registry, serviceManager), new ShopifyHandlerRegistrar(registry, serviceManager), ]; // Register all handlers from each service registrar registrars.forEach(registrar => registrar.registerHandlers()); return registry; }

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/sellersmith/tailorkit-mcp'

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