mcpcatalog

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubRepoInfo

type GitHubRepoInfo struct {
	Size int `json:"size"` // Size in KB
}

GitHubRepoInfo represents the repository information from GitHub API

type Handler

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

func New

func New(defaultCatalogPath string, gatewayClient *gclient.Client, accessControlRuleHelper *accesscontrolrule.Helper) *Handler

func (*Handler) DeleteUnauthorizedMCPServerInstances

func (h *Handler) DeleteUnauthorizedMCPServerInstances(req router.Request, _ router.Response) error

DeleteUnauthorizedMCPServerInstances is a handler that deletes MCPServerInstances that point to multi-user MCPServers created by the admin, where the user who owns the MCPServerInstance is no longer authorized to use the MCPServer. This can happen whenever AccessControlRules change.

func (*Handler) DeleteUnauthorizedMCPServers

func (h *Handler) DeleteUnauthorizedMCPServers(req router.Request, _ router.Response) error

DeleteUnauthorizedMCPServers is a handler that deletes MCP servers that are no longer authorized to exist. This can happen whenever AccessControlRules change. It does not delete MCPServerInstances, since those have a delete ref to their MCPServer, and will be deleted automatically.

func (*Handler) SetUpDefaultMCPCatalog

func (h *Handler) SetUpDefaultMCPCatalog(ctx context.Context, c client.Client) error

func (*Handler) Sync

func (h *Handler) Sync(req router.Request, resp router.Response) error

Jump to

Keyboard shortcuts

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