Skip to main content
Glama

TailorKit MCP

Official
by sellersmith
IntegrationService.ts3.48 kB
import { CommonToolArgs } from "../../../types/common.js"; import { TailorKitBaseClient } from "../../core/TailorKitBaseClient.js"; /** * Integration data response interface */ export interface IntegrationResponse<T> { data: T | null; error: Error | null; } /** * Integration request params */ export interface GetIntegrationsArgs extends CommonToolArgs { limit?: number; page?: number; } export interface GetIntegrationArgs extends CommonToolArgs { integrationId: string; } /** * Integration service for handling integration operations */ export class IntegrationService { private client: TailorKitBaseClient; /** * Create a new IntegrationService * @param client - The TailorKit base client */ constructor(client: TailorKitBaseClient) { this.client = client; } /** * Get list of integrations * @param args - The arguments for fetching integrations * @returns Promise with the integrations data response */ async getIntegrations<T>(args: GetIntegrationsArgs): Promise<IntegrationResponse<T>> { try { // Implementation will be added when the API is available throw new Error("Get integrations not implemented yet"); } catch (error) { return { data: null, error: error instanceof Error ? error : new Error(String(error)) }; } } /** * Get integration details * @param args - The arguments for fetching an integration * @returns Promise with the integration data response */ async getIntegrationDetails<T>(args: GetIntegrationArgs): Promise<IntegrationResponse<T>> { try { // Implementation will be added when the API is available throw new Error("Integration details not implemented yet"); } catch (error) { return { data: null, error: error instanceof Error ? error : new Error(String(error)) }; } } /** * Create a new integration * @param args - The arguments for creating an integration * @returns Promise with the created integration response */ async createIntegration<T>(args: any): Promise<IntegrationResponse<T>> { try { // Implementation will be added when the API is available throw new Error("Integration creation not implemented yet"); } catch (error) { return { data: null, error: error instanceof Error ? error : new Error(String(error)) }; } } /** * Update an integration * @param args - The arguments for updating an integration * @returns Promise with the updated integration response */ async updateIntegration<T>(args: any): Promise<IntegrationResponse<T>> { try { // Implementation will be added when the API is available throw new Error("Integration update not implemented yet"); } catch (error) { return { data: null, error: error instanceof Error ? error : new Error(String(error)) }; } } /** * Delete an integration * @param args - The arguments for deleting an integration * @returns Promise with the deletion result response */ async deleteIntegration<T>(args: GetIntegrationArgs): Promise<IntegrationResponse<T>> { try { // Implementation will be added when the API is available throw new Error("Integration deletion not implemented yet"); } catch (error) { return { data: null, error: error instanceof Error ? error : new Error(String(error)) }; } } }

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