mcpservercatalogentry

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v0.17.0

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

Handler handles operations for MCP server catalog entries

func NewHandler added in v0.17.0

func NewHandler(gatewayClient *gclient.Client) *Handler

NewHandler creates a new Handler with the given gateway client.

func (*Handler) CleanupStaticConfiguration added in v0.26.2

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

CleanupStaticConfiguration deletes superseded revisions of an entry's static configuration when the entry's revision changes. Revisions still referenced by an MCPServer or vMCP snapshot are kept, because those keep their values until they are updated.

func (*Handler) DeleteEntriesWithoutRuntime added in v0.17.0

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

func (*Handler) EnsureUserCount added in v0.17.0

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

EnsureUserCount ensures that the user count for an MCP server catalog entry is up to date. For single-user entries, this counts unique users who have an MCPServer created from the entry. For multi-user entries, this sums the user count status from each MCPServer created from the entry.

func (*Handler) ReconcileOAuthCredential added in v0.26.0

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

ReconcileOAuthCredential keeps an entry's static OAuth credential and Status.OAuthCredentialConfigured in agreement, querying the credential store only when that status could be wrong.

The delete and the status update must stay in one handler. nah runs every handler for a type even after an earlier one errors, so as two handlers a failed delete did not stop the status being cleared, and a cleared status meant the entry was never queried again.

func (*Handler) RemoveCredentials added in v0.26.2

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

RemoveCredentials removes the credentials owned by a catalog entry when it is deleted.

func (*Handler) UpdateManifestHashAndLastUpdated added in v0.17.0

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

UpdateManifestHashAndLastUpdated updates the manifest hash and last updated timestamp when configuration changes

func (*Handler) UpdateSystemManifestHashAndLastUpdated added in v0.20.0

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

Jump to

Keyboard shortcuts

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