Skip to main content
Glama

mcp-google-sheets

common.ts874 B
import { client } from '@datadog/datadog-api-client'; export type DatadogAuthType = { apiKey: string; appKey: string | undefined; site: string; }; export const getDatadogConfiguration = (auth: DatadogAuthType) => { const configuration = client.createConfiguration( {authMethods: { apiKeyAuth: auth.apiKey, ...(auth.appKey ? {appKeyAuth: auth.appKey} : {}), }} ); configuration.setServerVariables({ site: auth.site }); return configuration; } export const constructDatadogBaseUrl = (auth: DatadogAuthType, subdomain = 'api', version = 'v2') => { return `https://${subdomain}.${auth.site}/api/${version}`; }; export const constructDatadogBaseHeaders = (auth: DatadogAuthType) => { return { 'Accept': 'application/json', 'DD-API-KEY': auth.apiKey, ...(auth.appKey ? {'DD-APPLICATION-KEY': auth.appKey} : {}), }; };

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