Skip to content

fix: correct Monarch domain to monarch.com + graceful fallback for clients without elicitation#78

Open
shmuelsash wants to merge 1 commit into
robcerda:mainfrom
shmuelsash:fix/monarch-domain-and-elicitation-fallback
Open

fix: correct Monarch domain to monarch.com + graceful fallback for clients without elicitation#78
shmuelsash wants to merge 1 commit into
robcerda:mainfrom
shmuelsash:fix/monarch-domain-and-elicitation-fallback

Conversation

@shmuelsash

@shmuelsash shmuelsash commented Jul 9, 2026

Copy link
Copy Markdown

What

Two correctness/robustness fixes:

  1. Domain migration in user-facing text. Monarch retired app.monarchmoney.com in favour of app.monarch.com. The token instructions (TokenForm description and the monarch_login_with_token docstring) still point users at the old domain, where the token local-storage key no longer lives. Updated to app.monarch.com.

  2. Graceful handling for MCP clients without elicitation. Some clients don't implement the elicitation protocol and return -32601 Method not found when ctx.elicit(...) is called. Today that surfaces as an opaque error. This catches it in the login, MFA, and token-login flows and returns a clear message telling the user to use monarch_login_with_token instead (with step-by-step token retrieval).

Notes

  • No behavioral change for clients that do support elicitation — the try/except only intercepts the -32601 case and re-raises anything else.
  • No new dependencies.

…ients without elicitation

- Update the user-facing token instructions and login form description from the
  retired app.monarchmoney.com domain to app.monarch.com (auth.py, tools/auth.py).
- When an MCP client does not support elicitation (returns -32601 Method not found),
  return a clear message pointing the user to monarch_login_with_token instead of
  letting the -32601 bubble up as an opaque error. Applied to login, MFA, and
  token-login flows.
@shmuelsash
shmuelsash force-pushed the fix/monarch-domain-and-elicitation-fallback branch from 544bedf to 575071e Compare July 9, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant