INNER CODE UNIT · Python

create_server

Nebulock-Inc/agentic-threat-hunting-framework · athf/mcp/server.py:57

def create_server(workspace_path: Optional[str] = None) -> "FastMCP":  # type: ignore[name-defined]  # noqa: F821
    """Create and configure the ATHF MCP server.

    Args:
        workspace_path: Explicit workspace path (optional).

    Returns:
        Configured FastMCP server instance.
    """
    try:
        from mcp.server.fastmcp import FastMCP
    except ImportError as exc:
        raise MCPDependencyError(exc) from exc

    from athf.mcp.utils import find_workspace, load_workspace_config

    global _workspace
    _workspace = find_workspace(workspace_path)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…