Skip to main content
Glama

mcp-google-sheets

flows.service.ts1.21 kB
import { FlowsContext, ListFlowsContextParams } from '@activepieces/pieces-framework' import { PopulatedFlow, SeekPage } from '@activepieces/shared' type CreateFlowsServiceParams = { engineToken: string internalApiUrl: string flowId: string flowVersionId: string } export const createFlowsContext = ({ engineToken, internalApiUrl, flowId, flowVersionId }: CreateFlowsServiceParams): FlowsContext => { return { async list(params: ListFlowsContextParams): Promise<SeekPage<PopulatedFlow>> { const queryParams = new URLSearchParams() if (params?.externalIds) { queryParams.set('externalIds', params.externalIds.join(',')) } const response = await fetch(`${internalApiUrl}v1/engine/populated-flows?${queryParams.toString()}`, { method: 'GET', headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${engineToken}`, }, }) return response.json() }, current: { id: flowId, version: { id: flowVersionId, }, }, } }

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