Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapRegistry ¶
type MapRegistry struct {
// contains filtered or unexported fields
}
MapRegistry is an in-memory MCP registry.
func New ¶
func New(initial map[string]agentconfig.MCPServerConfig) *MapRegistry
New creates an in-memory MCP registry initialized from initial values.
func (*MapRegistry) Delete ¶
func (r *MapRegistry) Delete(id string)
Delete removes the MCP server config for id.
func (*MapRegistry) Get ¶
func (r *MapRegistry) Get(id string) (agentconfig.MCPServerConfig, bool)
Get returns the MCP server config for id.
func (*MapRegistry) Set ¶
func (r *MapRegistry) Set(id string, cfg agentconfig.MCPServerConfig)
Set stores or replaces the MCP server config for id.
type Reader ¶
type Reader interface {
Get(id string) (agentconfig.MCPServerConfig, bool)
}
Reader looks up MCP server configuration by ID.
type Writer ¶
type Writer interface {
Set(id string, cfg agentconfig.MCPServerConfig)
Delete(id string)
}
Writer stores MCP server configuration by ID.
Click to show internal directories.
Click to hide internal directories.