Skip to main content
Glama
registration.ts1.01 kB
import type { RegisteredAppStoreInfo, RegisteredGooglePlayInfo, } from "@/packages/configs/secrets-config/registered-apps"; type AppStoreAppInfo = { found: boolean; appId?: string; name?: string; supportedLocales?: string[]; }; type GooglePlayAppInfo = { found: boolean; name?: string; supportedLocales?: string[]; }; export function toRegisteredAppStoreInfo({ bundleId, appInfo, }: { bundleId: string; appInfo: AppStoreAppInfo; }): RegisteredAppStoreInfo | undefined { if (!appInfo.found) { return undefined; } return { bundleId, appId: appInfo.appId, name: appInfo.name, supportedLocales: appInfo.supportedLocales, }; } export function toRegisteredGooglePlayInfo({ packageName, appInfo, }: { packageName: string; appInfo: GooglePlayAppInfo; }): RegisteredGooglePlayInfo | undefined { if (!appInfo.found) { return undefined; } return { packageName, name: appInfo.name, supportedLocales: appInfo.supportedLocales, }; }

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/quartz-labs-dev/pabal-mcp'

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