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
* Added a GitHub Pages-ready documentation site in `docs/` with:
29
+
30
+
* installation and setup guidance
31
+
* integration walkthroughs
32
+
* MCP tool and API reference
33
+
* project identity guidance
34
+
* copyable examples
35
+
* multilingual language switching
36
+
* Added documentation site assets and metadata:
37
+
38
+
*`favicon.ico`
39
+
*`favicon.svg`
40
+
* web manifest
41
+
* robots.txt
42
+
* sitemap.xml
43
+
* Added project identity migration tooling:
44
+
45
+
*`.mcp-project`
46
+
*`migrate-project-id.js`
47
+
48
+
### Changed
49
+
50
+
* Scoped `fetch_tasks` to the active project and added filtering by assignment, creator, status, and limit
51
+
* Scoped messaging retrieval to the active project to avoid cross-project coordination bleed
52
+
* Upgraded project-map storage to upsert by `project + file_path`, making the structure knowledge reusable instead of duplicative
53
+
* Unified project identity derivation across `mcp-shim.js` and direct `mcp-server.js` launches with a shared resolver, `MCP_PROJECT_ROOT`, and project-local override support via `.mcp-project`
54
+
* Updated agent instructions and README to reflect the task-claiming and project-map workflow
55
+
* Updated the validation script to include syntax checking for `docs/app.js`
56
+
* Expanded project bootstrap guidance to include the current tool surface and project-map seeding guidance
57
+
58
+
---
59
+
9
60
## [v2.0.0] — Multi-Agent System & MCP Evolution
10
61
11
62
Major architectural upgrade introducing a distributed multi-agent system with tasks, messaging, agent coordination, and project intelligence.
Copy file name to clipboardExpand all lines: PROJECT_MEMORY_BOOTSTRAP.md
+87-5Lines changed: 87 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ Impact: Keep MCP transport concerns separate from HTTP persistence concerns.
30
30
Type: constraint
31
31
Title: environment-driven identity
32
32
Context: MCP launch configuration
33
-
Details: Agent, project, scope, and server URL are injected through environment variables. MCP_AGENT identifies the client. MCP_PROJECT groups memory by project. MCP_SCOPE controls visibility. Missing values fall back to defaults in mcp-server.js.
34
-
Why: Incorrect launch config produces misleading stored metadata such as unknown agent or default project.
33
+
Details: Agent, project, scope, and server URL are injected through environment variables. MCP_AGENT identifies the client. MCP_PROJECT groups memory by project. MCP_SCOPE controls visibility. Project identity resolution now prefers a project-local override file (`.mcp-project` / `.mcp-project.json`), then project `.env`, then package metadata, then the nearest project-root folder. MCP_PROJECT_ROOT is injected for traceability.
34
+
Why: Incorrect launch config produces misleading stored metadata such as unknown agent or a generic workspace namespace like vscode.
35
35
Impact: Verify launch configuration before debugging memory attribution problems.
36
36
```
37
37
@@ -52,9 +52,91 @@ Impact: Preserve index initialization when changing startup or search logic.
52
52
Type: note
53
53
Title: current MCP tool surface
54
54
Context: protocol behavior
55
-
Details: The server exposes store_context, search_context, log_action, get_full_context, start_session, get_agent_instructions, and get_logs. store_context currently accepts only content from the MCP client side.
56
-
Why: Agents should not assume richer tool inputs than the MCP layer actually exposes.
57
-
Impact: Put important structured information directly into the stored content text.
55
+
Details: The server exposes memory tools, task tools (create_task, fetch_tasks, assign_task, update_task), messaging tools, agent registration tools, and project intelligence tools (create_project_map, fetch_project_map). store_context still accepts only content from the MCP client side, but structured project knowledge should now go into the project-map system instead of free-form memory whenever possible.
56
+
Why: Agents should not assume outdated MCP tool limits or skip the structured coordination/project-map layers.
57
+
Impact: Prefer project-map entries for architecture and file-ownership knowledge, and tasks/messages for coordination state.
58
+
```
59
+
60
+
## Project Map Seeds
61
+
62
+
Use the following entries to bootstrap the structured project map for this repository.
63
+
64
+
```text
65
+
Path: .
66
+
Type: project
67
+
Summary: Distributed MCP memory server for multi-agent coordination with MongoDB-backed persistence, task management, messaging, agent registration, and reusable project intelligence.
68
+
Key Details:
69
+
- Core runtime is split between MCP stdio transport and Express persistence API.
70
+
- Project identity is derived from nearest root markers and slugified for stable namespaces.
71
+
- Shared goal is coordination and knowledge reuse across AI agents, not isolated tool execution.
72
+
```
73
+
74
+
```text
75
+
Path: mcp-server.js
76
+
Type: module
77
+
Summary: MCP stdio entrypoint that defines the tool surface, starts the HTTP API on demand, injects agent/project identity, and forwards tool calls to backend routes.
78
+
Key Details:
79
+
- Uses the same project identity resolver as the shim.
80
+
- Exposes task, messaging, and project-map tools for agents.
81
+
- Waits for the HTTP API before calling backend endpoints.
82
+
```
83
+
84
+
```text
85
+
Path: server.js
86
+
Type: module
87
+
Summary: Express API and persistence orchestration layer that handles contexts, actions, sessions, agents, tasks, messages, logs, and project-map entries.
Both `mcp-shim.js` and direct `mcp-server.js` launches now derive the project name from the same resolver and slugify it into a stable `MCP_PROJECT` value. Resolution order is:
221
+
222
+
1.`.mcp-project` or `.mcp-project.json` in the project root
223
+
2.`MCP_PROJECT` from the project `.env`
224
+
3.`package.json` name / `mcpProject`
225
+
4. nearest project-root folder name
226
+
227
+
The shim also injects `MCP_PROJECT_ROOT` so agents can trace which workspace produced a memory entry. This repository now pins its identifier with `.mcp-project` and `.env` to `local-mcp-server`, so it will not inherit a generic workspace name like `vscode`.
228
+
229
+
If you already have old documents stored under another project name such as `vscode`, run `npm run migrate:project-id -- vscode local-mcp-server` to rewrite existing records in MongoDB.
230
+
231
+
---
232
+
233
+
## 📚 Documentation Site
234
+
235
+
A GitHub Pages-ready documentation site now lives in the [`docs/`](./docs/) folder.
236
+
237
+
It includes:
238
+
239
+
* installation and setup guidance
240
+
* editor and MCP integration patterns
241
+
* tool and API reference
242
+
* project identity and migration guidance
243
+
* copyable examples
244
+
* multilingual navigation
245
+
246
+
To publish it, enable GitHub Pages for the repository branch and select the `/docs` folder as the source.
0 commit comments