Skip to main content
Glama

MCP-PIF Server

by hungryrobot1
export enum LogLevel { DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3 } export class Logger { private static globalLevel: LogLevel = LogLevel.INFO; private moduleName: string; constructor(moduleName: string) { this.moduleName = moduleName; } private log(level: LogLevel, message: string, ...args: any[]) { if (level >= Logger.globalLevel) { const timestamp = new Date().toISOString(); const levelStr = LogLevel[level]; console.error(`[${timestamp}] [${this.moduleName}] ${levelStr}: ${message}`, ...args); } } static setGlobalLevel(level: LogLevel) { Logger.globalLevel = level; } debug(message: string, ...args: any[]) { this.log(LogLevel.DEBUG, message, ...args); } info(message: string, ...args: any[]) { this.log(LogLevel.INFO, message, ...args); } warn(message: string, ...args: any[]) { this.log(LogLevel.WARN, message, ...args); } error(message: string, ...args: any[]) { this.log(LogLevel.ERROR, message, ...args); } }

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/hungryrobot1/MCP-PIF'

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