mcpserver

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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

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

func New

func New(gptClient *gptscript.GPTScript, mcpSessionManager *mcp.SessionManager, baseURL string) *Handler

func (*Handler) CleanupNestedCompositeServers added in v0.15.0

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

CleanupNestedCompositeServers removes component servers with composite runtimes from composite MCP servers. This handler cleans up servers that were created before API validation to prevent nested composite servers.

func (*Handler) DeleteServersForAnonymousUser added in v0.15.0

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

func (*Handler) DeleteServersWithoutRuntime

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

func (*Handler) DetectDrift

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

func (*Handler) DetectK8sSettingsDrift added in v0.16.0

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

DetectK8sSettingsDrift detects when a server needs redeployment with new K8s settings Note: This handler only sets NeedsK8sUpdate based on K8sSettings hash drift. PSA compliance checking is handled separately in the deployment handler since it requires access to the actual Deployment object to inspect container security contexts.

func (*Handler) EnsureCompositeComponents added in v0.16.0

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

func (*Handler) EnsureMCPCatalogID added in v0.15.0

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

func (*Handler) EnsureMCPServerInstanceUserCount

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

EnsureMCPServerInstanceUserCount ensures that mcp server instance user count for multi-user MCP servers is up to date.

func (*Handler) EnsureMCPServerSecretInfo added in v0.15.0

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

func (*Handler) MigrateSharedWithinMCPCatalogName added in v0.11.0

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

func (*Handler) SyncOAuthCredentialStatus added in v0.17.0

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

SyncOAuthCredentialStatus syncs the OAuthCredentialConfigured status from the catalog entry. This replaces the push-based propagation logic with a pull-based approach where each MCP server is responsible for syncing its own status from its parent catalog entry.

Jump to

Keyboard shortcuts

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