mcphost

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

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