Documentation
¶
Index ¶
- Constants
- Variables
- func GetLatestSupportedVersion(enableDraft bool) string
- func GetSupportedVersions(enableDraft bool) []string
- func PopulateUrlParams(ctx context.Context, data map[string]any, toolParams parameters.Parameters) map[string]any
- func ValidateScopes(ctx context.Context, toolScopes []string, ...) error
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 ¶
View Source
var SUPPORTED_PROTOCOL_VERSIONS = []string{ VERSION_20241105, VERSION_20250326, VERSION_20250618, VERSION_20251125, VERSION_20260728, }
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 GetSupportedVersions ¶ added in v1.6.0
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.
Click to show internal directories.
Click to hide internal directories.