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>
This commit is contained in:
committed by
Igor Lins e Silva
parent
4fb0ee57e7
commit
9f5b8f5fd6
@@ -1,9 +1,5 @@
|
|||||||
{
|
{
|
||||||
"mempalace": {
|
"mempalace": {
|
||||||
"command": "python3",
|
"command": "mempalace-mcp"
|
||||||
"args": [
|
|
||||||
"-m",
|
|
||||||
"mempalace.mcp_server"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,7 @@
|
|||||||
"commands": [],
|
"commands": [],
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"mempalace": {
|
"mempalace": {
|
||||||
"command": "python3",
|
"command": "mempalace-mcp"
|
||||||
"args": [
|
|
||||||
"-m",
|
|
||||||
"mempalace.mcp_server"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -21,11 +21,7 @@
|
|||||||
"hooks": "./hooks.json",
|
"hooks": "./hooks.json",
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"mempalace": {
|
"mempalace": {
|
||||||
"command": "python3",
|
"command": "mempalace-mcp"
|
||||||
"args": [
|
|
||||||
"-m",
|
|
||||||
"mempalace.mcp_server"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"interface": {
|
"interface": {
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
Run the MCP server:
|
Run the MCP server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python -m mempalace.mcp_server
|
mempalace-mcp
|
||||||
```
|
```
|
||||||
|
|
||||||
Or add it to Claude Code:
|
Or add it to Claude Code:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
claude mcp add mempalace -- python -m mempalace.mcp_server
|
claude mcp add mempalace -- mempalace-mcp
|
||||||
```
|
```
|
||||||
|
|
||||||
## Available Tools
|
## Available Tools
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ If this fails, report the error and stop.
|
|||||||
|
|
||||||
Run the following command to register the MemPalace MCP server with Claude:
|
Run the following command to register the MemPalace MCP server with Claude:
|
||||||
|
|
||||||
claude mcp add mempalace -- python -m mempalace.mcp_server
|
claude mcp add mempalace -- mempalace-mcp
|
||||||
|
|
||||||
If this fails, report the error but continue to the next step (MCP
|
If this fails, report the error but continue to the next step (MCP
|
||||||
configuration can be done manually later).
|
configuration can be done manually later).
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
MemPalace MCP Server — read/write palace access for Claude Code
|
MemPalace MCP Server — read/write palace access for Claude Code
|
||||||
================================================================
|
================================================================
|
||||||
Install: claude mcp add mempalace -- python -m mempalace.mcp_server [--palace /path/to/palace]
|
Install: claude mcp add mempalace -- mempalace-mcp [--palace /path/to/palace]
|
||||||
|
|
||||||
Tools (read):
|
Tools (read):
|
||||||
mempalace_status — total drawers, wing/room breakdown
|
mempalace_status — total drawers, wing/room breakdown
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ Repository = "https://github.com/MemPalace/mempalace"
|
|||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
mempalace = "mempalace.cli:main"
|
mempalace = "mempalace.cli:main"
|
||||||
|
mempalace-mcp = "mempalace.mcp_server:main"
|
||||||
|
|
||||||
[project.entry-points."mempalace.backends"]
|
[project.entry-points."mempalace.backends"]
|
||||||
chroma = "mempalace.backends.chroma:ChromaBackend"
|
chroma = "mempalace.backends.chroma:ChromaBackend"
|
||||||
|
|||||||
Reference in New Issue
Block a user