You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update README.md and server.py documentation for clarity and consistency. Revise installation instructions, enhance usage examples, and improve memory file guidelines.
Copy file name to clipboardExpand all lines: README.md
+89-56Lines changed: 89 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Project Memory MCP
2
2
3
-
An MCP Server to store and retrieve project information from memory files. This allows AI agents (like Claude) to maintain persistent memory about projects between conversations.
3
+
An MCP Server to store and retrieve project information from memory file. This allows AI agents (like Claude) to maintain persistent memory about projects between conversations.
4
4
5
5
## Overview
6
6
@@ -13,38 +13,17 @@ The memory is stored in a `MEMORY.md` file in each project directory.
@@ -79,48 +76,85 @@ If you've installed the package with pip:
79
76
}
80
77
```
81
78
82
-
### Configuring Claude Desktop
79
+
> **Note:** Replace `/Users/your-username` with the actual path to your own projects and code directories.
83
80
84
-
1. Install Claude Desktop from the [official website](https://claude.ai/desktop)
85
-
2. Open Claude Desktop
86
-
3. From the menu, select Settings → Developer → Edit Config
87
-
4. Replace the config with one of the examples above (modify paths as needed)
88
-
5. Save and restart Claude Desktop
81
+
## Arguments
89
82
90
-
## Tools
83
+
The `--allowed-dir` argument is used to specify the directories that the server has access to. You can use it multiple times to allow access to multiple directories. All directories inside the allowed directories are also allowed.
84
+
It is optional. If not provided, the server will only have access to the home directory of the user running the server.
85
+
86
+
87
+
## Usage
88
+
89
+
The MCP server is started by the client (e.g., Claude Desktop) based on the configuration you provide. You don't need to start the server manually.
90
+
91
+
### Tools
91
92
92
93
Project Memory MCP provides three tools:
93
94
94
-
### get_project_memory
95
+
####get_project_memory
95
96
96
-
Retrieves the entire project memory. Should be used at the beginning of every conversation.
97
+
Retrieves the entire project memory in Markdown format. Should be used at the beginning of every conversation about a project.
97
98
98
-
```
99
+
```python
99
100
get_project_memory(project_path: str) ->str
100
101
```
102
+
-**project_path**: Full path to the project directory.
103
+
- Returns the content of the MEMORY.md file as a string.
104
+
- Raises `FileNotFoundError` if the project or memory file does not exist.
105
+
- Raises `PermissionError` if the project path is not in allowed directories.
101
106
102
-
### set_project_memory
107
+
####set_project_memory
103
108
104
-
Sets the entire project memory. Use when creating a new memory fileor when updates fail.
109
+
Sets (overwrites) the entire project memory. Use this when creating a new memory file, replacing the whole memory, or if `update_project_memory` fails.
0 commit comments