Skip to main content
Glama

mcp-google-sheets

index.ts1.17 kB
import { getAccessTokenOrThrow } from '@activepieces/pieces-common'; import { OAuth2PropertyValue, Property } from '@activepieces/pieces-framework'; import { GitlabApi } from './client'; export const gitlabCommon = { projectId: (required = true) => Property.Dropdown({ displayName: 'Project', required, refreshers: [], options: async ({ auth }) => { if (!auth) { return { disabled: true, placeholder: 'Setup authentication first', options: [], }; } const client = makeClient({ auth: auth as OAuth2PropertyValue, }); const res = await client.listProjects({ simple: true, membership: true, }); return { disabled: false, options: res.map((project) => { return { label: project.name, value: project.id, }; }), }; }, }), }; export function makeClient(propsValue: { auth: OAuth2PropertyValue; }): GitlabApi { const token = getAccessTokenOrThrow(propsValue.auth); return new GitlabApi(token); }

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