util

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION_20241105 = "2024-11-05"
	VERSION_20250326 = "2025-03-26"
	VERSION_20250618 = "2025-06-18"
	VERSION_20251125 = "2025-11-25"
)
View Source
const LATEST_PROTOCOL_VERSION = VERSION_20251125

LATEST_PROTOCOL_VERSION is the latest version of the MCP protocol supported. Update the version used in InitializeResponse when this value is updated.

Variables

SUPPORTED_PROTOCOL_VERSIONS is the MCP protocol versions that are supported.

Functions

func PopulateUrlParams added in v1.5.0

func PopulateUrlParams(ctx context.Context, data map[string]any, toolParams parameters.Parameters) map[string]any

PopulateUrlParams injects bound URL query parameters into the data arguments and performs automatic type conversion for integer, boolean, and float parameters.

func ValidateScopes added in v1.4.0

func ValidateScopes(ctx context.Context, toolScopes []string, authServices map[string]auth.AuthService) error

ValidateScopes validates if the claims contain all required scopes for a tool call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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