Skip to content

feat(cli): add locked and multi-space MCP modes - #178

Merged
jgpruitt merged 1 commit into
mainfrom
jgpruitt/multi-space-mcp
Jul 30, 2026
Merged

feat(cli): add locked and multi-space MCP modes#178
jgpruitt merged 1 commit into
mainfrom
jgpruitt/multi-space-mcp

Conversation

@jgpruitt

Copy link
Copy Markdown
Collaborator

Goal

Allow a single Memory Engine MCP server to work across accessible spaces without relying on a project or stored active-space default.

Changes

  • Add two explicit MCP modes:
  • Locked: --space or ME_SPACE fixes all memory operations to one space.
  • Multi-space: no explicit selector; memory tools require a per-call space and expose me_space_list.
  • Keep per-call space selection same-server only; authorization, membership, grants, and restricted-key limits remain server-enforced.
  • Build isolated memory clients per call to prevent X-Me-Space header leakage during concurrent tool calls.
  • Make unpinned session and API-key agent installations consistently multi-space.
  • Document the conditional tool surface across MCP, CLI, and agent-install guides.
  • Harden startup/input handling for blank, whitespace-padded, and templated space values.

@jgpruitt jgpruitt self-assigned this Jul 30, 2026
@jgpruitt
jgpruitt merged commit 3016156 into main Jul 30, 2026
6 checks passed
@jgpruitt
jgpruitt deleted the jgpruitt/multi-space-mcp branch July 30, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant