from mcp.server.fastmcp import FastMCP

from mcp_toolbox.config import Config
from mcp_toolbox.log import logger

mcp = FastMCP("email")
config = Config()


# Import tools to register them with the MCP server
if config.enable_commond_tools:
    import mcp_toolbox.command_line.tools
if config.enable_file_ops_tools:
    import mcp_toolbox.file_ops.tools
if config.enable_audio_tools:
    try:
        import mcp_toolbox.audio.tools
    except ImportError:
        logger.error(
            "Audio tools is not available. Please install the required dependencies. e.g. `pip install mcp-toolbox[audio]`"
        )
if config.figma_api_key:
    import mcp_toolbox.figma.tools
if config.bfl_api_key:
    import mcp_toolbox.flux.tools
import mcp_toolbox.markitdown.tools  # noqa: E402
import mcp_toolbox.web.tools  # noqa: E402
import mcp_toolbox.xiaoyuzhoufm.tools  # noqa: E402, F401

# TODO: Add prompt for toolbox's tools
