Skip to main content
Glama

Malaysia Prayer Time MCP Server

uvx_plugin.cpython-311.pyc3.86 kB
� ���g � �2�dZddlZddlZddlZddlmZmZmZmZej ej d���ej e ��Z dddd d d d d ddd� gZdddd�dddd�dddd�gZdd dddd�Zded eeeffd!�Zd eeeffd"�Zded eeeffd#�ZdS)$z� Malaysia Prayer Time UVX Plugin This module serves as the entry point for the UVX plugin integration with Claude Desktop and other UVX-compatible applications. �N)�Dict�Any�Optional�Listz4%(asctime)s - %(name)s - %(levelname)s - %(message)s)�level�formatz 2024-04-04�Thursdayz 1445-09-24z05:48z05:58z07:12z13:19z16:25z19:21z20:30) �date�day�hijri�imsak�fajr�syuruk�dhuhr�asr�maghrib�isha�SGR01�Gombak�Selangor)�code�name�negeri�KUL01z Kuala LumpurzW.P. Kuala Lumpur�JHR01z Pulau Aur�Johor�Asr�Maghribz2:56)�prayer�time� next_prayer�next_prayer_time�remaining_time�zone�returnc�~�t�d|����ddtjtd���d�giS)z� Get prayer times for a specific zone in Malaysia. Args: zone: The zone code (e.g., 'SGR01', 'KUL01') Returns: Dictionary containing prayer times data zGetting prayer times for zone: �content�text���indent��typer()�logger�info�json�dumps�MOCK_PRAYER_TIMES�r$s �E/Users/aman/2) personal/mcp-server-malaysia-prayer-time/uvx_plugin.py�get_prayer_timesr53sL�� �K�K�8�$�8�8�9�9�9� �V�T�Z�8I�RS�-T�-T�-T�U�U�V� ��c��t�d��d�d�ttd����D����}dd|d�giS) z List all available prayer time zones in Malaysia. Returns: Dictionary containing formatted list of zones zListing all zones� c3�PK�|]!}|d�d|d�d|d�d�V��"dS)rz: rz (r�)N�)�.0r$s r4� <genexpr>zlist_zones.<locals>.<genexpr>Os[���� � � � ��<�<�<�4��<�<�<�4��>�<�<�<� � � � � � r6c�"�|d|dfS)Nrrr;)�zs r4�<lambda>zlist_zones.<locals>.<lambda>Qs��a��k�1�V�9�5M�r6)�keyr'r(r,)r.r/�join�sorted� MOCK_ZONES)�formatted_zoness r4� list_zonesrFEsq�� �K�K�#�$�$�$��i�i� � ��:�+M�+M�N�N�N� � � ���O� ���A�A�B� C�Cr6c�~�t�d|����ddtjtd���d�giS)z� Get the current prayer time status for a zone. Args: zone: The zone code (e.g., 'SGR01', 'KUL01') Returns: Dictionary containing current prayer data z!Getting current prayer for zone: r'r(r)r*r,)r.r/r0r1�MOCK_CURRENT_PRAYERr3s r4�get_current_prayerrIWsL�� �K�K�:�D�:�:�;�;�;� �V�T�Z�8K�TU�-V�-V�-V�W�W�X� �r6)�__doc__r0�asyncio�logging�typingrrrr� basicConfig�INFO� getLogger�__name__r.r2rDrH�strr5rFrIr;r6r4�<module>rSs����� � � � ���������,�,�,�,�,�,�,�,�,�,�,�,���� �,�U����� �� �8� $� $�� ���������� � � �� �h�*�=�=� �n�8K�L�L� �k�W�=�=�� �� ���� ����3��4��S��>�����$D�D��c��N�D�D�D�D�$�S��T�#�s�(�^������r6

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/amanasmuei/mcp-server-malaysia-prayer-time'

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