Skip to main content
Glama
eldoonreval

Activepieces MCP Server

by eldoonreval
register-trigger.ts1.26 kB
import { TriggerStrategy, createTrigger, Property, } from '@activepieces/pieces-framework'; import { MoxieCRMEventType } from '.'; import { moxieCRMAuth } from '../../'; export const moxieCRMRegisterTrigger = ({ name, displayName, description, eventType, sampleData, }: { name: string; displayName: string; description: string; eventType: MoxieCRMEventType; sampleData: unknown; }) => createTrigger({ auth: moxieCRMAuth, name: `moxie_trigger_${name}`, displayName, description, props: { md: Property.MarkDown({ value: ` - Go to the **Workspace Settngs -> Connected Apps -> Integration** section. - Under **Custom Integration** , click on **Add Rest Hook**. - Click on **Integrations** section. - In the endpoint field, paste the following URL: \`\`\`text {{webhookUrl}} \`\`\` - Select the event as **\`${displayName}\`** and click on **Save**. `, }), }, type: TriggerStrategy.WEBHOOK, sampleData: sampleData, async onEnable(context) { // Empty }, async onDisable(context) { // Empty }, async run(context) { return [context.payload.body]; }, });

Latest Blog Posts

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/eldoonreval/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server