Skip to content

Commit cc5f1dc

Browse files
messelinkclaude
andcommitted
fix: add mempalace-mcp console entry point for pipx/uv compatibility
The MCP server config used `python -m mempalace.mcp_server` which fails when mempalace is installed via pipx or uv, since the system python cannot find the module in the isolated venv. Adding a `mempalace-mcp` console_scripts entry point ensures the MCP server works regardless of installation method (pip, pipx, uv, conda). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b060171 commit cc5f1dc

8 files changed

Lines changed: 10 additions & 21 deletions

File tree

.claude-plugin/.mcp.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"mempalace": {
3-
"command": "python3",
4-
"args": [
5-
"-m",
6-
"mempalace.mcp_server"
7-
]
3+
"command": "mempalace-mcp"
84
}
95
}

.claude-plugin/plugin.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
"commands": [],
1010
"mcpServers": {
1111
"mempalace": {
12-
"command": "python3",
13-
"args": [
14-
"-m",
15-
"mempalace.mcp_server"
16-
]
12+
"command": "mempalace-mcp"
1713
}
1814
},
1915
"keywords": [

.codex-plugin/plugin.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
"hooks": "./hooks.json",
2222
"mcpServers": {
2323
"mempalace": {
24-
"command": "python3",
25-
"args": [
26-
"-m",
27-
"mempalace.mcp_server"
28-
]
24+
"command": "mempalace-mcp"
2925
}
3026
},
3127
"interface": {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Restart Claude Code, then type `/skills` to verify "mempalace" appears.
139139

140140
```bash
141141
# Connect MemPalace once
142-
claude mcp add mempalace -- python -m mempalace.mcp_server
142+
claude mcp add mempalace -- mempalace-mcp
143143
```
144144

145145
Now your AI has 29 tools available through MCP. Ask it anything:
@@ -467,7 +467,7 @@ claude plugin marketplace add milla-jovovich/mempalace
467467
claude plugin install --scope user mempalace
468468

469469
# Or manually
470-
claude mcp add mempalace -- python -m mempalace.mcp_server
470+
claude mcp add mempalace -- mempalace-mcp
471471
```
472472

473473
### 29 Tools

examples/mcp_setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
Run the MCP server:
66

77
```bash
8-
python -m mempalace.mcp_server
8+
mempalace-mcp
99
```
1010

1111
Or add it to Claude Code:
1212

1313
```bash
14-
claude mcp add mempalace -- python -m mempalace.mcp_server
14+
claude mcp add mempalace -- mempalace-mcp
1515
```
1616

1717
## Available Tools

mempalace/instructions/init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If this fails, report the error and stop.
4949

5050
Run the following command to register the MemPalace MCP server with Claude:
5151

52-
claude mcp add mempalace -- python -m mempalace.mcp_server
52+
claude mcp add mempalace -- mempalace-mcp
5353

5454
If this fails, report the error but continue to the next step (MCP
5555
configuration can be done manually later).

mempalace/mcp_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""
33
MemPalace MCP Server — read/write palace access for Claude Code
44
================================================================
5-
Install: claude mcp add mempalace -- python -m mempalace.mcp_server [--palace /path/to/palace]
5+
Install: claude mcp add mempalace -- mempalace-mcp [--palace /path/to/palace]
66
77
Tools (read):
88
mempalace_status — total drawers, wing/room breakdown

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Repository = "https://github.com/milla-jovovich/mempalace"
3636

3737
[project.scripts]
3838
mempalace = "mempalace.cli:main"
39+
mempalace-mcp = "mempalace.mcp_server:main"
3940

4041
[project.optional-dependencies]
4142
dev = ["pytest>=7.0", "pytest-cov>=4.0", "ruff>=0.4.0", "psutil>=5.9"]

0 commit comments

Comments
 (0)