Skip to main content
Glama
helpers.cpython-313.pyc1.52 kB
� �?h���z�SrSSKrSSKrSSKJrJrJr SSKJr S\S\\ \ 444Sjr S\ S \ S\\ \44S jr g) z* Utility functions for the CML MCP Server �N)�Dict�Any�Union��� get_client�returnc�*�[5(dSS0$g)zc Check if the client is authenticated Returns: None if authenticated, error dictionary if not �errorz=You must initialize the client first with initialize_client()Nr���RC:\Users\jscon\Documents\Python_Projects\Claude-Modeling-Labs\src\utils\helpers.py� check_authr s�� �<�<��X�Y�Y� r � operationr c��[SUS[U53[RS9 [R "[RS9 SSUS[U530$)z� Handle API errors consistently Args: operation: Description of the operation that failed error: Exception that was raised Returns: Error dictionary with consistent format z Error during z: )�filer )�print�str�sys�stderr� traceback� print_exc)rr s r�handle_api_errorrsQ�� �M�)��B�s�5�z�l� 3�#�*�*�E� ���S�Z�Z�(� �}�Y�K�r�#�e�*��>� ?�?r ) �__doc__rr�typingrrr�clientrrr� Exceptionrr r r�<module>rs_��� ��#�#�� �E�$��S�#�X��.�/� � @�� @�I� @�$�s�C�x�.� @r

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MediocreTriumph/claude-cml-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server