Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions for MCP client operations.

Constants§

LOCAL_TIMEZONE_ENV_VAR
Environment variable for explicit local timezone override.
TIMEZONE_ARGUMENT
Argument name for timezone injection.
TZ_ENV_VAR
Standard TZ environment variable fallback.

Functions§

build_client_implementation
Build the standard Implementation struct for vtcode MCP client.
build_headers
Build HTTP headers from static and environment-based configuration.
detect_local_timezone
Detect the local timezone using environment variables or system detection.
ensure_timezone_argument
Ensure a timezone argument is present when required by the schema.
schema_requires_field
Check if a JSON schema requires a specific field.