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
import type { StoreType } from "./types";
export type StoreTargets = {
/** Normalized store value (defaults to "both") */
store: StoreType;
includeAppStore: boolean;
includeGooglePlay: boolean;
};
/**
* Normalize store selection and expose booleans for per-store handling.
*/
export function getStoreTargets(store?: StoreType): StoreTargets {
const normalizedStore: StoreType = store ?? "both";
return {
store: normalizedStore,
includeAppStore:
normalizedStore === "appStore" || normalizedStore === "both",
includeGooglePlay:
normalizedStore === "googlePlay" || normalizedStore === "both",
};
}