
    jKj                    P    d Z ddlmZ ddlmZ ddlmZ ddlmZ	 d
dZ
d
dZd
dZy	)z?Detect which kind of MCP server was passed to ``instrument()``.    )annotations)AnyFastMCP)Serverc                "    t        | t              S )zFThe official SDK's high-level server (``mcp.server.fastmcp.FastMCP``).)
isinstancer   servers    k/Users/ahmed/devFolder/Ultron/claude-voice/.venv/lib/python3.12/site-packages/posthog/mcp/_compatibility.py
is_fastmcpr      s    fg&&    c                F    	 ddl m} t        | |      S # t        $ r Y yw xY w)zjlowin's standalone FastMCP 2.0 (``fastmcp.FastMCP``), a separate package
    from the official SDK. Returns False if ``fastmcp`` isn't installed.r   r   F)fastmcpr   ImportErrorr	   )r   	FastMCPv2s     r   is_fastmcp_v2r      s-    0 fi((  s    	  c                "    t        | t              S )N)r	   LowLevelServerr
   s    r   is_low_level_serverr      s    fn--r   N)r   r   returnbool)__doc__
__future__r   typingr   mcp.server.fastmcpr   mcp.server.lowlevelr   r   r   r   r    r   r   <module>r      s&   
 F "  & 8'
).r   