Skip to main content
Glama

mcp-google-sheets

get-member-details.ts1.05 kB
import { createAction } from '@activepieces/pieces-framework'; import { BASE_URL, communityMemberIdDropdown } from '../common'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { circleAuth } from '../common/auth'; import { CommunityMemberDetails } from '../common/types'; export const getMemberDetails = createAction({ auth: circleAuth, name: 'get_member_details', displayName: 'Get Member Details', description: 'Fetches the full profile details for a specific community member.', props: { member_id: communityMemberIdDropdown, }, async run(context) { const { member_id } = context.propsValue; if (member_id === undefined) { throw new Error('Member ID is undefined, but it is a required field.'); } const response = await httpClient.sendRequest<CommunityMemberDetails>({ method: HttpMethod.GET, url: `${BASE_URL}/community_members/${member_id}`, headers: { Authorization: `Bearer ${context.auth}`, 'Content-Type': 'application/json', }, }); return response.body; }, });

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