auth

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticatedPromptHandlerFunc

func AuthenticatedPromptHandlerFunc(handler func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)) func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)

AuthenticatedPromptHandlerFunc wraps a prompt handler with authentication checking

func AuthenticationMiddleware

func AuthenticationMiddleware() server.ToolHandlerMiddleware

AuthenticationMiddleware returns a middleware function that checks for authentication errors before allowing tool operations to proceed

func ResourceAuthenticationMiddleware

func ResourceAuthenticationMiddleware() server.ResourceHandlerMiddleware

ResourceAuthenticationMiddleware returns a middleware function that checks for authentication errors before allowing resource operations to proceed

Types

This section is empty.

Jump to

Keyboard shortcuts

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