Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

513 B
Raw Blame
"""Availability of the optional installed MCP SDK, independent of sys.path."""

from importlib.metadata import PackageNotFoundError, distribution


def is_mcp_installed() -> bool:
    """A namespace directory or a test stub is not an installed SDK.

    An installed SDK with broken imports must still enter the real tests,
    where the import fails visibly instead of silently skipping coverage.
    """
    try:
        distribution("mcp")
    except PackageNotFoundError:
        return False
    return True