Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalConfigPath ¶
GlobalConfigPath returns the path to the global config file.
func ProjectConfigPath ¶
ProjectConfigPath traverses upward from the current directory to find a project config file, stopping before the home directory or root.
Types ¶
type Config ¶
type Config struct {
MCP map[string]ServerConfig `json:"mcp"` // Map of server name to server config
}
Config is the root configuration structure.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a Config with default empty values.
func LoadEffective ¶
LoadEffective loads and merges global and project config.
type ServerConfig ¶
type ServerConfig struct {
Type TransportType `json:"type"` // Connection type: "stdio" or "http"
Command string `json:"command"` // Command for stdio transport
Args []string `json:"args"` // Arguments for stdio transport
Env map[string]string `json:"env"` // Environment variables for stdio transport
URL string `json:"url"` // URL for HTTP transport
Headers map[string]string `json:"headers"` // Headers for HTTP transport
}
ServerConfig defines the configuration for a single MCP server.
type TransportType ¶
type TransportType string
TransportType specifies the transport protocol for connecting to an MCP server.
const ( TransportStdio TransportType = "stdio" TransportHTTP TransportType = "http" )
Click to show internal directories.
Click to hide internal directories.