Skip to main content
Glama
util.rs427 B
use anyhow::Result; use std::io; use tracing_subscriber::{fmt, EnvFilter}; pub fn init_logging(level: &str) -> Result<()> { let filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new(level)); // Write logs to stderr to avoid interfering with stdout protocols (e.g., MCP stdio). let _ = fmt() .with_env_filter(filter) .with_writer(io::stderr) .try_init(); Ok(()) }

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/bekirdag/docdex'

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