Source File
errors.go
Belonging Package
github.com/mark3labs/mcp-go/server
package serverimport ()var (// Common server errorsErrUnsupported = errors.New("not supported")ErrResourceNotFound = errors.New("resource not found")ErrPromptNotFound = errors.New("prompt not found")ErrToolNotFound = errors.New("tool not found")// Session-related errorsErrSessionNotFound = 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")ErrSessionDoesNotSupportResources = errors.New("session does not support per-session resources")ErrSessionDoesNotSupportResourceTemplates = errors.New("session does not support resource templates")ErrSessionDoesNotSupportLogging = errors.New("session does not support setting logging level")// Notification-related errorsErrNotificationNotInitialized = 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 configurationtype ErrDynamicPathConfig struct {Method string}func ( *ErrDynamicPathConfig) () string {return fmt.Sprintf("%s cannot be used with WithDynamicBasePath. Use dynamic path logic in your router.", .Method)}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |