tidal_login
Authenticate with TIDAL to enable personalized music recommendations and playlist management through browser login.
Instructions
Authenticate with TIDAL through browser login flow.
This will open a browser window for the user to log in to their TIDAL account.
Returns:
A dictionary containing authentication status and user information if successful
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_server/server.py:22-49 (handler)The MCP tool handler for 'tidal_login', decorated with @mcp.tool(). It handles authentication by making a GET request to the Flask app's /api/auth/login endpoint and returns success or error status.@mcp.tool() def tidal_login() -> dict: """ Authenticate with TIDAL through browser login flow. This will open a browser window for the user to log in to their TIDAL account. Returns: A dictionary containing authentication status and user information if successful """ try: # Call your Flask endpoint for TIDAL authentication response = requests.get(f"{FLASK_APP_URL}/api/auth/login") # Check if the request was successful if response.status_code == 200: return response.json() else: error_data = response.json() return { "status": "error", "message": f"Authentication failed: {error_data.get('message', 'Unknown error')}" } except Exception as e: return { "status": "error", "message": f"Failed to connect to TIDAL authentication service: {str(e)}" }
- mcp_server/server.py:22-22 (registration)The @mcp.tool() decorator registers the tidal_login function as an MCP tool.@mcp.tool()