Skip to main content
Glama

TailorKit MCP

Official
by sellersmith
UserPreferencesService.ts1.76 kB
import { UserPreferencesResponse, GetUserPreferencesArgs, UpdateUserPreferencesArgs } from "../../../types/index.js"; import { TailorKitBaseClient } from "../../core/TailorKitBaseClient.js"; import { API_ENDPOINTS } from "../constants.js"; /** * Service for user preferences operations */ export class UserPreferencesService { private client: TailorKitBaseClient; /** * Create a new UserPreferencesService * @param client - The TailorKit base client */ constructor(client: TailorKitBaseClient) { this.client = client; } /** * Get user preferences * @param args - The arguments for fetching user preferences * @returns Promise with the user preferences data response */ async getUserPreferences<T>(args: GetUserPreferencesArgs): Promise<UserPreferencesResponse<T>> { try { const data = await this.client.post<GetUserPreferencesArgs, T>(API_ENDPOINTS.USER_PREFERENCES.GET_USER_PREFERENCES, args); return { data, error: null }; } catch (error) { return { data: null, error: error instanceof Error ? error : new Error(String(error)) }; } } /** * Update user preferences * @param args - The arguments for updating user preferences * @returns Promise with the updated user preferences response */ async updateUserPreferences<T>(args: UpdateUserPreferencesArgs): Promise<UserPreferencesResponse<T>> { try { // Implementation will be added when the API is available throw new Error("User preferences update not implemented yet"); } catch (error) { return { data: null, error: error instanceof Error ? error : new Error(String(error)) }; } } // User preferences specific methods will be added here }

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