Skip to main content
Glama
FreePeak

Multi Database MCP Server

logging.go423 B
package core import ( "io" "os" "strings" ) // IsLoggingDisabled checks if MCP logging should be disabled func IsLoggingDisabled() bool { val := os.Getenv("MCP_DISABLE_LOGGING") return strings.ToLower(val) == "true" || val == "1" } // GetLogWriter returns the appropriate writer for logging based on configuration func GetLogWriter() io.Writer { if IsLoggingDisabled() { return io.Discard } return os.Stderr }

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/FreePeak/db-mcp-server'

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