get_version
Retrieve version details of the Apache Airflow deployment through the MCP server to verify API compatibility and deployment status.
Instructions
Get version information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/airflow/monitoring.py:28-33 (handler)The async handler function that implements the core logic of the 'get_version' tool. It fetches version information from the Airflow MonitoringApi and returns it formatted as MCP TextContent.async def get_version() -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Get version information about Airflow. """ response = monitoring_api.get_version() return [types.TextContent(type="text", text=str(response.to_dict()))]
- src/airflow/monitoring.py:11-16 (registration)The get_all_functions() in this module returns a tuple for 'get_version' (function, name, description, read_only), which is imported and used in src/main.py to register the tool with the MCP server via app.add_tool().def get_all_functions() -> list[tuple[Callable, str, str, bool]]: """Return list of (function, name, description, is_read_only) tuples for registration.""" return [ (get_health, "get_health", "Get instance status", True), (get_version, "get_version", "Get version information", True), ]