mcpgateway

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: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGlobalTokenStore

func NewGlobalTokenStore(gatewayClient *gateway.Client) mcp.GlobalTokenStore

Types

type AuditLogHandler

type AuditLogHandler struct{}

func NewAuditLogHandler

func NewAuditLogHandler() *AuditLogHandler

func (*AuditLogHandler) GetUsageStats

func (h *AuditLogHandler) GetUsageStats(req api.Context) error

GetUsageStats handles GET /api/mcp-stats and /api/mcp-stats/{mcp_id}

func (*AuditLogHandler) ListAuditLogFilterOptions

func (h *AuditLogHandler) ListAuditLogFilterOptions(req api.Context) error

func (*AuditLogHandler) ListAuditLogs

func (h *AuditLogHandler) ListAuditLogs(req api.Context) error

ListAuditLogs handles GET /api/mcp-audit-logs and /api/mcp-audit-logs/{mcp_id}

func (*AuditLogHandler) SubmitAuditLogs added in v0.15.0

func (h *AuditLogHandler) SubmitAuditLogs(req api.Context) error

SubmitAuditLogs handles POST /api/mcp-audit-logs This endpoint is not protected by authentication nor authorization. We have to do it in the handler.

type Handler

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

func NewHandler

func NewHandler(storageClient kclient.Client, mcpSessionManager *mcp.SessionManager, webhookHelper *mcp.WebhookHelper, jwks system.EncodedJWKS) *Handler

func (*Handler) Proxy added in v0.15.0

func (h *Handler) Proxy(req api.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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