Skip to main content
Glama

mcp-google-sheets

common.ts745 B
import { PieceAuth, } from '@activepieces/pieces-framework'; export const ensCommon = { auth: PieceAuth.SecretText({ displayName: 'API Key', description: '*Get your api Key: https://thegraph.com/studio/apikeys', required: true, }), apiCall: async function ( url: string, method: string, data: object | undefined = undefined, token: string | undefined = undefined ) { const headers: Record<string, string> = { 'Content-Type': 'application/json', }; if (token) { headers['Authorization'] = `Bearer ${token}`; } const response = await fetch(url, { method, headers, body: data ? JSON.stringify(data) : undefined, }); return response.json(); }, };

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