Skip to main content
Glama

mcp-google-sheets

mark-task-completed.action.ts768 B
import { assertNotNullOrUndefined } from '@activepieces/shared'; import { todoistAuth } from '../..'; import { createAction, Property } from '@activepieces/pieces-framework'; import { todoistRestClient } from '../common/client/rest-client'; export const todoistMarkTaskCompletedAction = createAction({ auth: todoistAuth, name: 'mark_task_completed', displayName: 'Mark Task as Completed', description: 'Marks a task as being completed.', props: { task_id: Property.ShortText({ displayName: 'Task ID', required: true, }), }, async run(context) { const token = context.auth.access_token; const { task_id } = context.propsValue; assertNotNullOrUndefined(token, 'token'); return await todoistRestClient.tasks.close({ token, task_id }); }, });

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