Skip to main content
Glama

Model Context Protocol Server

redis_service.cpython-312.pyc1.54 kB
� &\�hI��d�ddlZddlZddlZejdddd��Zdefd�Zdedefd �Zy) �N� localhosti�T)�host�port�db�decode_responses�returnc���dtj���} tj|ddi��|S#tj j $r}td|����d}~wwxYw)uWYeni, benzersiz bir oturum ID'si oluşturur ve Redis'te boş bir geçmişle başlatır.�ssn_�historyz[])�mapping�Redis bağlantı hatası: N)�uuid�uuid4� redis_client�hset�redis� exceptions�ConnectionError�print�� session_id�es �=/workspaces/MCP-Server/modul2_ders3/services/redis_service.py�create_new_sessionrsh���� � � �~�&�J�� ���*�y�$�.?��@���� � � � +� +�� �*�1�#�.�/� ���s�4�A%�A � A%rc�� tj|�S#tjj$r}t d|����d}~wwxYw)uQBelirtilen oturumu Redis'ten siler. Başarılı olursa 1, anahtar yoksa 0 döner.r N)r�deleterrrrrs r�delete_sessionrsG����"�"�:�.�.�� � � � +� +�� �*�1�#�.�/� ���s��A�A�A) r�jsonr�Redisr�strr�intr��r�<module>r$sE�� � � ��u�{�{� �$�1�t�T� � �C� ��s��s�r#

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/BilgisayarKavramlari/MCP-Server'

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