Skip to main content
Glama

mcp-google-sheets

copilot.module.ts836 B
import { AskCopilotRequest, AskCopilotResponse, Principal, PrincipalType, WebsocketClientEvent, WebsocketServerEvent } from '@activepieces/shared' import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox' import { websocketService } from '../core/websockets.service' import { copilotService } from './copilot.service' export const copilotModule: FastifyPluginAsyncTypebox = async (fastify) => { websocketService.addListener(PrincipalType.USER, WebsocketServerEvent.ASK_COPILOT, (socket) => { return async (request: AskCopilotRequest, principal: Principal) => { const response: AskCopilotResponse | null = await copilotService(fastify.log).ask(principal.projectId, principal.platform.id, request) socket.emit(WebsocketClientEvent.ASK_COPILOT_FINISHED, response) } }) }

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