Skip to main content
Glama
index.ts1.11 kB
import { createPiece } from '@activepieces/pieces-framework'; import { ChatAidAuth } from './lib/common/auth'; import { addCustomSources } from './lib/actions/add-custom-sources'; import { askQuestions } from './lib/actions/ask-questions'; import { getCustomSourceById } from './lib/actions/get-custom-source-by-id'; import { PieceCategory } from '@activepieces/shared'; import { createCustomApiCallAction } from '@activepieces/pieces-common'; import { BASE_URL } from './lib/common/client'; export const chatAid = createPiece({ displayName: 'Chat Aid', description: 'AI-powered assistant for your knowledge base.', auth: ChatAidAuth, minimumSupportedRelease: '0.36.1', logoUrl: 'https://cdn.activepieces.com/pieces/chat-aid.png', categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE], authors: ['sanket-a11y'], actions: [ addCustomSources, askQuestions, getCustomSourceById, createCustomApiCallAction({ baseUrl: () => BASE_URL, auth: ChatAidAuth, authMapping: async (auth) => ({ Authorization: `${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