Skip to main content
Glama

mcp-google-sheets

index.ts1.08 kB
import { Property } from '@activepieces/pieces-framework'; import { getFields } from './helper'; import { httpClient, HttpMethod, HttpRequest, } from '@activepieces/pieces-common'; export const mauticCommon = { contactFields: { ...getFields('contact'), ...getFields('lead') }, companyFields: getFields('company'), id: Property.ShortText({ displayName: 'Id of the entity', required: true, }), }; export const searchEntity = async ( url: string, searchParams: string, username: string, password: string ) => { const request: HttpRequest = { method: HttpMethod.GET, url: `${url}${searchParams}`, headers: { Authorization: `Basic ${Buffer.from(`${username}:${password}`).toString( 'base64' )}`, 'Content-Type': 'application/json', }, }; const response: Record<string, any> = await httpClient.sendRequest(request); const length = response.body.total; if (!length || length != 1) throw Error( 'The query is not perfect enough to get single result. Please refine' ); return response; };

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