mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
2bd709db63
Bumps [github.com/mark3labs/mcp-go](https://github.com/mark3labs/mcp-go) from 0.37.0 to 0.43.0. - [Release notes](https://github.com/mark3labs/mcp-go/releases) - [Commits](https://github.com/mark3labs/mcp-go/compare/v0.37.0...v0.43.0) --- updated-dependencies: - dependency-name: github.com/mark3labs/mcp-go dependency-version: 0.43.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37 lines
1.5 KiB
Go
37 lines
1.5 KiB
Go
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")
|
|
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 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)
|
|
}
|