Skip to content

v0.31.2 - Fix non-JSON MCP log messages

Latest

Choose a tag to compare

@manykarim manykarim released this 22 Apr 15:02
· 59 commits to main since this release

rf-mcp v0.31.2

Fix

  • Non-JSON MCP log messages no longer corrupt the stdio transport. RF keywords like Log To Console and Log console=True wrote plain text to stdout (fd 1), causing clients (Claude Desktop, Cline) to report JSON parse errors. Fixed by redirecting sys.__stdout__ to stderr after MCP captures its stdout reference, and monkey-patching RF's write_to_console as defence-in-depth.
  • Replaced all bare print() calls in production code with logger.debug().
  • logging.basicConfig() now explicitly targets stderr.