Documentation
¶
Index ¶
- type Client
- type Failure
- type Manager
- func (m *Manager) Close()
- func (m *Manager) Configure(ctx context.Context, servers map[string]config.MCPServer) []Failure
- func (m *Manager) Instructions() []string
- func (m *Manager) Login(ctx context.Context, name string) (*auth.Login, error)
- func (m *Manager) Logout(name string) error
- func (m *Manager) Status(ctx context.Context) []ServerStatus
- func (m *Manager) Tools(ctx context.Context) ([]agentcore.Tool, map[string]permission.Metadata)
- type ServerStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Instructions ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(onChange func()) *Manager
NewManager calls onChange, on the connection's goroutine, whenever a server's tool list changes.
func (*Manager) Configure ¶
Configure connects only servers that are new, changed or failed before; connected servers whose config is unchanged stay up. Calls must not overlap; the caller serializes them.
func (*Manager) Instructions ¶
func (*Manager) Login ¶
Login starts an OAuth login to the server name; the caller completes it with Wait and connects again.
func (*Manager) Logout ¶
Logout forgets the server's token and disconnects it, so the next Configure connects it again without one.
Click to show internal directories.
Click to hide internal directories.