Skip to main content
Glama

Activepieces MCP Server

by eldoonreval
analytics.module.tsβ€’928 B
import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox' import { platformMustBeOwnedByCurrentUser, platformMustHaveFeatureEnabled } from '../authentication/ee-authorization' import { analyticsService } from './analytics.service' import { piecesAnalyticsService } from './pieces-analytics.service' export const analyticsModule: FastifyPluginAsyncTypebox = async (app) => { app.addHook('preHandler', platformMustBeOwnedByCurrentUser) app.addHook('preHandler', platformMustHaveFeatureEnabled((platform) => platform.plan.analyticsEnabled)) await piecesAnalyticsService(app.log).init() await app.register(analyticsController, { prefix: '/v1/analytics' }) } const analyticsController: FastifyPluginAsyncTypebox = async (app) => { app.get('/', async (request) => { const { platform } = request.principal return analyticsService(request.log).generateReport(platform.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/eldoonreval/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server