Skip to main content
Glama

create_web_login_token

Generate a secure web token to access the Apache Airflow UI for Amazon MWAA environments, providing authentication for workflow management.

Instructions

Create a web login token for accessing the Airflow UI.

Args: name: The name of the MWAA environment

Returns: Dictionary containing the web token, webserver hostname, and IAM identity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Implementation Reference

  • The actual implementation of the 'create_web_login_token' tool logic, which calls the AWS Boto3 MWAA client.
    async def create_web_login_token(self, name: str) -> Dict[str, Any]:
        """Create a web login token for the environment."""
        try:
            response = self.mwaa_client.create_web_login_token(Name=name)
            return {
                "WebToken": response["WebToken"],
                "WebServerHostname": response["WebServerHostname"],
                "IamIdentity": response["IamIdentity"],
            }
  • The MCP tool registration handler that calls the underlying tools library.
    @mcp.tool(name="create_web_login_token")
    async def create_web_login_token(
        name: str,
    ) -> Dict[str, Any]:
        """Create a web login token for accessing the Airflow UI.
    
        Args:
            name: The name of the MWAA environment
    
        Returns:
            Dictionary containing the web token, webserver hostname, and IAM identity
        """
        return await tools.create_web_login_token(name)

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/paschmaria/mwaa-mcp-server'

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