Skip to main content
Glama
nikhil-ganage

MCP Server Airflow Token

get_config

Retrieve current Apache Airflow configuration settings to manage deployment parameters and system behavior.

Instructions

Get current configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionNo

Implementation Reference

  • The main handler function for the 'get_config' tool. It accepts an optional 'section' parameter, calls the Airflow ConfigApi.get_config, and returns the response as TextContent.
    async def get_config( section: Optional[str] = None, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: # Build parameters dictionary kwargs: Dict[str, Any] = {} if section is not None: kwargs["section"] = section response = config_api.get_config(**kwargs) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • The get_all_functions utility that provides the registration tuple for 'get_config', which is later used by main.py to register the tool 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_config, "get_config", "Get current configuration", True), (get_value, "get_value", "Get a specific option from configuration", True), ]
  • src/main.py:23-23 (registration)
    Mapping of APIType.CONFIG to the get_config_functions (aliased get_all_functions from config.py), used to dynamically load and register config tools.
    APIType.CONFIG: get_config_functions,
  • src/main.py:91-91 (registration)
    The app.add_tool call that registers the 'get_config' handler (along with others) into the MCP server.
    app.add_tool(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/nikhil-ganage/mcp-server-airflow-token'

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