Skip to main content
Glama

mcp-google-sheets

flow.module.ts1.41 kB
import { Principal, PrincipalType, TestFlowRunRequestBody, WebsocketClientEvent, WebsocketServerEvent } from '@activepieces/shared' import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox' import { websocketService } from '../core/websockets.service' import { flowWorkerController } from '../workers/worker-controller' import { flowVersionController } from './flow/flow-version.controller' import { flowController } from './flow/flow.controller' import { flowRunService } from './flow-run/flow-run-service' import { sampleDataController } from './step-run/sample-data.controller' export const flowModule: FastifyPluginAsyncTypebox = async (app) => { await app.register(flowWorkerController, { prefix: '/v1/worker/flows' }) await app.register(flowVersionController, { prefix: '/v1/flows' }) await app.register(flowController, { prefix: '/v1/flows' }) await app.register(sampleDataController, { prefix: '/v1/sample-data' }) websocketService.addListener(PrincipalType.USER, WebsocketServerEvent.TEST_FLOW_RUN, (socket) => { return async (data: TestFlowRunRequestBody, principal: Principal) => { const flowRun = await flowRunService(app.log).test({ projectId: principal.projectId, flowVersionId: data.flowVersionId, }) socket.emit(WebsocketClientEvent.TEST_FLOW_RUN_STARTED, flowRun) } }) }

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