enhance: add package location and BASE_URL verification to diagnostics
All checks were successful
Build and Push Monarch MCP Docker Image / build (push) Successful in 19s
All checks were successful
Build and Push Monarch MCP Docker Image / build (push) Successful in 19s
This commit is contained in:
@@ -30,6 +30,7 @@ logger = logging.getLogger(__name__)
|
||||
def run_startup_diagnostics():
|
||||
"""Print startup diagnostics for debugging."""
|
||||
import monarchmoney
|
||||
import monarchmoney.monarchmoney as mm_lib
|
||||
from monarchmoney import MonarchMoneyEndpoints
|
||||
|
||||
print("\n" + "=" * 50)
|
||||
@@ -37,11 +38,15 @@ def run_startup_diagnostics():
|
||||
print("=" * 50)
|
||||
|
||||
print(f"\n📦 Library Version: monarchmoney {monarchmoney.__version__}")
|
||||
print(f"📍 Package Location: {monarchmoney.__file__}")
|
||||
|
||||
print(f"\n🔗 API Endpoints:")
|
||||
print(f" GraphQL: {MonarchMoneyEndpoints.getGraphQL()}")
|
||||
print(f" Login: {MonarchMoneyEndpoints.getLoginEndpoint()}")
|
||||
|
||||
# Verify the actual BASE_URL in the source
|
||||
print(f"\n🔍 BASE_URL from source: {mm_lib.MonarchMoneyEndpoints.BASE_URL}")
|
||||
|
||||
print(f"\n🔐 Environment Variables:")
|
||||
env_vars = ['MONARCH_TOKEN', 'MONARCH_EMAIL', 'MONARCH_PASSWORD', 'MONARCH_MFA_SECRET']
|
||||
for var in env_vars:
|
||||
|
||||
Reference in New Issue
Block a user