Documentation ¶ Index ¶ type Config type Manager func Load(path string) (*Manager, error) func New(cfg *Config) *Manager func (m *Manager) Close() func (m *Manager) Connect(ctx context.Context) error func (m *Manager) Tools(ctx context.Context) ([]tool.Tool, error) 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 Manager ¶ type Manager struct { *Config // contains filtered or unexported fields } func Load ¶ func Load(path string) (*Manager, error) func New ¶ func New(cfg *Config) *Manager func (*Manager) Close ¶ func (m *Manager) Close() func (*Manager) Connect ¶ func (m *Manager) Connect(ctx context.Context) error func (*Manager) Tools ¶ func (m *Manager) Tools(ctx context.Context) ([]tool.Tool, error) type ServerConfig ¶ type ServerConfig struct { Transport string `json:"transport,omitempty"` URL string `json:"url,omitempty"` Command string `json:"command,omitempty"` Args []string `json:"args,omitempty"` Headers map[string]string `json:"headers,omitempty"` } Source Files ¶ View all Source files mcp.gomcp_config.gomcp_utils.go Click to show internal directories. Click to hide internal directories.