mcpgateway

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: Apache-2.0 Imports: 33 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}

type Handler

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

func NewHandler

func NewHandler(tokenService *jwt.TokenService, storageClient kclient.Client, mcpSessionManager *mcp.SessionManager, webhookHelper *mcp.WebhookHelper, globalTokenStore mcp.GlobalTokenStore, gatewayClient *gateway.Client, baseURL string) *Handler

func (*Handler) StreamableHTTP

func (h *Handler) StreamableHTTP(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