handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package handler provides HTTP request handling for the MCP server.

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
}

Handler manages HTTP request handling and middleware configuration.

func NewHandler

func NewHandler(auth *auth.Service) *Handler

NewHandler creates a new HTTP handler.

func (*Handler) CreateHTTPHandler

func (h *Handler) CreateHTTPHandler(mcpHandler http.Handler) http.Handler

CreateHTTPHandler creates an HTTP handler with the appropriate middleware stack. If authentication is enabled, it adds authentication middleware to protected routes.

Jump to

Keyboard shortcuts

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