mcphost

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MCPConfig

type MCPConfig struct {
	MCPServers map[string]MCPServerConfig `json:"mcpServers"`
}

MCPConfig is the top-level .mcp.json structure.

type MCPServerConfig

type MCPServerConfig struct {
	Command string            `json:"command"`
	Args    []string          `json:"args"`
	Env     map[string]string `json:"env,omitempty"`
}

MCPServerConfig represents a single MCP server entry for .mcp.json.

type Manager

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

Manager manages MCP server configurations for Claude Code.

func New

func New(cfg *config.Config) *Manager

New creates a new MCP server manager.

func (*Manager) Cleanup

func (m *Manager) Cleanup(dir string)

Cleanup removes generated config files.

func (*Manager) EnabledServers

func (m *Manager) EnabledServers() []string

EnabledServers returns a list of enabled server names.

func (*Manager) GenerateMCPConfig

func (m *Manager) GenerateMCPConfig(dir string) (string, error)

GenerateMCPConfig creates the .mcp.json file for Claude Code.

Jump to

Keyboard shortcuts

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