We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ahtishamdilawar/nuces-flex-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
login.py•530 B
from tools.mcp_instance import mcp
from auth import ensure_logged_in
@mcp.tool()
def login() -> str:
"""
Login to FLEX Student Portal.
Opens a browser window for automatic reCAPTCHA handling.
Credentials are read from FLEX_ROLL_NO and FLEX_PASSWORD environment variables.
Returns:
Success or failure message.
"""
try:
session = ensure_logged_in()
return "Successfully logged in to FLEX Student Portal!"
except Exception as e:
return f"Login failed: {str(e)}"