Skip to main content
Glama
logger.go669 B
package util import ( "log" ) // Logger defines a minimal logging interface type Logger interface { Infof(format string, v ...any) Errorf(format string, v ...any) } // --- Standard Library Logger Wrapper --- // DefaultStdLogger implements Logger using the standard library's log.Logger. func DefaultLogger() Logger { return &stdLogger{ logger: log.Default(), } } // stdLogger wraps the standard library's log.Logger. type stdLogger struct { logger *log.Logger } func (l *stdLogger) Infof(format string, v ...any) { l.logger.Printf("INFO: "+format, v...) } func (l *stdLogger) Errorf(format string, v ...any) { l.logger.Printf("ERROR: "+format, v...) }

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/mozillazg/kube-audit-mcp'

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