Skip to main content
Glama

mcp-google-sheets

auth.ts838 B
import { PieceAuth } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; export const pandadocAuth = PieceAuth.SecretText({ displayName: 'API Key', description: 'Your PandaDoc API key. Get it from the Developer Dashboard in your PandaDoc account.', required: true, validate: async ({ auth }) => { try { await httpClient.sendRequest({ method: HttpMethod.GET, url: 'https://api.pandadoc.com/public/v1/documents', headers: { Authorization: `API-Key ${auth}`, }, }); return { valid: true, }; } catch (error: any) { return { valid: false, error: `Authentication failed: ${ error?.response?.data?.detail || error.message }`, }; } }, });

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