mem-brain-mcp 1.0.4__tar.gz → 1.0.5__tar.gz
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-1.0.4 → mem_brain_mcp-1.0.5}/PKG-INFO +1 -1
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/pyproject.toml +1 -1
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/src/mem_brain_mcp/__init__.py +1 -1
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/src/mem_brain_mcp/server.py +17 -2
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/.dockerignore +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/.env +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/.gitignore +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/README.md +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/TROUBLESHOOTING.md +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/USAGE.md +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/aws/DEPLOYMENT.md +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/aws/alb-target-group.json +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/aws/deploy.sh +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/aws/ecs-service-config.json +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/aws/ecs-task-definition.json +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/aws/security-groups.md +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/docker/Dockerfile +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/src/mem_brain_mcp/__main__.py +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/src/mem_brain_mcp/client.py +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/src/mem_brain_mcp/config.py +0 -0
- {mem_brain_mcp-1.0.4 → mem_brain_mcp-1.0.5}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mem-brain-mcp
|
|
3
|
-
Version: 1.0.
|
|
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
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|