Skip to main content
Glama

mcp-google-sheets

find-task.ts931 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { microsoft365PlannerAuth, microsoft365PlannerCommon } from '../common'; import { PlanDropdown } from '../common/properties'; export const findTask = createAction({ auth: microsoft365PlannerAuth, name: 'findTask', displayName: 'Find Task', description: 'Find task by fields.', props: { planId: PlanDropdown({ required: true }), title: Property.ShortText({ displayName: 'Title', description: 'The title of the task to search for', required: true, }), }, async run({ auth, propsValue: { title, planId } }) { if (!planId) { throw new Error('Plan ID is required to fetch tasks.'); } const tasks = await microsoft365PlannerCommon.listTasks({ auth, planId }); return tasks.filter( (task) => task.title && task.title.toLowerCase().includes(title.toLowerCase()) ); }, });

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