Skip to main content
Glama

Activepieces MCP Server

by eldoonreval
user-interaction-watcher.tsβ€’897 B
import { JobType, UserInteractionJobDataWithoutWatchingInformation } from '@activepieces/server-shared' import { apId } from '@activepieces/shared' import { FastifyBaseLogger } from 'fastify' import { engineResponseWatcher } from './engine-response-watcher' import { jobQueue } from './queue' export const userInteractionWatcher = (log: FastifyBaseLogger) => ({ submitAndWaitForResponse: async <T>(request: UserInteractionJobDataWithoutWatchingInformation): Promise<T> => { const requestId = apId() await jobQueue(log).add({ id: apId(), type: JobType.USERS_INTERACTION, data: { ...request, requestId, webserverId: engineResponseWatcher(log).getServerId(), }, }) return engineResponseWatcher(log).oneTimeListener<T>(requestId, false, undefined, undefined) }, })

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