Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Servers map[string]*ServerConfig `yaml:"servers"`
}
Config holds the full mcpx configuration.
func Load ¶
Load reads the global (~/.mcpx/config.yml) and project (.mcpx/config.yml) configs, merges them, and validates the result. Returns the merged config, the project root (empty if no project config), and any error.
type ServerConfig ¶
type ServerConfig struct {
Command string `yaml:"command"`
Args []string `yaml:"args"`
Transport string `yaml:"transport"`
Env map[string]string `yaml:"env"`
Daemon bool `yaml:"daemon"`
StartupTimeout string `yaml:"startup_timeout"`
URL string `yaml:"url"`
}
ServerConfig describes a single MCP server.
Click to show internal directories.
Click to hide internal directories.