check_auth_status
Verify authentication status with Monarch Money using the MCP server to ensure access to account features.
Instructions
Check if already authenticated with Monarch Money.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/monarch_mcp_server/server.py:113-135 (handler)The check_auth_status tool handler function. It checks for an authentication token in secure storage and environment variables, returning a status message. Decorated with @mcp.tool() for automatic registration.@mcp.tool() def check_auth_status() -> str: """Check if already authenticated with Monarch Money.""" try: # Check if we have a token in the keyring token = secure_session.load_token() if token: status = "✅ Authentication token found in secure keyring storage\n" else: status = "❌ No authentication token found in keyring\n" email = os.getenv("MONARCH_EMAIL") if email: status += f"📧 Environment email: {email}\n" status += ( "\n💡 Try get_accounts to test connection or run login_setup.py if needed." ) return status except Exception as e: return f"Error checking auth status: {str(e)}"