Skip to main content
Glama

mcp-google-sheets

client.ts1.1 kB
import { HttpMethod, QueryParams, httpClient } from '@activepieces/pieces-common'; export const BASE_URL = `https://api.ninox.com/v1`; export async function makeRequest<T>( api_key: string, method: HttpMethod, path: string, body?: unknown, headers?: Record<string, string> | string, ) { try { let mergedHeaders: Record<string, string> = { 'Authorization': `Bearer ${api_key}`, 'Content-Type': 'application/json', }; if (typeof headers === 'string') { mergedHeaders['Content-Type'] = headers; } else if (typeof headers === 'object' && headers !== null) { mergedHeaders = { ...mergedHeaders, ...headers, }; } const response = await httpClient.sendRequest<T>({ method, url: `${BASE_URL}${path}`, headers: mergedHeaders, body, }); return response.body; } catch (error: any) { throw new Error(`Unexpected error: ${error.message || String(error)}`); } }

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