Versions in this module Expand all Collapse all v0 v0.14.0 Nov 8, 2026 Changes in this version + const DefaultCallTimeout + const DriftFix + const InstallDrifted + const InstallInPlace + const InstallNotInstalled + const ProbeHeader + func Ago(now, t time.Time) string + func DecodeTool(raw json.RawMessage) (mcp.Tool, error) + func DefaultEditor() func(string) error + func EditServer(ctx context.Context, opts EditOptions) error + func EndpointPath(server string) string + func EntryURL(port int, server string) string + func LoadClaudeServers(path string, exclude []string) (map[string]ServerConfig, error) + func LoadServerFile(path string) (map[string]ServerConfig, []string, error) + func LoadServers(path string) (map[string]ServerConfig, error) + func MergeServers(saved, fromClaude map[string]ServerConfig, keep ...string) map[string]ServerConfig + func NewServers(cat *Catalog, pool *Pool) map[string]*server.MCPServer + func ProbeServerDirect(ctx context.Context, cfg ServerConfig, timeout time.Duration, ...) ([]json.RawMessage, error) + func ReadPlistEnv(path string) (env map[string]string, found bool, err error) + func RefreshCatalog(ctx context.Context, cat *Catalog, start Starter, servers []string) map[string]error + func SaveServerFile(path string, servers map[string]ServerConfig, resolved []string) error + func SaveServers(path string, servers map[string]ServerConfig) error + func Serve(ctx context.Context, ln net.Listener, servers map[string]*server.MCPServer, ...) error + func SkippedTools(cat *Catalog) []string + func ToolsFingerprint(tools []json.RawMessage) string + type Agent struct + Args []string + Binary string + Env map[string]string + Label string + LogDir string + PlistPath string + Run func(name string, args ...string) ([]byte, error) + Sleep func(time.Duration) + UID int + func (a Agent) Install() error + func (a Agent) Kickstart() error + func (a Agent) Loaded() (bool, error) + func (a Agent) Plist() []byte + func (a Agent) Restart() error + func (a Agent) Uninstall() error + type Backend interface + CallTool func(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) + Close func() error + ListToolsRaw func(ctx context.Context) ([]json.RawMessage, error) + type Catalog struct + Servers map[string]CatalogEntry + func LoadCatalog(path string) (*Catalog, error) + func (c *Catalog) Only(keep func(server string) bool) *Catalog + func (c *Catalog) Save(path string) error + func (c *Catalog) Set(server string, tools []json.RawMessage, fetchedAt time.Time) + type CatalogEntry struct + FetchedAt time.Time + Tools []json.RawMessage + type CatalogUpdater struct + Current func(server string) (ServerConfig, bool) + func NewCatalogUpdater(cat *Catalog, path string) *CatalogUpdater + func (u *CatalogUpdater) Changes() <-chan struct{} + func (u *CatalogUpdater) Refresh(ctx context.Context, server string, b Backend) error + func (u *CatalogUpdater) Replace(cat *Catalog) + func (u *CatalogUpdater) Snapshot() *Catalog + func (u *CatalogUpdater) ToolCount(server string) int + type DaemonOptions struct + IdleTimeout time.Duration + Log io.Writer + ReapEvery time.Duration + Reload *ReloadOptions + Status *Monitor + type EditOptions struct + BaseEnv map[string]string + CatalogPath string + Editor func(path string) error + ManifestPath string + Out io.Writer + Port int + Probe func(ctx context.Context, cfg ServerConfig) ([]json.RawMessage, error) + Reload func() (ReloadResult, error) + Server string + ServersPath string + Timeout time.Duration + type FailureReason string + const ReasonExited + const ReasonNone + const ReasonStartFailed + const ReasonTimedOut + const ReasonTransportError + type InstallPlan struct + Listed []string + Move []string + Moved []string + Refresh []string + Remove []string + Skip []string + type InstallState struct + DaemonVersion string + Drifted []string + Moved []string + NotProxied []string + Removed []string + Skipped []string + State string + UpgradePending bool + type Installer struct + Agent Agent + BackupDir string + CatalogPath string + ClaudeConfig string + ManifestPath string + Now func() time.Time + Out io.Writer + Port int + Probe func(servers []string) (StatusReport, error) + Refresh func(catalogPath string, servers []string) map[string]error + Reload func() (ReloadResult, error) + ServersPath string + Sessions func() ([]string, error) + Settings string + Sleep func(time.Duration) + Status func() (StatusReport, error) + Unskip []string + Version string + Wait time.Duration + func (i Installer) DryRun(skip []string) (InstallPlan, error) + func (i Installer) Install(skip []string) (err error) + func (i Installer) InstallStatus() (InstallState, error) + func (i Installer) Plan(skip []string) (InstallPlan, error) + func (i Installer) PrintInstallStatus(st InstallState) + func (i Installer) PrintPlan(p InstallPlan) + func (i Installer) Restart() (StatusReport, error) + func (i Installer) Uninstall() error + func (i Installer) UpgradeText(daemon string) string + type LiveStarter struct + func NewLiveStarter(cfgs map[string]ServerConfig, resolved []string) *LiveStarter + func (l *LiveStarter) Set(cfgs map[string]ServerConfig, resolved []string) + func (l *LiveStarter) Start(ctx context.Context, server string) (Backend, error) + type Manifest struct + IdleTimeout string + Port int + Servers map[string]MovedEntry + Skipped []string + Version int + func LoadManifest(path string) (*Manifest, error) + type Monitor struct + PID int + Pool *Pool + Port int + Registered map[string]string + Servers []string + StartedAt time.Time + Tools func(server string) int + Version string + func (m *Monitor) Probe(ctx context.Context) StatusReport + func (m *Monitor) ProbeServers(ctx context.Context, names []string) StatusReport + func (m *Monitor) Report() StatusReport + type MovedEntry struct + Original string + Written string + type Pool struct + func NewPool(start Starter, opt PoolOptions) *Pool + func (p *Pool) Call(ctx context.Context, server, session string, req mcp.CallToolRequest) *mcp.CallToolResult + func (p *Pool) Close() + func (p *Pool) CloseServer(server string) + func (p *Pool) CloseSession(session string) + func (p *Pool) Lease(ctx context.Context, server string) (Backend, error) + func (p *Pool) Reap(idle time.Duration) int + func (p *Pool) RetireServer(server string) (closeRetired func()) + func (p *Pool) SessionBusy(session string) bool + func (p *Pool) Status(servers []string) []ServerStatus + type PoolOptions struct + CallTimeout time.Duration + ListTimeout time.Duration + Now func() time.Time + OnStart func(server string, b Backend) + PerSession map[string]bool + StartTimeout time.Duration + type ReloadOptions struct + Apply func(ServerSet) + Changes <-chan struct{} + Current ServerSet + Load func() (ServerSet, error) + type ReloadResult struct + Added []string + Changed []string + Removed []string + func ReloadDaemon(port int) (ReloadResult, error) + type RequestError struct + Code int + Err error + func (e *RequestError) Error() string + func (e *RequestError) Unwrap() error + type ServerConfig struct + Args []string + Command string + Env map[string]string + type ServerReport struct + Endpoint bool + ProbeError string + Registered string + Tools int + type ServerSet struct + Catalog *Catalog + Configs map[string]ServerConfig + Resolved []string + type ServerState string + const StateFailed + const StateIdleStopped + const StateNotStarted + const StateRunning + const StateStarting + type ServerStatus struct + Calls int + Failures int + Instances int + LastCall time.Time + LastError string + LastErrorAt time.Time + PID int + Reason FailureReason + Server string + StartedAt time.Time + State ServerState + StderrTail []string + type Starter func(ctx context.Context, server string) (Backend, error) + func StdioStarter(cfgs map[string]ServerConfig, resolved ...string) Starter + type StatusReport struct + PID int + Port int + Running bool + Servers []ServerReport + StartedAt time.Time + Version string