util

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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"
	VERSION_20260728 = "2026-07-28"
)
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.

View Source
const LATEST_PROTOCOL_VERSION_NONSTABLE = VERSION_20260728

LATEST_PROTOCOL_VERSION_NONSTABLE is the latest version of the MCP protocol supported that includes non-stable version

Variables

SUPPORTED_PROTOCOL_VERSIONS is the MCP protocol versions that are supported.

View Source
var SUPPORTED_PROTOCOL_VERSIONS_NONSTABLE = []string{}

Functions

func GetLatestSupportedVersion added in v1.6.0

func GetLatestSupportedVersion(enableDraft bool) string

func GetSupportedVersions added in v1.6.0

func GetSupportedVersions(enableDraft bool) []string

func PopulateUrlParams added in v1.5.0

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

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