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 } from '@activepieces/pieces-framework';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { PieceCategory } from '@activepieces/pieces-framework';
import { umamiAuth, UmamiAuthValue, getAuthHeaders, getBaseUrl } from './lib/auth';
import { getWebsiteStats } from './lib/actions/get-website-stats';
import { getWebsiteMetrics } from './lib/actions/get-website-metrics';
import { getActiveVisitors } from './lib/actions/get-active-visitors';
import { getPageviews } from './lib/actions/get-pageviews';
import { sendEvent } from './lib/actions/send-event';
import { listWebsites } from './lib/actions/list-websites';
import { newEvent } from './lib/triggers/new-event';
import { newSession } from './lib/triggers/new-session';
export const umami = createPiece({
displayName: 'Umami',
description: 'Privacy-focused, open-source web analytics.',
minimumSupportedRelease: '0.86.0',
logoUrl: 'https://cdn.activepieces.com/pieces/umami.png',
categories: [PieceCategory.BUSINESS_INTELLIGENCE],
auth: umamiAuth,
authors: ['bst1n'],
actions: [
getWebsiteStats,
getWebsiteMetrics,
getActiveVisitors,
getPageviews,
sendEvent,
listWebsites,
createCustomApiCallAction({
auth: umamiAuth,
baseUrl: (auth) => (auth ? getBaseUrl(auth as UmamiAuthValue) : 'https://api.umami.is/v1'),
authMapping: async (auth) => getAuthHeaders(auth as UmamiAuthValue),
}),
],
triggers: [newEvent, newSession],
});