Documentation
¶
Index ¶
- Constants
- type Diagnostic
- type EventSink
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) Refresh(ctx context.Context, serverName string) error
- func (m *Manager) RegisterTools(registry *tools.Registry) error
- func (m *Manager) Snapshots() []Snapshot
- func (m *Manager) Start(ctx context.Context, configs []ServerConfig) error
- func (m *Manager) Tools() []tools.Tool
- type Options
- type ServerConfig
- type ServerStatus
- type Snapshot
- type ToolDescriptor
- type ToolSource
- type Transport
Constants ¶
View Source
const ProtocolVersion = "2025-06-18"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type EventSink ¶
type EventSink interface {
EmitMCP(Diagnostic)
}
type ServerConfig ¶
type ServerConfig struct {
Name string
Transport Transport
Command string
Args []string
CWD string
Env map[string]string
URL string
Headers map[string]string
BearerTokenEnvVar string
Enabled bool
Required bool
StartupTimeout time.Duration
ToolTimeout time.Duration
EnabledTools []string
DisabledTools []string
DefaultPermission tools.PermissionMode
}
type ServerStatus ¶
type ServerStatus string
const ( StatusDisabled ServerStatus = "disabled" StatusConnecting ServerStatus = "connecting" StatusReady ServerStatus = "ready" StatusFailed ServerStatus = "failed" )
type ToolDescriptor ¶
type ToolSource ¶
type ToolSource struct {
ServerName string
Instructions string
Status ServerStatus
Tools []ToolDescriptor
LastRefresh time.Time
}
Click to show internal directories.
Click to hide internal directories.