+
    wi                     2    R t ^ RIHtHtHtHtHt R R ltR# )zUtility functions for working with metadata in MCP types.

These utilities are primarily intended for client-side usage to properly display
human-readable names in user interfaces in a spec compliant way.
)ImplementationPromptResourceResourceTemplateToolc                    V ^8  d   QhR\         \        ,          \        ,          \        ,          \        ,          R\
        /# )   objreturn)r   r   r   r   r   str)formats   "M/home/ubuntu/.local/lib/python3.14/site-packages/mcp/shared/metadata_utils.py__annotate__r   
   s/     # #$/F25EEV #[^ #    c                   \        V \        4      '       d   \        V R4      '       d   V P                  e   V P                  # V P                  '       dK   \        V P                  R4      '       d/   V P                  P                  e   V P                  P                  # V P
                  # \        V R4      '       d   V P                  e   V P                  # V P
                  # )a  
Get the display name for an MCP object with proper precedence.

This is a client-side utility function designed to help MCP clients display
human-readable names in their user interfaces. When servers provide a 'title'
field, it should be preferred over the programmatic 'name' field for display.

For tools: title > annotations.title > name
For other objects: title > name

Example:
    # In a client displaying available tools
    tools = await session.list_tools()
    for tool in tools.tools:
        display_name = get_display_name(tool)
        print(f"Available tool: {display_name}")

Args:
    obj: An MCP object with name and optional title fields

Returns:
    The display name to use for UI presentation
title)
isinstancer   hasattrr   annotationsname)r	   s   &r   get_display_namer   
   s    0 #t3  SYY%:99???ws@@S__EZEZEf??(((xx 3  SYY%:99xxr   N)__doc__	mcp.typesr   r   r   r   r   r    r   r   <module>r      s    O N#r   