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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- awslabs/mwaa_mcp_server/tools.py:237-245 (handler)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"], } - awslabs/mwaa_mcp_server/server.py:232-244 (registration)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)