Skip to main content
Glama

Opik MCP Server

by comet-ml
logging.ts460 B
import fs from 'fs'; import { loadConfig } from './../config.js'; const config = loadConfig(); export const logFile = '/tmp/opik-mcp.log'; export function logToFile(message: string) { // Only log if debug mode is enabled if (!config?.debugMode) return; try { const timestamp = new Date().toISOString(); fs.appendFileSync(logFile, `[${timestamp}] ${message}\n`); } catch (error) { // Silently fail if we can't write to the log file } }

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/comet-ml/opik-mcp'

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