client

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MCPServersKey = "mcpServers"

Variables

This section is empty.

Functions

This section is empty.

Types

type MCPServerConfig

type MCPServerConfig struct {
	Description string   `json:"description"`       // Description of the MCP Server
	IsActive    bool     `json:"isActive"`          // Is the MCP Server active
	Command     string   `json:"command,omitempty"` // Command to start the MCP Server, STDIO mode only
	Args        []string `json:"args,omitempty"`    // Arguments to pass to the command, STDIO mode only
	BaseURL     string   `json:"baseUrl,omitempty"` // Base URL of the MCP Server, SSE mode only
	TimeOut     uint16   `json:"timeout,omitempty"` // Timeout for the MCP Server, default is 300 seconds
	ServerName  string
}

MCPServerConfig represents the configuration for the MCP Client.

func NewMCPServerConfig

func NewMCPServerConfig(description string, command string, srvName string) MCPServerConfig

NewMCPServerConfig creates a new MCPServerConfig instance.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager manages the configuration of different clients.

func NewManager

func NewManager(lger zerolog.Logger, mcpConfig MCPServerConfig) (cm *Manager)

NewManager creates a new ClientManager instance.

func (*Manager) ListClient

func (c *Manager) ListClient()

ListClient lists all the clients and checks if they exist.

func (*Manager) SetupConfig

func (c *Manager) SetupConfig()

SetupConfig sets up the configuration for the clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL