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 { createEvent } from './lib/actions/create-event';
import { newEventCreated } from './lib/triggers/new-event-created';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
export const logsnagAuth = PieceAuth.SecretText({
displayName: 'API Key',
required: true,
description: 'Your LogSnag API key specific to the project',
});
export const logsnag = createPiece({
displayName: 'LogSnag',
auth: logsnagAuth,
minimumSupportedRelease: '0.36.1',
logoUrl: 'https://cdn.activepieces.com/pieces/logsnag.png',
authors: [],
actions: [
createEvent,
createCustomApiCallAction({
auth: logsnagAuth,
baseUrl: () => 'https://api.logsnag.com/v1',
authMapping: async (auth) => {
return {
Authorization: `Bearer ${auth.secret_text}`,
};
},
}),
],
triggers: [newEventCreated],
});