INNER CODE UNIT · Python

_discover_plugin_tools

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

def _discover_plugin_tools() -> list:
    """Discover MCP tool registration functions from installed plugins."""
    from importlib.metadata import entry_points

    return list(entry_points(group="athf.mcp_tools"))


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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…