Skip to main content
Glama

Activepieces MCP Server

by eldoonreval
flows.service.tsβ€’942 B
import { FlowsContext } 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(): Promise<SeekPage<PopulatedFlow>> { const response = await fetch(`${internalApiUrl}v1/engine/populated-flows`, { 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/eldoonreval/activepieces'

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