Documentation
¶
Index ¶
- type Catalog
- func (c *Catalog) AllTools() []types.ToolEntry
- func (c *Catalog) GetTool(prefixedName string) (*types.ToolEntry, error)
- func (c *Catalog) Load() error
- func (c *Catalog) RefreshAll(ctx context.Context) error
- func (c *Catalog) ServerNames() []string
- func (c *Catalog) ServerTools(serverName string) []types.ToolEntry
- func (c *Catalog) ToolCount() int
- type ToolLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog manages the aggregated tool catalog from all upstream servers.
func (*Catalog) Load ¶
Load reads the catalog from the disk cache. If the cache doesn't exist or is invalid, the catalog starts empty (no error).
func (*Catalog) RefreshAll ¶
RefreshAll fetches tools from all upstream servers via the ToolLister, updates the in-memory catalog, and saves to disk cache.
func (*Catalog) ServerNames ¶
ServerNames returns sorted list of server names that have tools.
func (*Catalog) ServerTools ¶
ServerTools returns all tools for a given server.
Click to show internal directories.
Click to hide internal directories.