Skip to main content
Glama

mcp-google-sheets

flag.module.ts1.11 kB
import { ALL_PRINCIPAL_TYPES } from '@activepieces/shared' import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox' import { FastifyRequest } from 'fastify' import { flagService } from './flag.service' import { flagHooks } from './flags.hooks' export const flagModule: FastifyPluginAsyncTypebox = async (app) => { await app.register(flagController, { prefix: '/v1/flags' }) } export const flagController: FastifyPluginAsyncTypebox = async (app) => { app.get( '/', { config: { allowedPrincipals: ALL_PRINCIPAL_TYPES, }, logLevel: 'silent', }, async (request: FastifyRequest) => { const flags = await flagService.getAll() const flagsMap: Record<string, string | boolean | number | Record<string, unknown>> = flags.reduce( (map, flag) => ({ ...map, [flag.id as string]: flag.value }), {}, ) return flagHooks.get().modify({ flags: flagsMap, request, }) }, ) }

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