Skip to main content
Glama

mcp-google-sheets

props.ts975 B
import { AuthenticationType, httpClient, HttpMethod, } from '@activepieces/pieces-common'; import { Property } from '@activepieces/pieces-framework'; import { BASE_URL } from './auth'; export const modelIdDropdown = Property.Dropdown({ displayName: 'Model', refreshers: [], required: true, options: async ({ auth }) => { if (!auth) { return { placeholder: 'Please connect your account first.', disabled: true, options: [], }; } const response = await httpClient.sendRequest<{ data: Array<{ id: string; owned_by: string }>; }>({ url: BASE_URL + '/models', authentication: { type: AuthenticationType.BEARER_TOKEN, token: auth as string, }, method: HttpMethod.GET, }); return { disabled: false, options: response.body.data.map((model) => ({ label: `${model.id} (${model.owned_by})`, value: model.id, })), }; }, });

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