feat: Feature/517 local mcp cloud mode (#522) · basicmachines-co/basic-memory@8730067 · GitHub
Skip to content

Commit 8730067

Browse files
phernandezclaude
andauthored
feat: Feature/517 local mcp cloud mode (#522)
Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e14ba92 commit 8730067

12 files changed

Lines changed: 876 additions & 181 deletions

File tree

CLAUDE.md

Lines changed: 20 additions & 0 deletions

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,22 @@ basic-memory cloud check
357357
basic-memory cloud mount
358358
```
359359

360+
**Routing Flags** (for users with cloud subscriptions):
361+
362+
When cloud mode is enabled, CLI commands communicate with the cloud API by default. Use routing flags to override this:
363+
364+
```bash
365+
# Force local routing (useful for local MCP server while cloud mode is enabled)
366+
basic-memory status --local
367+
basic-memory project list --local
368+
369+
# Force cloud routing (when cloud mode is disabled but you want cloud access)
370+
basic-memory status --cloud
371+
basic-memory project info my-project --cloud
372+
```
373+
374+
The local MCP server (`basic-memory mcp`) automatically uses local routing, so you can use both local Claude Desktop and cloud-based clients simultaneously.
375+
360376
4. In Claude Desktop, the LLM can now use these tools:
361377

362378
**Content Management:**
@@ -433,6 +449,7 @@ Basic Memory uses [Loguru](https://github.com/Delgan/loguru) for logging. The lo
433449
|----------|---------|-------------|
434450
| `BASIC_MEMORY_LOG_LEVEL` | `INFO` | Log level: DEBUG, INFO, WARNING, ERROR |
435451
| `BASIC_MEMORY_CLOUD_MODE` | `false` | When `true`, API logs to stdout with structured context |
452+
| `BASIC_MEMORY_FORCE_LOCAL` | `false` | When `true`, forces local API routing (ignores cloud mode) |
436453
| `BASIC_MEMORY_ENV` | `dev` | Set to `test` for test mode (stderr only) |
437454

438455
### Examples

src/basic_memory/cli/commands/mcp.py

Lines changed: 61 additions & 57 deletions

0 commit comments

Comments
 (0)