If you only want to increase verbosity for the agent component without enabling full debug mode for the entire package, you can use the verbose parameter when creating an MCPAgent:
Copy
Ask AI
from mcp_use import MCPAgent# Create agent with increased verbosityagent = MCPAgent( llm=your_llm, client=your_client, verbose=True # Only shows debug messages from the agent)
This option is useful when you want to see the agent’s steps and decision-making process without all the low-level debug information from other components.
If you’re having issues connecting to MCP servers, enabling debug mode will show detailed information about the connection attempts, server initialization, and any errors encountered.
When debug mode is enabled, you’ll see each tool registration and the exact prompts being sent to the LLM, which can help diagnose why certain tools might not be used as expected.