Skip to main content
Glama

mcp-google-sheets

index.ts1.6 kB
import { createPiece, PieceAuth } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { addContact } from './lib/actions/add-contact'; import { deleteContacts } from './lib/actions/delete-contacts'; import { sendSms } from './lib/actions/send-sms'; import { sendMms } from './lib/actions/send-mms'; import { triggers } from './lib/triggers'; import { PieceCategory } from '@activepieces/shared'; export const krispcallAuth = PieceAuth.CustomAuth({ props: { apiKey: PieceAuth.SecretText({ displayName: 'API key', required: true, }), }, validate: async ({ auth }) => { try { await httpClient.sendRequest<string[]>({ method: HttpMethod.GET, url: 'https://app.krispcall.com/api/v3/platform/activepiece/me', headers: { 'X-API-KEY': auth.apiKey, }, }); return { valid: true }; } catch (error: any) { return { valid: false, error: error.message }; } }, required: true, }); export type krispcallAuth = { apiKey: string; }; export const KrispCall = createPiece({ displayName: 'KrispCall', description: 'KrispCall is a cloud telephony system for modern businesses, offering advanced features for high-growth startups and modern enterprises.', categories: [PieceCategory.COMMUNICATION], auth: krispcallAuth, minimumSupportedRelease: '0.30.0', logoUrl: 'https://cdn.activepieces.com/pieces/krispcall.svg', authors: ['deependra321'], actions: [addContact, deleteContacts, sendSms, sendMms], triggers: 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