Skip to content

Conversation

@RomaRogov
Copy link
Contributor

@RomaRogov RomaRogov commented Feb 1, 2026

I've reviewed specifications for MCP STDIO servers output and decided to override log and warn console methods to write out information to stderr, as specificatoin states:

all messages logged to stderr (standard error) will be captured by the host application (e.g., Claude Desktop) automatically.

In this case we still have info from UTCP modules - either in command line or any MCP client with strict stdout handling.
This should be the most accurate way to convert log output from UTCP modules.


Summary by cubic

Override console.log and console.warn to write to stderr per MCP STDIO spec. This keeps stdout reserved for MCP messages and ensures logs are captured by host apps like Claude Desktop.

Written for commit b230606. Summary will update on new commits.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@RomaRogov
Copy link
Contributor Author

Just to mention, this merge request should resolve following issues:
#22
#21

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.

1 participant