Skip to main content
Glama
__main__.pyโ€ข1.49 kB
#!/usr/bin/env python3 """ Wazuh MCP Server - Main Entry Point MCP-compliant remote server for Wazuh SIEM integration """ import sys import os import asyncio import uvicorn from pathlib import Path # Add the src directory to Python path sys.path.insert(0, str(Path(__file__).parent.parent)) def main(): """Main entry point for the Wazuh MCP Server.""" try: from wazuh_mcp_server.server import app # Get configuration from environment host = os.getenv('MCP_HOST', '0.0.0.0') port = int(os.getenv('MCP_PORT', '3000')) log_level = os.getenv('LOG_LEVEL', 'info').lower() print(f"๐Ÿš€ Starting Wazuh MCP Server v4.0.0") print(f"๐Ÿ“ก Server: http://{host}:{port}") print(f"๐Ÿ” Health: http://{host}:{port}/health") print(f"๐Ÿ“Š Metrics: http://{host}:{port}/metrics") print(f"๐Ÿ“– Docs: http://{host}:{port}/docs") # Run the server uvicorn.run( app, host=host, port=port, log_level=log_level, access_log=True, server_header=False, date_header=False ) except ImportError as e: print(f"โŒ Import error: {e}") print("๐Ÿ’ก Make sure all dependencies are installed: pip install -r requirements.txt") sys.exit(1) except Exception as e: print(f"โŒ Server error: {e}") sys.exit(1) if __name__ == "__main__": main()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gensecaihq/Wazuh-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server