Files
schwab-mcp-custom/server.py
b3nw 1999392df7
All checks were successful
Build and Push Docker Image / build (push) Successful in 38s
fix(mcp): capture scraper logs and return them in tool responses
Scraper debug output goes to stderr which is invisible in MCP stdio mode.
Add capture_logs context manager that attaches a StringIO handler to the
schwab_scraper logger during tool execution, then includes captured logs
in the response envelope when debug=True or on failure.

Applied to login() and refresh_session() which are the critical paths
for authentication diagnostics.
2026-04-28 02:04:58 +00:00

12 KiB