Skip to main content
Glama

mcp-google-sheets

index.ts2.12 kB
import { createPiece, PieceAuth } from "@activepieces/pieces-framework"; import { makePhoneCall } from "./lib/actions/make-phone-call"; import { phoneCallEnded } from "./lib/triggers/phone-call-ended"; import { addLead } from "./lib/actions/add-lead"; import { sendSms } from "./lib/actions/send-sms"; import { inboundCall } from "./lib/triggers/inbound-call"; import { getAssistants } from "./lib/triggers/get-assistants"; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { campaignControl } from "./lib/actions/campaign-control"; import { deleteLead } from "./lib/actions/delete-lead"; export const baseApiUrl = 'https://app.autocalls.ai/'; export const autocallsAuth = PieceAuth.SecretText({ displayName: 'API Key', description: 'Create an API key in your Autocalls account and paste the value here. Get API key here -> https://app.autocalls.ai.', required: true, validate: async ({ auth }) => { try { const response = await httpClient.sendRequest({ method: HttpMethod.GET, url: baseApiUrl + 'api/user/me', headers: { 'Authorization': `Bearer ${auth}`, 'Content-Type': 'application/json', 'Accept': 'application/json' }, }); if (response.status === 200) { return { valid: true, }; } else { return { valid: false, error: 'Invalid API key or authentication failed' }; } } catch (error) { return { valid: false, error: 'Failed to validate API key. Please check your API key and try again.' }; } } }) export const autocalls = createPiece({ displayName: "Autocalls", auth:autocallsAuth, minimumSupportedRelease: '0.36.1', logoUrl: "https://cdn.activepieces.com/pieces/autocalls.png", description: "Automate phone calls using our AI calling platform.", authors: ['Zebi15'], actions: [addLead,sendSms,campaignControl,makePhoneCall,deleteLead], triggers: [phoneCallEnded,getAssistants,inboundCall], });

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