Skip to content

Conversation

@alex-feel
Copy link
Owner

Fix critical bug where retry logic in configure_mcp_server() was missing the PATH export that was present in the first attempt, causing retry failures when Node.js was not in system PATH.

Changes:

  • Fix retry to include explicit PATH export with Node.js location (critical bug fix)
  • Add debug logging infrastructure controlled by CLAUDE_CODE_TOOLBOX_DEBUG environment variable
  • Add is_debug_enabled() and debug_log() helper functions for diagnostic output
  • Enhance find_bash_windows() with debug logging for path resolution
  • Enhance run_bash_command() with command execution details
  • Enhance configure_mcp_server() with MCP configuration details
  • Add comprehensive tests for debug functions

The debug logging helps diagnose MCP server configuration issues and can be enabled by setting CLAUDE_CODE_TOOLBOX_DEBUG=1

Fix critical bug where retry logic in configure_mcp_server() was missing the PATH export that was present in the first attempt, causing retry failures when Node.js was not in system PATH.

Changes:
- Fix retry to include explicit PATH export with Node.js location (critical bug fix)
- Add debug logging infrastructure controlled by CLAUDE_CODE_TOOLBOX_DEBUG environment variable
- Add is_debug_enabled() and debug_log() helper functions for diagnostic output
- Enhance find_bash_windows() with debug logging for path resolution
- Enhance run_bash_command() with command execution details
- Enhance configure_mcp_server() with MCP configuration details
- Add comprehensive tests for debug functions

The debug logging helps diagnose MCP server configuration issues and can be enabled by setting CLAUDE_CODE_TOOLBOX_DEBUG=1
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  scripts
  setup_environment.py 66, 481-488, 501-523, 544-580, 3662
Project Total  

This report was generated by python-coverage-comment-action

@alex-feel alex-feel merged commit 938c1b2 into main Jan 8, 2026
12 checks passed
@alex-feel alex-feel deleted the alex-feel-dev branch January 8, 2026 09:11
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.

2 participants