Documentation
¶
Overview ¶
Package mcphost adapts CLI configuration, credentials, and local resources to the shared MCP runtime. Protocol and execution belong to core/mcp.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPOptionsFromConfig ¶
func HTTPOptionsFromConfig(c *config.MCPConfig) (mcpruntime.HTTPOptions, error)
HTTPOptionsFromConfig overlays explicit settings. Token loading and the default state directory are owned by the CLI composition root.
Types ¶
type Config ¶
type Config struct {
Provider config.ConfigProvider
Registry adapter.CredentialResolver
Logger corelog.DebugLogger
HTTP *mcpruntime.HTTPOptions
Recovery bool
}
Config selects the application services and transport settings for a runtime. HTTP and recovery freeze the inventory at startup; stdio resolves each call.
func (Config) RuntimeOptions ¶
func (cfg Config) RuntimeOptions() ([]mcpruntime.Option, error)
RuntimeOptions converts CLI settings into explicit core dependencies. It does not open a listener or start a runtime. The caller owns that lifecycle.