mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-02 01:27:24 -04:00
MCP services were started with stdout/stderr redirected to DEVNULL, making debug logs invisible. This prevented diagnosing why _current_position parameter is not being received by buy() function. Changed subprocess.Popen to redirect MCP service output to main process stdout/stderr, allowing [DEBUG buy] logs to be visible in docker logs. This will help identify whether: 1. _current_position is being sent by ContextInjector but not received 2. MCP HTTP transport filters underscore-prefixed parameters 3. Parameter serialization is failing Related to negative cash bug where final position shows -$3,049.83 instead of +$727.92 tracked by ContextInjector.