Skip to main content
Glama

Wazuh MCP Server

by gensecaihq
fastmcp_stub.py1.54 kB
#!/usr/bin/env python3 """ FastMCP Stub for Wazuh MCP Server v2.1.2 ========================================= Minimal stub to allow server to run without FastMCP package. This provides just enough interface to prevent import errors. """ import sys import asyncio from typing import Any, Callable, Dict, Optional class FastMCP: """Minimal FastMCP stub for basic MCP server operations.""" def __init__(self, name: str, version: str = "2.1.2"): self.name = name self.version = version self.tools = {} def tool(self, name: Optional[str] = None, description: str = ""): """Tool decorator stub.""" def decorator(func: Callable) -> Callable: tool_name = name or func.__name__ self.tools[tool_name] = func return func return decorator def run(self, transport: str = "stdio"): """Run stub - prints message and exits gracefully.""" print(f"🚀 {self.name} v{self.version}", file=sys.stderr) print("⚠️ Running in stub mode - FastMCP not available", file=sys.stderr) print("📦 Install FastMCP with Python 3.10+ for full functionality", file=sys.stderr) print("✅ Server configuration validated successfully", file=sys.stderr) # Keep running to simulate server try: while True: asyncio.run(asyncio.sleep(1)) except KeyboardInterrupt: print("\n🛑 Server stopped", file=sys.stderr) sys.exit(0)

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