Skip to content

Open-source Revit MCP server: let Claude and other AI assistants read and edit BIM models, with human approval on every change.

770 B
Raw Blame
"""AEC Model Bridge server entrypoint."""

__all__ = ["run_server"]


def __getattr__(name: str):
    # Lazy: importing this package (or any submodule, e.g. panel_server) must not
    # have the side effect of building mcp_server's stdio-server registry — that
    # registry does real work at construction (Speckle/APS OAuth setup, a Rhino
    # bridge health probe, ModuleRegistry filesystem discovery), and paying for it
    # on every import regardless of whether the stdio server is even wanted was a
    # real, measurable cost once a second entry point (panel_server.py) existed.
    if name == "run_server":
        from .mcp_server import run_mcp_server
        return run_mcp_server
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")