We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/containers/kubernetes-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
package metrics
import (
"context"
"time"
)
// Collector defines the interface for collecting metrics from various sources.
// Implementations can export metrics to different backends (OTel, Prometheus, in-memory stats, etc.).
type Collector interface {
// RecordToolCall records metrics for an MCP tool call execution.
RecordToolCall(ctx context.Context, name string, duration time.Duration, err error)
// RecordHTTPRequest records metrics for an HTTP request.
RecordHTTPRequest(ctx context.Context, method, path string, statusCode int, duration time.Duration)
}