uvx_plugin.cpython-311.pyc•3.86 kB
�
���g
� �2 � d Z ddlZddlZddlZddlmZmZmZmZ ej ej
d�� � ej e� � Z
dddd d
ddd
ddd�
gZdddd�dddd�dddd�gZdd
dddd�Zded eeef fd!�Zd eeef fd"�Zded eeef fd#�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�KUL01zKuala LumpurzW.P. Kuala Lumpur�JHR01z Pulau Aur�Johor�Asr�Maghribz2:56)�prayer�time�next_prayer�next_prayer_time�remaining_time�zone�returnc �~ � t � d| � �� � ddt j t d�� � 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_timesr5 3 sL � � �K�K�8�$�8�8�9�9�9� �V�T�Z�8I�RS�-T�-T�-T�U�U�V�� � c � � t � d� � d� d� t t d� �� � D � � � � } dd| d�giS ) z
List all available prayer time zones in Malaysia.
Returns:
Dictionary containing formatted list of zones
zListing all zones�
c 3 �P K � | ]!}|d � d|d � d|d � d�V � �"dS )r z: r z (r �)N� )�.0r$ s r4 � <genexpr>zlist_zones.<locals>.<genexpr>O s[ � � � � � �� ��<�<�<�4��<�<�<�4��>�<�<�<� � � � � � r6 c �"