INNER CODE UNIT · Python

_is_raw_server

concierge-hq/concierge · __init__.py:30

def _is_raw_server(obj: Any) -> bool:
    """Check if obj is a raw mcp.server.Server (not FastMCP)."""
    try:
        from mcp.server import Server as RawServer

        return isinstance(obj, RawServer) and not isinstance(obj, FastMCP)
    except ImportError:
        return False


class ProviderType(Enum):
    PLAIN = "plain"
    SEARCH = "search"
    PLAN = "plan"
    CODE = "code"


def _get_provider_class(provider_type: ProviderType):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…