@systemdox/mcp-server 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/dist/cli.js +1575 -158
- package/dist/http.js +927 -17
- package/dist/index.js +927 -17
- package/dist/lib/memory-sync.d.ts +150 -0
- package/dist/lib/memory-sync.js +363 -0
- package/dist/lib/person-values.d.ts +6 -3
- package/dist/lib/person-values.js +1 -1
- package/dist/setup-team.d.ts +80 -0
- package/dist/setup-team.js +1593 -0
- package/dist/sync-memory.d.ts +53 -0
- package/dist/sync-memory.js +1219 -0
- package/dist/tools/team-setup.d.ts +5 -1
- package/dist/tools/team-setup.js +920 -10
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import type { SystemDoxApiClient } from "../lib/api-client.js";
|
|
3
3
|
import { type FileIn, type PartName } from "../lib/team-setup-types.js";
|
|
4
|
+
import { type SyncClient } from "../sync-memory.js";
|
|
4
5
|
/**
|
|
5
6
|
* The team setup over MCP (ADR-217 with Amendments 1 and 2,
|
|
6
7
|
* specs/changes/team-setup/contract.md):
|
|
@@ -12,10 +13,13 @@ import { type FileIn, type PartName } from "../lib/team-setup-types.js";
|
|
|
12
13
|
* before anything is sent; the hosted server takes `files`.
|
|
13
14
|
* - `resolve_person` reads back a person a memory names by token, for this
|
|
14
15
|
* session only. It writes nothing and keeps nothing.
|
|
16
|
+
* - `sync_memory` (local server only: it needs the disk) runs `sync-memory`
|
|
17
|
+
* with no person at a terminal: it never answers a question about a value
|
|
18
|
+
* and never rewrites a file for one; it names the command for the member.
|
|
15
19
|
*
|
|
16
20
|
* Both act on the key's own workspace, which `GET /team-setup` names.
|
|
17
21
|
*/
|
|
18
|
-
type Client = Pick<SystemDoxApiClient, "getOwnTeamSetup" | "publishPartVersion" | "resolvePerson">;
|
|
22
|
+
type Client = Pick<SystemDoxApiClient, "getOwnTeamSetup" | "publishPartVersion" | "resolvePerson"> & Partial<SyncClient>;
|
|
19
23
|
/**
|
|
20
24
|
* Read the files `part` accepts from `directory`, and nothing else. A link on
|
|
21
25
|
* the way to one of them (the file, its folder, anything inside a folder read
|