Documentation
¶
Index ¶
- type Config
- type ElicitFunc
- type Manager
- func (m *Manager) AddServer(ctx context.Context, name string, server ServerConfig) error
- func (m *Manager) AddSession(name string, session *mcp.ClientSession)
- func (m *Manager) Close()
- func (m *Manager) Connect(ctx context.Context) error
- func (m *Manager) Sessions() map[string]*mcp.ClientSession
- func (m *Manager) SetElicit(fn ElicitFunc)
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Servers map[string]ServerConfig `json:"mcpServers"`
}
type ElicitFunc ¶ added in v0.10.1
type ElicitFunc func(ctx context.Context, req tool.ElicitRequest) (tool.ElicitResult, error)
type Manager ¶
func NewManager ¶
func (*Manager) AddSession ¶
func (m *Manager) AddSession(name string, session *mcp.ClientSession)
func (*Manager) SetElicit ¶ added in v0.10.1
func (m *Manager) SetElicit(fn ElicitFunc)
SetElicit routes elicitation/create requests from connected MCP servers to the given UI surface. A nil handler declines all requests.
Click to show internal directories.
Click to hide internal directories.