hub

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

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

func New

func New(cfg *config.Config, manager *backend.Manager, logger *slog.Logger) *Hub

func NewWithHTTPTools added in v1.2.0

func NewWithHTTPTools(cfg *config.Config, manager *backend.Manager, httpTools *httptool.Manager, logger *slog.Logger) *Hub

func (*Hub) Close

func (h *Hub) Close()

func (*Hub) HTTPToolScopes added in v1.2.0

func (h *Hub) HTTPToolScopes() []string

func (*Hub) MissingScopes

func (h *Hub) MissingScopes(backendID string, scopes []string) ([]string, bool)

func (*Hub) MissingToolScopes added in v1.1.0

func (h *Hub) MissingToolScopes(exposedName string, scopes []string) ([]string, bool)

func (*Hub) ReconcileBackend

func (h *Hub) ReconcileBackend(id string)

func (*Hub) ReconcileToolGroup added in v1.2.0

func (h *Hub) ReconcileToolGroup(id string)

func (*Hub) ReplaceHTTPTools added in v1.2.0

func (h *Hub) ReplaceHTTPTools(manager *httptool.Manager)

func (*Hub) ResourceUpdated

func (h *Hub) ResourceUpdated(backendID, originalURI string)

func (*Hub) ServerForRequest

func (h *Hub) ServerForRequest(req *http.Request) *mcp.Server

Jump to

Keyboard shortcuts

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