Skip to main content
Glama

mcp-google-sheets

trigger-event-utils.ts1.22 kB
import { pieceSelectorUtils } from '@/features/pieces/lib/piece-selector-utils'; import { TriggerBase, TriggerStrategy } from '@activepieces/pieces-framework'; import { TriggerTestStrategy } from '@activepieces/shared'; export type TestType = | 'mcp-tool' | 'chat-trigger' | 'simulation' | 'webhook' | 'polling'; export const triggerEventUtils = { getTestType: ({ triggerName, pieceName, trigger, }: { triggerName: string; pieceName: string; trigger: TriggerBase; }): TestType => { if (pieceSelectorUtils.isMcpToolTrigger(pieceName, triggerName)) { return 'mcp-tool'; } if (pieceSelectorUtils.isChatTrigger(pieceName, triggerName)) { return 'chat-trigger'; } if ( pieceName === '@activepieces/piece-webhook' && triggerName === 'catch_webhook' ) { return 'webhook'; } if ( trigger.type === TriggerStrategy.APP_WEBHOOK || trigger.type === TriggerStrategy.WEBHOOK ) { switch (trigger.testStrategy) { case TriggerTestStrategy.TEST_FUNCTION: return 'polling'; case TriggerTestStrategy.SIMULATION: return 'simulation'; } } return 'polling'; }, };

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