Skip to main content
Glama

mcp-google-sheets

index.ts1.73 kB
import { AuthenticationType, HttpMethod, createCustomApiCallAction, httpClient, } from '@activepieces/pieces-common'; import { PieceAuth, createPiece } from '@activepieces/pieces-framework'; import { PieceCategory } from '@activepieces/shared'; import { askGroq } from './lib/actions/ask-groq'; import { transcribeAudio } from './lib/actions/transcribe-audio'; import { translateAudio } from './lib/actions/translate-audio'; const baseUrl = 'https://api.groq.com/openai/v1'; export const groqAuth = PieceAuth.SecretText({ description: 'Enter your Groq API Key', displayName: 'API Key', required: true, validate: async (auth) => { try { await httpClient.sendRequest<{ data: { id: string }[]; }>({ url: `${baseUrl}/models`, method: HttpMethod.GET, authentication: { type: AuthenticationType.BEARER_TOKEN, token: auth.auth as string, }, }); return { valid: true, }; } catch (e) { return { valid: false, error: 'Invalid API key', }; } }, }); export const groq = createPiece({ displayName: 'Groq', description: 'Use Groq\'s fast language models and audio processing capabilities.', minimumSupportedRelease: '0.9.0', logoUrl: 'https://cdn.activepieces.com/pieces/groq.png', categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE], auth: groqAuth, actions: [ askGroq, transcribeAudio, translateAudio, createCustomApiCallAction({ auth: groqAuth, baseUrl: () => baseUrl, authMapping: async (auth) => { return { Authorization: `Bearer ${auth}`, }; }, }), ], authors: ['abuaboud'], 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