Help us shape the future of Go! Take the 2026 Go Developer Survey

servercatalog

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CodexAppsServerName = "codex_apps"

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

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

func New

func New(cfg *config.Config, listTools ListToolsFunc) *Catalog

func (*Catalog) FilterTools

func (c *Catalog) FilterTools(route Route, tools []mcppool.ToolInfo) []mcppool.ToolInfo

func (*Catalog) Resolve

func (c *Catalog) Resolve(ctx context.Context, requested string) (Route, []mcppool.ToolInfo, bool, error)

func (*Catalog) ResolveForTool

func (c *Catalog) ResolveForTool(ctx context.Context, requested, tool string) (Route, bool, error)

func (*Catalog) ServerNames

func (c *Catalog) ServerNames(_ context.Context) ([]string, error)

func (*Catalog) ToolBelongsToRoute

func (c *Catalog) ToolBelongsToRoute(route Route, tool string) bool

func (*Catalog) ToolInfo

func (c *Catalog) ToolInfo(route Route, tools []mcppool.ToolInfo, requested string) (*mcppool.ToolInfo, bool)

type ListToolsFunc

type ListToolsFunc func(ctx context.Context, server string) ([]mcppool.ToolInfo, error)

type Route

type Route struct {
	Backend       string
	ConfigServer  string
	VirtualName   string
	VirtualPrefix string
}

func (Route) IsVirtual

func (r Route) IsVirtual() bool

Jump to

Keyboard shortcuts

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