INNER CODE UNIT · Python

__init__

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

    def __init__(self, cause: BaseException) -> None:
        super().__init__(
            f"Could not import mcp.server.fastmcp.FastMCP ({cause}). This "
            "usually means either the mcp package is not installed, or an "
            "incompatible version is installed: mcp 2.0.0 removed FastMCP. "
            "Install a supported version with: pip install 'agentic-threat-hunting-framework[mcp]' "
            "(which pins mcp[cli]>=1.9.4,<2.0.0)."
        )


def get_workspace() -> Path:
    """Return the current workspace path."""
    if _workspace is None:
        raise RuntimeError("ATHF MCP server not initialized. Call create_server() first.")
    return _workspace


def _json_result(data: Any) -> str:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…