Skip to content

Commit e7f7efc

Browse files
pyqclaude
andcommitted
fix: route CLI error tracebacks to stderr instead of stdout
The console object in cli.py was created without stderr=True, causing unhandled exception tracebacks to be printed to stdout instead of stderr. This fix ensures proper error stream routing by configuring the console to use stderr, matching the behavior of the logging system. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6d3728f commit e7f7efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcpm/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from mcpm.utils.logging_config import setup_logging
3232
from mcpm.utils.rich_click_config import click, get_header_text
3333

34-
console = Console()
34+
console = Console(stderr=True)
3535
client_config_manager = ClientConfigManager()
3636

3737
# Setup Rich logging early - this runs when the module is imported

0 commit comments

Comments
 (0)