Skip to main content
Glama

get_version

Retrieve detailed version information for an Airflow instance, including its Airflow version, Git version, and build details, using the MCP-Airflow-API tool.

Instructions

[Tool Role]: Get version information of the Airflow instance.

Returns: Version information including Airflow version, Git version, and build info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'get_version' tool. It performs a GET request to the Airflow API '/version' endpoint and returns the version information as JSON.
    @mcp.tool() async def get_version() -> Dict[str, Any]: """[Tool Role]: Gets Airflow version information.""" resp = await airflow_request("GET", "/version") resp.raise_for_status() return resp.json()
  • Registration entry point for v1 tools, which sets the v1-specific airflow_request function and calls register_common_tools(mcp) to register the get_version tool among others.
    def register_tools(mcp): """Register v1 tools by importing common tools with v1 request function.""" logger.info("Initializing MCP server for Airflow API v1") logger.info("Loading Airflow API v1 tools (Airflow 2.x)") # Set the global request function to v1 common_tools.airflow_request = airflow_request_v1 # Register all 56 common tools (includes management tools) common_tools.register_common_tools(mcp) # V1 has no exclusive tools - all tools are shared with v2 logger.info("Registered all Airflow API v1 tools (56 tools: 43 core + 13 management tools)")
  • Registration entry point for v2 tools, which sets the v2-specific airflow_request function and calls register_common_tools(mcp) to register the get_version tool among others.
    def register_tools(mcp): """Register v2 tools: common tools + v2-exclusive asset tools.""" logger.info("Initializing MCP server for Airflow API v2") logger.info("Loading Airflow API v2 tools (Airflow 3.0+)") # Set the global request function to v2 common_tools.airflow_request = airflow_request_v2 # Register all 43 common tools common_tools.register_common_tools(mcp)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/call518/MCP-Airflow-API'

If you have feedback or need assistance with the MCP directory API, please join our Discord server