Skip to content

chore: remove leftover prints for tracing statements - Fixes TUI apps using the SDK #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 29, 2025

Conversation

adsanz
Copy link
Contributor

@adsanz adsanz commented Jun 27, 2025

📌 Summary

I'm currently using this SDK for a TUI app, but the TUI breaks when the MCP server I'm trying to connect to fails either SSE or stdio, I noticed the eprint statements in the source code and I noticed that tracing was being used as well. Changing to tracing allows me to create a log file to redirect these errors and do not pollute the app with unexpected output.

🔍 Related Issues

  • Fixes #

✨ Changes Made

  • Changed eprint statements for tracing:error / tracing:warn

🛠️ Testing Steps

Create a new client and set-up an unreachable SSE server or stdio server, no output to stdout should be written unless rust_log is being set.

💡 Additional Notes

Copy link
Member

@hashemix hashemix left a comment

Choose a reason for hiding this comment

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

Look good @adsanz , really appreciate your contributions!

Just a small request going forward, please consider opening an issue first before starting a PR. It helps to stay aligned and makes it easier to review and plan.

@hashemix
Copy link
Member

when you get a chance, could you update your PR with the latest changes from the main branch?
That helps to avoid a failing check in this PR. thanks

@hashemix hashemix changed the title Remove leftover prints for tracing statements - Fixes TUI apps using the SDK chore: remove leftover prints for tracing statements - Fixes TUI apps using the SDK Jun 29, 2025
@hashemix hashemix merged commit dde95d4 into rust-mcp-stack:main Jun 29, 2025
4 of 5 checks passed
@hashemix hashemix mentioned this pull request Jun 29, 2025
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