fix: add mcp command with setup guidance#315
Conversation
|
Friendly follow-up: required checks look configured but have not started yet, and the PR UI indicates a maintainer workflow approval is needed before CI can run. Could a maintainer approve workflows for this PR so lint and tests can start? Happy to make any changes requested in review. |
There was a problem hiding this comment.
Pull request overview
Adds a first-class mcp subcommand to the mempalace CLI so mempalace mcp is recognized and prints MCP setup guidance (instead of failing with an argparse invalid-choice error), and updates docs/tests accordingly.
Changes:
- Register
mcpas a CLI subcommand and dispatch it to a newcmd_mcphandler. - Update help/documentation command lists to include
mempalace mcp. - Add a regression test asserting the
mcpcommand prints setup guidance.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
mempalace/cli.py |
Adds cmd_mcp, registers mcp subcommand, wires dispatch. |
mempalace/instructions/help.md |
Adds mempalace mcp to the instructions help command list. |
README.md |
Adds mempalace mcp to the “all commands” section. |
tests/test_cli.py |
Adds a regression test for mcp command output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Addressed Copilot note about What changed:
Validation:
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Addressed the latest Copilot comments about non-runnable bracket placeholders. Update:
Validation:
|
|
@kpulik Please check conflicts |
|
Conflicts resolved against latest I retained upstream CLI test additions and re-applied the
Ready for re-review. |
|
Quick verification after v3.1.0 release: I tested the published wheel and Repro from clean install:
Observed:
So #296 appears closed by release/version bump, but the exact CLI path this PR addresses ( Happy path from here could be either:
|
New `mempalace mcp` command prints copy-pastable instructions for wiring the MemPalace MCP server into Claude Code (or any MCP-capable host). Honours the top-level --palace flag to include a --palace argument in the printed command. Adapted from upstream 2981433 (PR MemPalace#315), by @kpulik. Upstream prints `python -m mempalace.mcp_server` which assumes a pip install; this fork's delivery model is Docker Compose, so the printed commands wrap the module invocation in `docker compose run --rm -i --entrypoint python mempalace -m mempalace.mcp_server`. Upstream's help.md edit is dropped because this fork does not ship the instructions/ package. Co-Authored-By: Kevin Pulikkottil <[email protected]> Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
) Record the four commits ported in this sync window (MCP null-args fix, MCP protocol version negotiation, 500 MB file-size guard, mempalace mcp subcommand) in the Sync status paragraph, with upstream hashes, PR numbers, and original authors for attribution. Also list the newly-skipped commits from the same window so a future audit doesn't re-walk them: the ChromaDB-specific Windows handle release and cmd_repair recursion fix, the PR MemPalace#252 palace.py / KG consolidation and md5→sha256 drawer-ID change, the metadata TTL cache upstream itself removed, upstream's macOS/Windows CI split, and the 3.0.x/3.1.0 version bump chore commits. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
* fix: add mcp command with setup guidance * fix: include --palace guidance in mcp command output * fix: make mcp guidance commands copy-pastable --------- Co-authored-by: Milla J <[email protected]>
Fixes #296
Summary
mcpCLI command somempalace mcpis recognizedChanges
mempalace/cli.py: addcmd_mcp, registermcpsubcommand, wire dispatchmempalace/instructions/help.md: includemempalace mcpin command listREADME.md: includemempalace mcpin all commands sectiontests/test_cli.py: add regression test formcpcommand outputValidation
python3 -m pytest tests/test_cli.py tests/test_version_consistency.py -qpython3 -m mempalace mcp