Documentation
¶
Index ¶
- type Manager
- func (m *Manager) BuildSummary() string
- func (m *Manager) CallTool(ctx context.Context, serverName, toolName string, args map[string]interface{}) (string, error)
- func (m *Manager) GetTools(ctx context.Context, serverName string) ([]*sdkmcp.Tool, error)
- func (m *Manager) ListServers() []ServerSummary
- func (m *Manager) ReadResource(ctx context.Context, serverName, uri string) (string, error)
- func (m *Manager) Stop()
- type ServerInstance
- type ServerSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the lifecycle of MCP servers.
func NewManager ¶
func NewManager(configs map[string]config.MCPServerConfig) *Manager
NewManager creates a new MCP Manager and starts the idle reaper.
func (*Manager) BuildSummary ¶
BuildSummary generates XML for the system prompt using config only (no process start).
func (*Manager) CallTool ¶
func (m *Manager) CallTool(ctx context.Context, serverName, toolName string, args map[string]interface{}) (string, error)
CallTool executes a tool on an MCP server.
func (*Manager) ListServers ¶
func (m *Manager) ListServers() []ServerSummary
ListServers returns server names and descriptions without starting processes.
func (*Manager) ReadResource ¶
ReadResource reads a resource from an MCP server by URI.
type ServerInstance ¶
type ServerInstance struct {
// contains filtered or unexported fields
}
ServerInstance manages a connected MCP server session.
type ServerSummary ¶
ServerSummary is a lightweight view of a server for listing. This is a Manager-specific type (not part of the MCP SDK).
Click to show internal directories.
Click to hide internal directories.