Skip to main content
Glama

Integration App MCP Server

Official
by membranehq
fetch-with-pagination.ts374 B
export async function fetchAllWithPagination<T>( fetchFn: (params: { cursor?: string }) => Promise<{ items: T[]; cursor?: string }> ): Promise<T[]> { const allItems: T[] = []; let cursor: string | undefined; do { const result = await fetchFn({ cursor }); allItems.push(...result.items); cursor = result.cursor; } while (cursor); return allItems; }

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/membranehq/mcp-server'

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