mem-brain-mcp 1.0.4__py3-none-any.whl → 1.0.5__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.4"
3
+ __version__ = "1.0.5"
4
4
 
mem_brain_mcp/server.py CHANGED
@@ -13,6 +13,7 @@ from starlette.responses import JSONResponse
13
13
 
14
14
  from mem_brain_mcp.client import APIClient
15
15
  from mem_brain_mcp.config import settings
16
+ from mem_brain_mcp import __version__
16
17
 
17
18
  # The comprehensive agent instructions (embedded for MCP distribution)
18
19
  AGENT_INSTRUCTIONS = """You are an intelligent assistant with a persistent, evolving memory graph.
@@ -1490,10 +1491,24 @@ async def health_check(request: Request) -> JSONResponse:
1490
1491
  )
1491
1492
 
1492
1493
 
1494
+ def _mask_api_url(url: str) -> str:
1495
+ """Mask the API URL, showing only the first 1/4 and hiding the rest."""
1496
+ if not url:
1497
+ return "Not set"
1498
+ # Show first 1/4 of the URL, mask the rest
1499
+ url_length = len(url)
1500
+ visible_length = max(1, url_length // 4)
1501
+ if visible_length >= url_length:
1502
+ return url
1503
+ visible_part = url[:visible_length]
1504
+ masked_part = "*" * (url_length - visible_length)
1505
+ return f"{visible_part}{masked_part}"
1506
+
1507
+
1493
1508
  def run_server():
1494
1509
  """Run the FastMCP server with HTTP transport."""
1495
- logger.info(f"Starting Mem-Brain MCP Server on {settings.mcp_server_host}:{settings.mcp_server_port}")
1496
- logger.info(f"API URL: {settings.api_url}")
1510
+ logger.info(f"Starting Mem-Brain MCP Server v{__version__} on {settings.mcp_server_host}:{settings.mcp_server_port}")
1511
+ logger.info(f"API URL: {_mask_api_url(settings.api_url)}")
1497
1512
  logger.info(f"API Key: {'***' if settings.api_key else 'Not set'}")
1498
1513
 
1499
1514
  # Configure CORS for browser-based and MCP clients
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mem-brain-mcp
3
- Version: 1.0.4
3
+ Version: 1.0.5
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=VjYIpP-y244JwHQcw2vVYsyAGIdNgyX-XTq1_HJWK1c,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=vH-xwwkS38thwajW-XraUftTRJZUaY23DxqJyumhvKI,70173
6
+ mem_brain_mcp-1.0.5.dist-info/METADATA,sha256=pt4rXTpgSP5FMxpkTZl8I0dPswJVf1fNESuSKPyDrq8,5228
7
+ mem_brain_mcp-1.0.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
8
+ mem_brain_mcp-1.0.5.dist-info/entry_points.txt,sha256=NH6QYQ-Sd8eJn5crpe_DL1PvGeUlL3y65968xPhmwG8,62
9
+ mem_brain_mcp-1.0.5.dist-info/RECORD,,
@@ -1,9 +0,0 @@
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,,