Skip to main content
Glama

mcp-google-sheets

project-members-hooks.ts975 B
import { useQuery } from '@tanstack/react-query'; import { ProjectMemberWithUser } from '@activepieces/ee-shared'; import { authenticationSession } from '../../../lib/authentication-session'; import { projectMembersApi } from './project-members-api'; export const projectMembersHooks = { useProjectMembers: () => { const query = useQuery<ProjectMemberWithUser[]>({ queryKey: ['project-members'], queryFn: async () => { const projectId = authenticationSession.getProjectId(); if (projectId === null) { throw new Error('Project ID is null'); } const res = await projectMembersApi.list({ projectId: projectId, projectRoleId: undefined, cursor: undefined, limit: 100, }); return res.data; }, staleTime: Infinity, }); return { projectMembers: query.data, isLoading: query.isLoading, refetch: query.refetch, }; }, };

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/activepieces/activepieces'

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