Skip to main content
Glama

mcp-google-sheets

auth.ts1.01 kB
import { AuthenticationType, httpClient, HttpMethod, } from '@activepieces/pieces-common'; import { PieceAuth } from '@activepieces/pieces-framework'; const markdownDescription = ` Follow these instructions to get your CometAPI Key: 1. Visit the CometAPI Dashboard: https://api.cometapi.com/console/token 2. Go to the API settings page to get your key. 3. Copy the key and paste it below. `; export const BASE_URL = 'https://api.cometapi.com/v1'; export const cometApiAuth = PieceAuth.SecretText({ description: markdownDescription, displayName: 'API Key', required: true, validate: async ({ auth }) => { try { await httpClient.sendRequest({ url: BASE_URL + '/models', authentication: { type: AuthenticationType.BEARER_TOKEN, token: auth as string, }, method: HttpMethod.GET, }); return { valid: true }; } catch { return { valid: false, error: 'Invalid API Key.', }; } }, });

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