Skip to main content
Glama
utils.cpython-313.pyc2.17 kB
� 6�g�� ��SrSSKrSSKJr SSKJr SSKJr S\SS4SjrS \\S \\S\4S jr SS \S \S\S\S\ S\4 Sjjr S\S\4Sjr g)z-Utility functions for the Whissle MCP server.�N)�Path)�Optional)�datetime�message�returnc��[U5e)zRaise an error with a message.)� ValueError)rs �E/Users/varunmehta/git/elevenlabs-mcp/whissle_mcp/whissle_mcp/utils.py� make_errorr s �� �W� ���output_directory� base_pathc��U(a[U5R5$U(a[U5R5$[R"5S- $)z!Create the output path for files.�Desktop)r� expanduser�home)r rs r �make_output_pathrsA����$�%�0�0�2�2� ��I��)�)�+�+��y�y�{�Y�&�&r �prefix� base_name� output_path� extension�full_idc���[R"5RS5nU(aUSUSUSU3nX&- $US[U5RSUSU3nX&- $)zCreate an output file path.z %Y%m%d_%H%M%S�_�.)r�now�strftimer�stem)rrrrr� timestamp� file_names r �make_output_filer!sv��� � ��'�'��8�I���h�a� �{�!�I�;�a� �{�C� � � "�"��h�a��Y�� 4� 4�5�Q�y�k��9�+�N� � � "�"r � file_pathc�~�[U5R5nUR5(d[SU35 U$)zHandle input file path.zFile not found: )rr�existsr )r"�paths r �handle_input_filer&(s4�� � �?� %� %� '�D� �;�;�=�=��%�i�[�1�2� �Kr )F) �__doc__�os�pathlibr�typingrr�strr r�boolr!r&�r r �<module>r.s���3� ��������� '�x��}�'��#��'�SW�'�� #� � #�� #�� #�� #� � #�  � #� ����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/WhissleAI/whissle-mcp'

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