Skip to main content
Glama
nikhil-ganage

MCP Server Airflow Token

get_plugins

Retrieve a list of loaded plugins from Apache Airflow deployments to monitor and manage available extensions.

Instructions

Get a list of loaded plugins

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo

Implementation Reference

  • The main handler function implementing the 'get_plugins' MCP tool. It accepts optional limit and offset parameters, calls the underlying Airflow PluginApi.get_plugins, and returns the response as a TextContent list.
    async def get_plugins(
        limit: Optional[int] = None,
        offset: Optional[int] = None,
    ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]:
        """
        Get a list of loaded plugins.
    
        Args:
            limit: The numbers of items to return.
            offset: The number of items to skip before starting to collect the result set.
    
        Returns:
            A list of loaded plugins.
        """
        # Build parameters dictionary
        kwargs: Dict[str, Any] = {}
        if limit is not None:
            kwargs["limit"] = limit
        if offset is not None:
            kwargs["offset"] = offset
    
        response = plugin_api.get_plugins(**kwargs)
        return [types.TextContent(type="text", text=str(response.to_dict()))]
  • Local registration of the 'get_plugins' tool via the get_all_functions list, which is imported and used in src/main.py to register all 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_plugins, "get_plugins", "Get a list of loaded plugins", True),
        ]

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