Skip to main content
Glama

mcp-google-sheets

user-interaction-watcher.ts1 kB
import { apId, LATEST_JOB_DATA_SCHEMA_VERSION, UserInteractionJobDataWithoutWatchingInformation } from '@activepieces/shared' import { FastifyBaseLogger } from 'fastify' import { engineResponseWatcher } from './engine-response-watcher' import { jobQueue } from './queue/job-queue' import { JobType } from './queue/queue-manager' export const userInteractionWatcher = (log: FastifyBaseLogger) => ({ submitAndWaitForResponse: async <T>(request: UserInteractionJobDataWithoutWatchingInformation, requestId?: string): Promise<T> => { const id = requestId ?? apId() await jobQueue(log).add({ id, type: JobType.ONE_TIME, data: { ...request, requestId: id, webserverId: engineResponseWatcher(log).getServerId(), schemaVersion: LATEST_JOB_DATA_SCHEMA_VERSION, }, }) return engineResponseWatcher(log).oneTimeListener<T>(id, 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/activepieces/activepieces'

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