mem-brain-mcp 1.0.0__py3-none-any.whl → 1.0.1__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/config.py CHANGED
@@ -16,11 +16,16 @@ class Settings(BaseSettings):
16
16
  )
17
17
 
18
18
  # API Configuration
19
- api_base_url: str = "http://localhost:8000"
20
- api_key: Optional[str] = None
19
+ api_base_url: str = "http://membrain-api-alb-1094729422.ap-south-1.elb.amazonaws.com"
20
+ membrain_api_key: Optional[str] = None
21
21
  # NOTE: default_user_id is deprecated and unused.
22
22
  # Per-user API keys are extracted from request headers for proper isolation.
23
23
  # Each MCP client should configure their own API key via headers.
24
+
25
+ @property
26
+ def api_key(self) -> Optional[str]:
27
+ """Backward compatibility property for api_key."""
28
+ return self.membrain_api_key
24
29
 
25
30
  # MCP Server Configuration
26
31
  mcp_server_host: str = "0.0.0.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mem-brain-mcp
3
- Version: 1.0.0
3
+ Version: 1.0.1
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
@@ -38,21 +38,40 @@ MCP (Model Context Protocol) server that exposes Mem-Brain API functionality as
38
38
  - **HTTP/SSE Transport**: Run independently, accessible remotely
39
39
  - **CLI Interface**: Packaged for easy global execution
40
40
 
41
- ## Instant Execution (Recommended)
41
+ ## Installation
42
+
43
+ ### From PyPI (Recommended)
44
+
45
+ Install from PyPI using `pip` or `uv`:
46
+
47
+ ```bash
48
+ # Using pip
49
+ pip install mem-brain-mcp
50
+
51
+ # Using uv
52
+ uv pip install mem-brain-mcp
53
+ ```
54
+
55
+ Then run globally:
56
+
57
+ ```bash
58
+ mem-brain-mcp
59
+ ```
60
+
61
+ ### Instant Execution with uvx
42
62
 
43
- You can run the MCP server instantly without manual installation using `uv`:
63
+ You can run the MCP server instantly without manual installation using `uvx`:
44
64
 
45
65
  ```bash
46
- # Run using uvx (loads environment from .env or shell)
66
+ # Run using uvx (uses default API URL)
47
67
  uvx mem-brain-mcp
48
68
 
49
- # Run with custom API URL
50
- export API_BASE_URL=http://your-api-alb-url.com
69
+ # Override API URL or set JWT token if needed
70
+ export API_BASE_URL=http://your-custom-api-url.com
71
+ export MEMBRAIN_API_KEY=your-jwt-token-here
51
72
  uvx mem-brain-mcp
52
73
  ```
53
74
 
54
- ## Installation
55
-
56
75
  ### From Source
57
76
 
58
77
  1. Install using `uv` (recommended) or `pip`:
@@ -70,13 +89,14 @@ mem-brain-mcp
70
89
 
71
90
  ## Configuration
72
91
 
73
- The server reads configuration from environment variables or a `.env` file in the current working directory:
92
+ The server reads configuration from environment variables or a `.env` file in the current working directory. Most settings have sensible defaults:
74
93
 
75
94
  ```env
76
- # API Configuration
77
- API_BASE_URL=http://localhost:8000
78
- # NOTE: API_KEY is optional here - per-user API keys are configured in MCP clients
79
- API_KEY=your_api_key_here # Optional: fallback for single-user scenarios
95
+ # API Configuration (optional - defaults to production API)
96
+ API_BASE_URL=http://membrain-api-alb-1094729422.ap-south-1.elb.amazonaws.com
97
+ # NOTE: MEMBRAIN_API_KEY is actually a JWT access token (from login/signup)
98
+ # Per-user JWT tokens are typically configured in MCP clients via headers
99
+ MEMBRAIN_API_KEY=your_jwt_token_here # Optional: fallback for single-user scenarios
80
100
 
81
101
  # MCP Server Configuration
82
102
  MCP_SERVER_HOST=0.0.0.0
@@ -86,9 +106,11 @@ MCP_SERVER_PORT=8100
86
106
  LOG_LEVEL=INFO
87
107
  ```
88
108
 
89
- ## Per-User API Key Configuration
109
+ **Note**: The `API_BASE_URL` defaults to the production Mem-Brain API endpoint, so you typically don't need to set it unless you're using a custom API instance.
110
+
111
+ ## Per-User JWT Token Configuration
90
112
 
91
- Each user must configure their own API key in their MCP client for proper user isolation. The server extracts tokens from request headers.
113
+ Each user must configure their own JWT access token in their MCP client for proper user isolation. The server extracts tokens from request headers. Get your JWT token by logging in or signing up to the Mem-Brain API.
92
114
 
93
115
  ### Cursor IDE (`~/.cursor/mcp.json`)
94
116
 
@@ -129,10 +151,20 @@ Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/
129
151
  "mcpServers": {
130
152
  "mem-brain": {
131
153
  "command": "uvx",
132
- "args": ["mem-brain-mcp"],
154
+ "args": ["mem-brain-mcp"]
155
+ }
156
+ }
157
+ }
158
+ ```
159
+
160
+ **Note**: After installing from PyPI, you can also use `mem-brain-mcp` directly. The API URL is set by default, but you can override it if needed:
161
+ ```json
162
+ {
163
+ "mcpServers": {
164
+ "mem-brain": {
165
+ "command": "mem-brain-mcp",
133
166
  "env": {
134
- "API_BASE_URL": "http://your-deployed-url",
135
- "JWT_SECRET_KEY": "your-secret"
167
+ "API_BASE_URL": "http://your-custom-api-url"
136
168
  }
137
169
  }
138
170
  }
@@ -1,9 +1,9 @@
1
1
  mem_brain_mcp/__init__.py,sha256=DifX5h1zBo_ResWlU7kT_HFCeptgPaJouZ03wxBUSqc,89
2
2
  mem_brain_mcp/__main__.py,sha256=H_mwoKm1FBmu4KzAcQcq-TXZqeNvlrAekAxB1s4F4hA,712
3
3
  mem_brain_mcp/client.py,sha256=7KFGcLoPDaOOLiuG2lygQK7xH5Kio-YifDjuSpDoDJ8,6993
4
- mem_brain_mcp/config.py,sha256=mu2HQPKkEjV_2QnlQ2gq7u0niXIvDCwpOgo7dRJjEcI,1055
4
+ mem_brain_mcp/config.py,sha256=xx2lBkCIeT85t0HxtORwZHSU3hZT_EdsThpfjwPJhbQ,1261
5
5
  mem_brain_mcp/server.py,sha256=mlbl3-D3OFb4HHP54daqiP3nMWEdiTv3upEdUFnlhAA,39604
6
- mem_brain_mcp-1.0.0.dist-info/METADATA,sha256=xeGMlWratQ-1jPrI3A8E3hc_AdrxI9VLOBPZStgWmWk,4327
7
- mem_brain_mcp-1.0.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
8
- mem_brain_mcp-1.0.0.dist-info/entry_points.txt,sha256=NH6QYQ-Sd8eJn5crpe_DL1PvGeUlL3y65968xPhmwG8,62
9
- mem_brain_mcp-1.0.0.dist-info/RECORD,,
6
+ mem_brain_mcp-1.0.1.dist-info/METADATA,sha256=AaOmWLOT6mGIrw7CysLZMacG3PbrzuOHD-K9XbuNsUs,5228
7
+ mem_brain_mcp-1.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
8
+ mem_brain_mcp-1.0.1.dist-info/entry_points.txt,sha256=NH6QYQ-Sd8eJn5crpe_DL1PvGeUlL3y65968xPhmwG8,62
9
+ mem_brain_mcp-1.0.1.dist-info/RECORD,,