mem-brain-mcp 1.0.3__py3-none-any.whl → 1.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mem_brain_mcp/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  """Mem-Brain MCP Server - Exposes Mem-Brain API as MCP tools."""
2
2
 
3
- __version__ = "1.0.3"
3
+ __version__ = "1.0.4"
4
4
 
mem_brain_mcp/server.py CHANGED
@@ -1143,16 +1143,27 @@ async def unlink_memories(memory_id_1: str, memory_id_2: str) -> str:
1143
1143
 
1144
1144
 
1145
1145
  @mcp.tool()
1146
- async def get_stats() -> str:
1146
+ async def get_stats(_placeholder: Optional[bool] = None) -> str:
1147
1147
  """Get memory system statistics including total memories, links, and top tags. Use this when user asks 'how much do you remember?' or wants an overview of their memory system.
1148
1148
 
1149
+ Parameters:
1150
+ _placeholder (bool, optional): Placeholder parameter for OpenCode compatibility. This parameter is ignored and can be omitted or set to any value. The function takes no actual parameters.
1151
+ - This is a workaround for MCP clients that incorrectly require a parameter for parameterless tools
1152
+ - Can be safely omitted or set to None/True/False
1153
+ - Example: get_stats() or get_stats(_placeholder=True)
1154
+
1149
1155
  Returns:
1150
1156
  str: Formatted statistics including total memories, links, and top tags.
1151
1157
 
1152
1158
  Examples:
1153
- # Get statistics
1159
+ # Get statistics (preferred - no parameters needed)
1154
1160
  get_stats()
1161
+
1162
+ # Get statistics (OpenCode workaround - parameter is ignored)
1163
+ get_stats(_placeholder=True)
1155
1164
  """
1165
+ # _placeholder parameter is ignored - this is a workaround for OpenCode compatibility
1166
+ # The function actually takes no parameters, but some MCP clients incorrectly require one
1156
1167
  try:
1157
1168
  logger.info("get_stats called")
1158
1169
  client = await _get_api_client()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mem-brain-mcp
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: MCP Server for Mem-Brain API - Exposes memory operations as MCP tools
5
5
  Keywords: ai,claude,cursor,llm,mcp,memory,model-context-protocol
6
6
  Classifier: Development Status :: 4 - Beta
@@ -0,0 +1,9 @@
1
+ mem_brain_mcp/__init__.py,sha256=IxDcMoheWmVbcdZEJSXj5fAx0WlYMjVonvvG0boqsec,89
2
+ mem_brain_mcp/__main__.py,sha256=H_mwoKm1FBmu4KzAcQcq-TXZqeNvlrAekAxB1s4F4hA,712
3
+ mem_brain_mcp/client.py,sha256=7KFGcLoPDaOOLiuG2lygQK7xH5Kio-YifDjuSpDoDJ8,6993
4
+ mem_brain_mcp/config.py,sha256=xx2lBkCIeT85t0HxtORwZHSU3hZT_EdsThpfjwPJhbQ,1261
5
+ mem_brain_mcp/server.py,sha256=Yw92d-Qy5kRDAaIC8VjEKBOYKCy2p6neZ9OSfxsThdY,69640
6
+ mem_brain_mcp-1.0.4.dist-info/METADATA,sha256=7N3lTIQRHbFLfYdZyf2GZIowXEbmofVxO8QOrPFUCkE,5228
7
+ mem_brain_mcp-1.0.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
8
+ mem_brain_mcp-1.0.4.dist-info/entry_points.txt,sha256=NH6QYQ-Sd8eJn5crpe_DL1PvGeUlL3y65968xPhmwG8,62
9
+ mem_brain_mcp-1.0.4.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- mem_brain_mcp/__init__.py,sha256=4mabvpmReQ0ZVZ-xw8FrwHAdGDhjWQDpHhWg_11lxmY,89
2
- mem_brain_mcp/__main__.py,sha256=H_mwoKm1FBmu4KzAcQcq-TXZqeNvlrAekAxB1s4F4hA,712
3
- mem_brain_mcp/client.py,sha256=7KFGcLoPDaOOLiuG2lygQK7xH5Kio-YifDjuSpDoDJ8,6993
4
- mem_brain_mcp/config.py,sha256=xx2lBkCIeT85t0HxtORwZHSU3hZT_EdsThpfjwPJhbQ,1261
5
- mem_brain_mcp/server.py,sha256=ieSIkwWp3777ETa1M3J_SBMRUu571e3YsJj_C70UXRM,68812
6
- mem_brain_mcp-1.0.3.dist-info/METADATA,sha256=dR7sgte11k7CQyL38FTrsRDVBjx4hhil8HCXtbl9abQ,5228
7
- mem_brain_mcp-1.0.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
8
- mem_brain_mcp-1.0.3.dist-info/entry_points.txt,sha256=NH6QYQ-Sd8eJn5crpe_DL1PvGeUlL3y65968xPhmwG8,62
9
- mem_brain_mcp-1.0.3.dist-info/RECORD,,