Skip to main content
Glama
errors.go1.31 kB
package server import ( "errors" "fmt" ) var ( // Common server errors ErrUnsupported = errors.New("not supported") ErrResourceNotFound = errors.New("resource not found") ErrPromptNotFound = errors.New("prompt not found") ErrToolNotFound = errors.New("tool not found") // Session-related errors ErrSessionNotFound = errors.New("session not found") ErrSessionExists = errors.New("session already exists") ErrSessionNotInitialized = errors.New("session not properly initialized") ErrSessionDoesNotSupportTools = errors.New("session does not support per-session tools") ErrSessionDoesNotSupportLogging = errors.New("session does not support setting logging level") // Notification-related errors ErrNotificationNotInitialized = errors.New("notification channel not initialized") ErrNotificationChannelBlocked = errors.New("notification channel queue is full - client may not be processing notifications fast enough") ) // ErrDynamicPathConfig is returned when attempting to use static path methods with dynamic path configuration type ErrDynamicPathConfig struct { Method string } func (e *ErrDynamicPathConfig) Error() string { return fmt.Sprintf("%s cannot be used with WithDynamicBasePath. Use dynamic path logic in your router.", e.Method) }

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