Skip to content
Discussion options

You must be logged in to vote

Hey @xajeel you can easily disable those verbose logs and get clean responses.

The logging is controlled by a global debug setting that has 3 levels:

  • Level 0: Only warnings/errors (clean output) ← What you want
  • Level 1: INFO level (default - shows some logs)
  • Level 2: DEBUG level (maximum verbosity)

How to disable

Option 1: Programmatic (Recommended)

Add this line at the top of your script:

import mcp_use
mcp_use.set_debug(0)  # Disables debug logs completely

Option 2: Environment Variable

Run your script with:

DEBUG=0 python your_script.py

Option 3: Remove Existing Debug Lines

If you copied from examples/sandbox_everything.py, just comment out:

# mcp_use.set_debug(debug=1)  # Remove or …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@xajeel
Comment options

@Pederzh
Comment options

Answer selected by Pederzh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants