Skip to main content
Glama
posthog.ts606 B
// @ts-check ///<reference path="../../global.d.ts" /> // Note: this function leaves you on a blank page, so you must call cy.visit() // afterwards, before continuing with your test. Cypress.Commands.add("sendPosthogEvent", (event: string, eventKey: string, eventData: string) => { const log = Cypress.log({ displayName: "SENDING POSTHOG EVENT", message: [`Event: ${event} / ${eventKey} : ${eventData}`], // @ts-ignore autoEnd: false, }); cy.window().then((win) => { ;(win as any).posthog?.capture(event, { eventKey: eventData }) }) log.end(); });

Latest Blog Posts

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/systeminit/si'

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