Skip to main content
Glama
skydeckai

Rememberizer MCP Server for Common Knowledge

by skydeckai
server.cpython-313.pyc11.8 kB
� m��g�4��@�SSKrSSKrSSKrSSKrSSKJr SSKJr SSK J r SSK J r J r JrJrJrJrJrJrJrJrJrJr \R0"\R2S9 \R4"\5rSr\R<"S5r\(d\ "S5e\"\\S 9r!S \4S jr"S r#g) �N)�Server)�AnyUrl) �ACCOUNT_INFORMATION_PATH�AGENTIC_SEARCH_PATH�APP_NAME�LIST_DOCUMENTS_PATH�LIST_INTEGRATIONS_PATH� MEMORIZE_PATH�RETRIEVE_DOCUMENT_PATH�RETRIEVE_SLACK_PATH� SEARCH_PATH� APIClient�RememberizerTools�get_document_uri)�levelz#https://api.rememberizer.ai/api/v1/�REMEMBERIZER_API_TOKENz4REMEMBERIZER_API_TOKEN environment variable required)�base_url�api_key�returnc ���# �[[5nUR5S[[R 4Sj5nUR 5S[S[4Sj5nUR5S[[R4Sj5nUR5S[S[S[[R[R-[R-4Sj5nU$7f) Nrc ���# �[R[5IShv�N nUSVs/sH%n[R"[ U5USSS9PM' sn$N9s snf7f)N�results�namez text/json)�urir�mimeType)�client�getr�types�Resourcer)�data�documents �Q/Users/cuongpm/Code/mcp-server-rememberizer/src/mcp_server_rememberizer/server.py�list_resources�serve.<locals>.list_resources'sg����Z�Z� 3�4�4��!��O�  � ,�� �N�N�$�X�.��f�%�$� � ,�  � �5�� �s �A �A� A �+A�A �A rc��J# �SnURS:Xa[nOURS:Xa[nU(d[SU35eURR S5n[ RURUS95IShv�N n[R"USS9$N7f)Nr!�slackzUnknown resource: �/)�id�)�indent) �hostr r � ValueError�path�lstriprr�format�json�dumps)rr-� document_idr s r"� read_resource�serve.<locals>.read_resource3s������ �8�8�z� !�)�D� �X�X�� �&�D���1�#��7�8� 8��h�h�o�o�c�*� ��Z�Z�� � �{� � ;�<�<���z�z�$�q�)�)�=�s�BB#�B!�B#c���# �[R"[RRSSS0S9[R"[R RSSSSS.S S S.SS S.SS S.S .S/S.S9[R"[R RSSSSS.SSS.S S S.SS S.SS S.S.S/S.S9[R"[RRSSS0S9[R"[RRSSS SSSS.S SSSSS.S.S.S9[R"[RRSSSS S.SS!S.S".S.S9/$7f)#Nz�Get information about your Rememberizer.ai personal/team knowledge repository account. This includes account holder name and email address.�type�object)r� description� inputSchemaz�Send a block of text and retrieve cosine similar matches from your connected Rememberizer personal/team internal knowledge and memory repository.�stringz^Up to a 400-word sentence for which you wish to find semantically similar chunks of knowledge.)r6r8�integerz�Number of semantically similar chunks of text to return. Use 'n_results=3' for up to 5, and 'n_results=10' for more information. If you do not receive enough information, consider trying again with a larger 'n_results' value.zzStart date in ISO 8601 format with timezone (e.g., 2023-01-01T00:00:00Z). Use this to filter results from a specific date.zyEnd date in ISO 8601 format with timezone (e.g., 2024-01-01T00:00:00Z). Use this to filter results until a specific date.)� match_this� n_results�from_datetime_ISO8601�to_datetime_ISO8601r<)r6� properties�requireda}Search for documents in Rememberizer in its personal/team internal knowledge and memory repository using a simple query that returns the results of an agentic search. The search may include sources such as Slack discussions, Gmail, Dropbox documents, Google Drive documents, and uploaded files. Consider using the tool list_internal_knowledge_systems to find out which are available. Use the tool list_internal_knowledge_systems to find out which sources are available. You can specify a from_datetime_ISO8601 and a to_datetime_ISO8601, and you should look at the context of your request to make sure you put reasonable parameters around this by, for example, converting a reference to recently to a start date two weeks before today, or converting yesterday to a timeframe during the last day. But do be aware of the effect of time zone differences in the source data and for the requestor.z�The additional context for the query. You might need to summarize the conversation up to this point for better context-awared results.)�query� user_contextr=r>r?rBz�List the sources of personal/team internal knowledge. These may include Slack discussions, Gmail, Dropbox documents, Google Drive documents, and uploaded files.aRetrieves a paginated list of all documents in your personal/team knowledge system. Sources could include Slack discussions, Gmail, Dropbox documents, Google Drive documents, and uploaded files. Consider using the tool list_internal_knowledge_systems to find out which are available. Use this tool to browse through available documents and their metadata. Examples: - List first 100 documents: {"page": 1, "page_size": 100} - Get next page: {"page": 2, "page_size": 100} - Get maximum allowed documents: {"page": 1, "page_size": 1000} z(Page number for pagination (starts at 1)�)r6r8�minimum�defaultz%Number of documents per page (1-1000)i��d)r6r8rE�maximumrF��page� page_size)r6r@z�Save a piece of text information in your Rememberizer.ai knowledge system so that it may be recalled in future through tools retrieve_semantically_similar_internal_knowledge or smart_search_internal_knowledge.zPName of the information. This is used to identify the information in the future.z%The information you wish to memorize.�r�content) r�Toolr�ACCOUNT_INFORMATION�value�SEARCH�AGENTIC_SEARCH�LIST_INTEGRATIONS�LIST_DOCUMENTS�MEMORIZE��r"� list_tools�serve.<locals>.list_toolsBs��� �J�J�&�:�:�@�@�j��H�� � �J�J�&�-�-�3�3�p�$�%-�,H�'� %.�!5�&�%-�!S�2�%-�!T�0�-#�<".��A!�% �L �J�J�&�5�5�;�;�^�$�%-�,H�"� %-�!:�)�%.�!<�&�%-�!S�2�%-�!T�0�=%#�L")� �Q)�- �\ �J�J�&�8�8�>�>���H�� � �J�J�&�5�5�;�;��%�%.�+U�'(�'(� !�%.�+R�'(�'+�'*� &�#�� �< �J�J�&�/�/�5�5�7� %�%-�!Z�!�%-�+R�$� #�� �CY �Y �s�E"E$r� argumentsc ��@# �U=S:Xa� USnURSS5nURSS5nURSS5nX#XES.n[R[US9IShv�N n[R"S [ U5S 9/$=S :Xa� US nURSS5nURS S5n URSS5nURSS5nUUU UUS.n[R [US9IShv�N n[R"S [ U5S 9/$=S:XaQ [R[5IShv�N n[R"S [ URS/55S 9/$=S:XaA [R[5IShv�N n[R"S [ U5S 9/$=S:Xah URSS5n URSS5n X�S.n[R[US9IShv�N n[R"S [ U5S 9/$S:XaJUSUSS.n[R [US9IShv�N n[R"S [ U5S 9/$[SU35eGN)GN�GNMN�N�N?7f)N�0retrieve_semantically_similar_internal_knowledger<r=�r>r?)�q�n�from�to)�params�text)r6rc�smart_search_internal_knowledgerBrC)rB�n_chunksrCr`ra)r �list_internal_knowledge_systemsr � rememberizer_account_information�&list_personal_team_knowledge_documentsrJrDrKrGrI� remember_thisrrMrLzUnknown tool: ) rrr r� TextContent�str�postrr rrr r,) rrZr<r=� from_datetime� to_datetimerbr rBrCrJrKs r"� call_tool�serve.<locals>.call_tool�sd����C�&�|�4� �%�M�M�+�q�9� � )� � �.E�t� L� �'�m�m�,A�4�H� �)�=�d��#�Z�Z� �F�Z�C�C���)�)�v�C��I�F�G�G�2�!�'�*��%�M�M�+�q�9� �(�}�}�^�T�B� � )� � �.E�t� L� �'�m�m�,A�4�H� �"� )�$0�)�%� ��$�[�[�)<�6�[�J�J���)�)�v�C��I�F�G�G�2�#�Z�Z�(>�?�?���)�)�v�C�����QS�@T�<U�V�W�W�3�#�Z�Z�(@�A�A���)�)�v�C��I�F�G�G�9� �}�}�V�Q�/��%�M�M�+�s�;� �"&�?��#�Z�Z�(;�F�Z�K�K���)�)�v�C��I�F�G�G� �%�f�-�(��3���$�[�[��V�[�D�D���)�)�v�C��I�F�G�G�� �>�$��!8�9�9�KD�K�@�B� L�E�sq�A$J�&J�'BJ�J�AJ�J� AJ�J� A-J� J�AJ�J�3J�J�J�J�J�J)rrr#�listrrr3rrkrXrNro�dictrj� ImageContent�EmbeddedResource)�serverr#r3rXros r"�serverv$s���� �H� �F� ����  �$�u�~�~�"6�  ��  � ���� *�� *�C� *�� *� ����Z �d�5�:�:�.�Z ��Z �x ����/:��/:�"�/:� �e���%�"4�"4�4�u�7M�7M�M� N�/:��/:�b �M�s�C1C3c��J# �[RRR5IShv�N up[ 5IShv�N nUR XUR 55IShv�N SSS5IShv�N gNQN?NN !,IShv�N (df  g=f7f)N)�mcpru�stdio� stdio_serverrv�run�create_initialization_options)� read_stream� write_streamrus r"�mainrsq����z�z���,�,�.�.�2M�;��w����j�j� �v�'K�'K�'M� � � �/�.�.�� �/�.�.�.�sh�-B#�B�B#�B �B�'B �+B�,B �0 B#�;B�<B#�B �B �B#� B �B � B �B#)$r0�logging�os�mcp.server.stdiorx� mcp.typesr� mcp.serverr�pydanticr�mcp_server_rememberizer.utilsrrrrr r r r r rrr� basicConfig�INFO� getLogger�__name__�logger�REMEMBERIZER_BASE_URL�getenvrr,rrvrrVrWr"�<module>r�s��� �� ����� � � � ����'�,�,�'� � � �8� $��=�����#;�<��� �K� L�L� �1�;Q� R��m�V�m�` rW

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/skydeckai/rememberizer-mcp-ea-ck'

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