Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

get_value

Retrieve specific configuration options from Apache Airflow using section and option parameters to simplify system setup and customization.

Instructions

Get a specific option from configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionYes
sectionYes

Implementation Reference

  • The async handler function implementing the 'get_value' MCP tool. It calls the Airflow ConfigApi to retrieve a specific configuration value and returns it as text content.
    async def get_value( section: str, option: str ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: response = config_api.get_value(section=section, option=option) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • The get_all_functions() that registers the 'get_value' tool by including it in the list of tools with name, description, and read-only flag. This list is used by main.py to add the tools.
    def get_all_functions() -> list[tuple[Callable, str, str, bool]]: """Return list of (function, name, description, is_read_only) tuples for registration.""" return [ (get_config, "get_config", "Get current configuration", True), (get_value, "get_value", "Get a specific option from configuration", True), ]
  • src/main.py:95-97 (registration)
    The code in main.py that iterates over functions from get_all_functions() (including get_value) and registers each as an MCP tool using app.add_tool.
    for func, name, description, *_ in functions: app.add_tool(Tool.from_function(func, name=name, description=description))

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/yangkyeongmo/mcp-server-apache-airflow'

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