Skip to main content
Glama
pshempel

MCP Time Server Node

by pshempel
config.cpython-311.pyc3.86 kB
� L�h� ���dZddlZddlmZee��jjjZee��jZdeedz dz ��gZ dZ dZ d Z d Z d Zd Zd ZdZedz Zedz Zedz ZdZdZdZe�d���e�d���de dd�de dd�de dd�de dd�d�ZdZdZd Zddd!d"d#�Zd$�Zed%kre e����dSdS)&z� Stress Test Configuration ========================= All configuration in one place. Easy to understand, easy to modify. No magic, no hidden settings. �N)�Path�node�distzindex.js�� �<i,g�?�g{�G�z�?�d�results�logsz summary.jsonzstress_test_{timestamp}.jsonT)�exist_okz.Standard memory leak test with normal requests�get_current_time)� description�duration� request_typez)Flood cache with unique timezone requests�unique_timezonesz,Send invalid requests to test error handling�invalidz!Mix of valid and invalid requests�mixed)�standard� cache_flood�invalid_requestsr�INFO�Fz%Y-%m-%d %H:%M:%S)�show_memory_graph�show_request_stats�show_error_details�timestamp_formatc� �t�t��rt�t��n tj}t �t��rt �t��n t j}d|�d|�dt �dt�dt�dtdz�dtd z�d td ��� d �t���D�����d �S)z&Return a human-readable config summaryzX Stress Test Configuration ======================== Server: node dist/index.js Results: z Logs: z Test Durations: Quick: zs Standard: zs Sustained: zs Memory Leak Threshold: r z% Request Delay: i�zms Available Scenarios: rc3�8K�|]\}}d|�d|d��V��dS)z - z: rN�)�.0�k�vs �=/home/pshempel/src/local/time-node_tdd/tests/stress/config.py� <genexpr>z%get_config_summary.<locals>.<genexpr>ks<���� P� P���A�,�Q�,�,�!�M�*�,�,� P� P� P� P� P� P�� )� RESULTS_DIR�is_relative_to� PROJECT_ROOT� relative_to�name�LOG_DIR�QUICK_TEST_DURATION�STANDARD_TEST_DURATION�SUSTAINED_TEST_DURATION�MEMORY_LEAK_THRESHOLD� REQUEST_DELAY�chr�join�TEST_SCENARIOS�items)� results_dir�log_dirs r$�get_config_summaryr9Us"��<G�;U�;U�Vb�;c�;c�y�+�)�)�,�7�7�7�it�iy�K�3:�3I�3I�,�3W�3W�i�g�!�!�,�/�/�/�]d�]i�G� � �  � � �  � � � � �$� � �&� � �.��3� � ���$� � � �R����� P� P��9M�9M�9O�9O� P� P� P�P�P�! � � �r&�__main__)!�__doc__�os�pathlibr�__file__�parentr*�STRESS_TEST_DIR�str�SERVER_COMMAND�SERVER_STARTUP_TIMEr.r/r0r1�MEMORY_CHECK_INTERVALr2�REQUESTS_PER_BATCHr(r-� SUMMARY_FILE�DETAIL_FILE_PATTERN� SHOW_PROGRESS�PROGRESS_UPDATE_INTERVAL�mkdirr5� LOG_LEVEL�MAX_LOG_SIZE_MB�KEEP_LAST_N_LOGS� REPORT_FORMATr9�__name__�printr r&r$�<module>rQs����� � � � ��������t�H�~�~�$�+�2� ��$�x�.�.�'���#�#�l�V�3�j�@�A�A�B��������������� ���� �)� � �F� "���^�+� �4��� ��� ���4�� � � �� � �t� ���� H�*�*��� C�'�*��� F�'�!��� ;�*����!���0 � ��������+� �� ����4 �z��� �E� � � � �������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/pshempel/mcp-time-server-node'

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