Skip to main content
Glama

mcp-google-sheets

index.ts1.69 kB
import { createPiece, PieceAuth } from '@activepieces/pieces-framework'; import { webSearch, searchNews, generateImage, scrapeWebsite, crawlWebsite, extractDocument, } from './lib/actions'; import { PieceCategory } from '@activepieces/shared'; import { AuthenticationType, createCustomApiCallAction, httpClient, HttpMethod, } from '@activepieces/pieces-common'; export const dumplingAuth = PieceAuth.SecretText({ displayName: 'API Key', required: true, description: ` You can obtain API key from [API Section](https://app.dumplingai.com/api-keys).`, validate: async ({ auth }) => { try { await httpClient.sendRequest({ url: 'https://app.dumplingai.com/api/v1/search', method: HttpMethod.POST, authentication: { type: AuthenticationType.BEARER_TOKEN, token: auth, }, body: { query: 'Activepieces', }, }); return { valid: true, }; } catch (e) { return { valid: false, error: 'Invalid API Key.' }; } }, }); export const dumplingAi = createPiece({ displayName: 'Dumpling AI', description:'Transform unstructured website content into clean, AI-ready data', auth: dumplingAuth, minimumSupportedRelease: '0.36.1', logoUrl: 'https://cdn.activepieces.com/pieces/dumpling-ai.png', authors: ['neo773'], categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE, PieceCategory.PRODUCTIVITY], actions: [ webSearch, searchNews, generateImage, scrapeWebsite, crawlWebsite, extractDocument, createCustomApiCallAction({ baseUrl: () => 'https://app.dumplingai.com/api/v1', auth: dumplingAuth, authMapping: async (auth) => ({ Authorization: `Bearer ${auth}`, }), }), ], 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