Skip to main content
Glama

MPC Tally API Server

listDAOs.ts955 B
import { GraphQLClient } from 'graphql-request'; import { LIST_DAOS_QUERY } from './organizations.queries.js'; import { ListDAOsParams, OrganizationsInput, OrganizationsResponse } from './organizations.types.js'; export async function listDAOs( client: GraphQLClient, params: ListDAOsParams = {} ): Promise<OrganizationsResponse> { const input: OrganizationsInput = { sort: { sortBy: params.sortBy || "popular", isDescending: true }, page: { limit: Math.min(params.limit || 20, 50) } }; if (params.afterCursor) { input.page!.afterCursor = params.afterCursor; } if (params.beforeCursor) { input.page!.beforeCursor = params.beforeCursor; } try { const response = await client.request<OrganizationsResponse>(LIST_DAOS_QUERY, { input }); return response; } catch (error) { throw new Error(`Failed to fetch DAOs: ${error instanceof Error ? error.message : 'Unknown error'}`); } }

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/crazyrabbitLTC/mpc-tally-api-server'

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