import { ProductDetailResponse } from "../schemas/detail.js";
import { publicApiClient } from "../utils/api/public.js";
/**
* Service for product operations
* Uses the PublicApiClient for API requests
*/
export class ProductService {
/**
* Get product details by ID
* @param id - Product ID
* @returns ProductDetailResponse with complete product details
* @throws Error if the API request fails
*/
public static async getProductDetails(
id: string
): Promise<ProductDetailResponse> {
return publicApiClient.getProductDetails(id);
}
}
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/bitrefill/bitrefill-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server