Skip to main content
Glama

mcp-google-sheets

index.ts1.74 kB
import { createCustomApiCallAction } from '@activepieces/pieces-common'; import { PieceAuth, Property, createPiece, } from '@activepieces/pieces-framework'; import { PieceCategory } from '@activepieces/shared'; import { sendNotification } from './lib/actions/send-notification'; export const ntfyAuth = PieceAuth.CustomAuth({ description: ` To obtain a token: 1. Log in to your Ntfy instance. 2. Click on Account 3. Go under, on Access tokens and click on the button icon to copy your Token or CREATE ACCESS TOKEN if you do not have 4. Please pay attention to the expiration time when copying/creating a Token. 4. Copy your access token & and paste them into the fields below. `, props: { base_url: Property.ShortText({ displayName: 'Server URL', description: 'Ntfy Instance URL', required: true, }), access_token: PieceAuth.SecretText({ displayName: 'Access Token', description: 'Ntfy Access Token', required: false, }), }, required: true, }); export const ntfy = createPiece({ displayName: 'ntfy', description: 'Notification management made easy', logoUrl: 'https://cdn.activepieces.com/pieces/ntfy.png', minimumSupportedRelease: '0.30.0', categories: [PieceCategory.COMMUNICATION], auth: ntfyAuth, authors: ["MyWay","facferreira","la3rence","kishanprmr","MoShizzle","khaledmashaly","abuaboud"], actions: [ sendNotification, createCustomApiCallAction({ baseUrl: (auth) => (auth as { base_url: string }).base_url, auth: ntfyAuth, authMapping: async (auth) => ({ Authorization: `Bearer ${ (auth as { access_token: string }).access_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