debug_session_loading
Identify and resolve session loading errors on the Monarch Money MCP server to ensure smooth user interactions and system functionality.
Instructions
Debug session loading issues.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/monarch_mcp_server/server.py:137-152 (handler)The handler function for the 'debug_session_loading' tool. It is registered via @mcp.tool() decorator and implements logic to debug session token loading from the secure keyring, returning status or detailed error information.@mcp.tool() def debug_session_loading() -> str: """Debug keyring session loading issues.""" try: # Check keyring access token = secure_session.load_token() if token: return f"✅ Token found in keyring (length: {len(token)})" else: return "❌ No token found in keyring. Run login_setup.py to authenticate." except Exception as e: import traceback error_details = traceback.format_exc() return f"❌ Keyring access failed:\nError: {str(e)}\nType: {type(e)}\nTraceback:\n{error_details}"