File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
src/mcp_server_rememberizer Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1313 APP_NAME ,
1414 LIST_DOCUMENTS_PATH ,
1515 LIST_INTEGRATIONS_PATH ,
16+ MEMORIZE_PATH ,
1617 RETRIEVE_DOCUMENT_PATH ,
1718 RETRIEVE_SLACK_PATH ,
1819 SEARCH_PATH ,
@@ -192,6 +193,29 @@ async def list_tools() -> list[types.Tool]:
192193 },
193194 },
194195 ),
196+ types .Tool (
197+ name = RememberizerTools .MEMORIZE .value ,
198+ description = (
199+ "Save a piece of text information in your Rememberizer account "
200+ "to help you discover semantically similar knowledge in the future."
201+ ),
202+ inputSchema = {
203+ "type" : "object" ,
204+ "properties" : {
205+ "name" : {
206+ "type" : "string" ,
207+ "description" : (
208+ "Name of the information. "
209+ "This is used to identify the information in the future."
210+ ),
211+ },
212+ "content" : {
213+ "type" : "string" ,
214+ "description" : "The information you wish to memorize." ,
215+ },
216+ },
217+ },
218+ ),
195219 ]
196220
197221 @server .call_tool ()
@@ -231,6 +255,13 @@ async def call_tool(
231255 params = {"page" : page , "page_size" : page_size }
232256 data = await client .get (LIST_DOCUMENTS_PATH , params = params )
233257 return [types .TextContent (type = "text" , text = str (data ))]
258+ case RememberizerTools .MEMORIZE .value :
259+ params = {
260+ "name" : arguments ["name" ],
261+ "content" : arguments ["content" ],
262+ }
263+ data = await client .post (MEMORIZE_PATH , data = params )
264+ return [types .TextContent (type = "text" , text = str (data ))]
234265 case _:
235266 raise ValueError (f"Unknown tool: { name } " )
236267
Original file line number Diff line number Diff line change 1919SEARCH_PATH = "documents/search/"
2020AGENTIC_SEARCH_PATH = "documents/agentic_search/"
2121LIST_INTEGRATIONS_PATH = "integrations/"
22+ MEMORIZE_PATH = "documents/memorize/"
2223
2324
2425class RememberizerTools (Enum ):
@@ -27,6 +28,7 @@ class RememberizerTools(Enum):
2728 LIST_INTEGRATIONS = "rememberizer_list_integrations"
2829 ACCOUNT_INFORMATION = "rememberizer_account_information"
2930 LIST_DOCUMENTS = "rememberizer_list_documents"
31+ MEMORIZE = "rememberizer_memorize"
3032
3133
3234class APIClient :
You can’t perform that action at this time.
0 commit comments