Skip to content

Conversation

Mgabr90
Copy link

@Mgabr90 Mgabr90 commented Jun 3, 2025

  • Add import os statement
  • Set LOG_LEVEL environment variable to 'INFO' by default
  • Pass explicit log_level='INFO' parameter to FastMCP constructor

This fixes the ValueError: Invalid log level: info. Expected one of: ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] that prevents the server from starting when FastMCP receives lowercase log levels.

- Add import os statement
- Set LOG_LEVEL environment variable to 'INFO' by default
- Pass explicit log_level='INFO' parameter to FastMCP constructor

This fixes the ValueError: Invalid log level: info. Expected one of: ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']
that prevents the server from starting when FastMCP receives lowercase log levels.
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