Skip to main content
Glama

mcp-google-sheets

every-hour.trigger.ts1.04 kB
import { TriggerStrategy } from '@activepieces/pieces-framework'; import { createTrigger, Property } from '@activepieces/pieces-framework'; export const everyHourTrigger = createTrigger({ name: 'every_hour', displayName: 'Every Hour', description: 'Triggers the current flow every hour', type: TriggerStrategy.POLLING, sampleData: {}, props: { run_on_weekends: Property.Checkbox({ displayName: 'Run on weekends (Sat,Sun)', required: true, defaultValue: false, }), }, onEnable: async (ctx) => { const cronExpression = ctx.propsValue.run_on_weekends ? `0 * * * *` : `0 * * * 1-5`; ctx.setSchedule({ cronExpression: cronExpression, timezone: 'UTC', }); }, run(ctx) { const cronExpression = ctx.propsValue.run_on_weekends ? `0 * * * *` : `0 * * * 1-5`; return Promise.resolve([ { cron_expression: cronExpression, timezone: 'UTC', }, ]); }, onDisable: async () => { console.log('onDisable'); }, });

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