Skip to main content
Glama

mcp-google-sheets

index.ts1.7 kB
import { createCustomApiCallAction } from '@activepieces/pieces-common'; import { PieceAuth, Property, createPiece, } from '@activepieces/pieces-framework'; import { PieceCategory } from '@activepieces/shared'; import { sendMessage } from './lib/actions/send-message'; const markdownDescription = ` **Workspace URL**: The url of mattermost instance (e.g \`https://activepieces.mattermost.com\`) **Bot Token**: Obtain it from settings > integrations > bot accounts > add bot account `; export const mattermostAuth = PieceAuth.CustomAuth({ description: markdownDescription, required: true, props: { workspace_url: Property.ShortText({ displayName: 'Workspace URL', description: 'The workspace URL of the Mattermost instance (e.g https://activepieces.mattermost.com)', required: true, }), token: Property.ShortText({ displayName: 'Bot Token', description: 'The bot token to use to authenticate', required: true, }), }, }); export const mattermost = createPiece({ displayName: 'Mattermost', description: 'Open-source, self-hosted Slack alternative', logoUrl: 'https://cdn.activepieces.com/pieces/mattermost.png', minimumSupportedRelease: '0.30.0', categories: [PieceCategory.COMMUNICATION], authors: ["kishanprmr","MoShizzle","khaledmashaly","abuaboud"], auth: mattermostAuth, actions: [ sendMessage, createCustomApiCallAction({ baseUrl: (auth) => (auth as { workspace_url: string }).workspace_url + '/api/v4', auth: mattermostAuth, authMapping: async (auth) => ({ Authorization: `Bearer ${(auth as { token: string }).token}`, }), }), ], 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