AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { createTask } from './lib/actions/create-task';
import { updateTask } from './lib/actions/update-task';
import { createProject } from './lib/actions/create-project';
import { getTask } from './lib/actions/get-task';
import { taskCreated } from './lib/triggers/task-created';
import { moveTask } from './lib/actions/move-task';
import { PieceCategory } from '@activepieces/pieces-framework';
import { findTask } from './lib/actions/find-task';
import {
createCustomApiCallAction,
httpClient,
HttpMethod,
} from '@activepieces/pieces-common';
import { BASE_URL } from './lib/common/props';
import { motionAuth } from './lib/auth';
export const motion = createPiece({
displayName: 'Motion',
logoUrl: 'https://cdn.activepieces.com/pieces/motion.png',
categories: [PieceCategory.PRODUCTIVITY],
auth: motionAuth,
authors: ['Sanket6652', 'kishanprmr'],
actions: [
createTask,
updateTask,
createProject,
getTask,
moveTask,
findTask,
createCustomApiCallAction({
auth: motionAuth,
baseUrl: () => BASE_URL,
authMapping: async (auth) => {
return {
'X-API-Key': auth.secret_text,
};
},
}),
],
triggers: [taskCreated],
});