Skip to main content
Glama

Google Ads MCP Server

by martechery
observability.ts651 B
import { MCPEvent } from '../types/observability.js'; function isEnabled(): boolean { const flag = (process.env.OBSERVABILITY_ENABLED || '').toLowerCase(); const level = (process.env.OBSERVABILITY || '').toLowerCase(); if (flag === 'false' || flag === '0' || level === 'off' || level === 'none') return false; return true; } export function emitMcpEvent(evt: MCPEvent): void { try { if (!isEnabled()) return; const line = JSON.stringify(evt); // eslint-disable-next-line no-console process.stderr.write(line + '\n'); } catch { // swallow } } export function nowIso(): string { return new Date().toISOString(); }

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/martechery/mcp-google-ads-ts'

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