Documentation
¶
Overview ¶
Package mcpserverstore manages the global registry of managed MCP server definitions for klausctl. Each server has a URL and an optional secret reference that is resolved at instance start time into a Bearer token header.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type McpServerDef ¶
McpServerDef describes a managed MCP server with a URL and optional secret reference used for authentication.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages named MCP server definitions persisted as a YAML file.
func Load ¶
Load reads the MCP server definitions from the given file path. If the file does not exist, an empty store is returned.
func (*Store) Add ¶
func (s *Store) Add(name string, def McpServerDef)
Add registers or updates a managed MCP server definition.
func (*Store) All ¶
func (s *Store) All() map[string]McpServerDef
All returns a copy of all server definitions keyed by name.
func (*Store) Get ¶
func (s *Store) Get(name string) (McpServerDef, error)
Get retrieves a server definition by name.