mcpcatalog

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 33 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) DeleteUnauthorizedMCPServerInstancesForCatalog added in v0.12.0

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

DeleteUnauthorizedMCPServerInstancesForCatalog 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) DeleteUnauthorizedMCPServerInstancesForWorkspace added in v0.12.0

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

DeleteUnauthorizedMCPServerInstancesForWorkspace 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) DeleteUnauthorizedMCPServersForCatalog added in v0.12.0

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

DeleteUnauthorizedMCPServersForCatalog is a handler that deletes MCP servers that are no longer authorized to exist for the given catalog. 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) DeleteUnauthorizedMCPServersForWorkspace added in v0.12.0

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

DeleteUnauthorizedMCPServersForWorkspace is a handler that deletes MCP servers that are no longer authorized to exist for the given workspace. 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) HandleUserGroupChange added in v0.15.0

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

HandleUserGroupChange is triggered when a user loses one or more group memberships. It checks all of the user's MCPServers and MCPServerInstances to ensure they are still authorized. Any servers or instances that are no longer authorized (because the user lost group access) are deleted.

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