INNER CODE UNIT · Python

main

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

def main(
    workspace_path: Optional[str] = None,
    transport: str = "stdio",
    port: int = 3100,
    host: str = DEFAULT_HOST,
) -> None:
    """Entry point for running the MCP server.

    For the HTTP transports the server binds to loopback by default. It serves
    unauthenticated tools over the whole workspace, so exposing it on a routable
    interface requires passing `host` explicitly and putting an authenticating
    proxy in front of it.
    """
    server = create_server(workspace_path)
    if transport in ("sse", "streamable-http"):
        if is_exposed_host(host):
            logger.warning(
                "ATHF MCP server binding to %s:%s — reachable from outside this "

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…