Skip to main content
Glama

mcp-google-sheets

index.ts1.33 kB
import { createPiece, PieceAuth, Property, } from '@activepieces/pieces-framework'; import { createCustomApiCallAction } from '@activepieces/pieces-common'; import { launchWorkflow } from './lib/actions/launch-workflow'; import { getJobResults } from './lib/actions/get-job-results'; export const CAPTAIN_DATA_BASE_URL = 'https://api.captaindata.co/v3'; export const captainDataAuth = PieceAuth.CustomAuth({ required: true, props: { apiKey: PieceAuth.SecretText({ displayName: 'API key', required: true, }), projectId: Property.ShortText({ displayName: 'Project ID', required: true, }), }, }); export type CaptainDataAuthType = { apiKey: string; projectId: string; }; export const captainData = createPiece({ displayName: 'Captain-data', auth: captainDataAuth, minimumSupportedRelease: '0.30.0', logoUrl: 'https://cdn.activepieces.com/pieces/captain-data.png', authors: ['AdamSelene'], actions: [ launchWorkflow, getJobResults, createCustomApiCallAction({ auth: captainDataAuth, baseUrl: () => CAPTAIN_DATA_BASE_URL, authMapping: async (auth) => ({ Authorization: `x-api-key ${(auth as CaptainDataAuthType).apiKey}`, 'x-project-id': (auth as CaptainDataAuthType).projectId, }), }), ], triggers: [], });

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