@brightbeamai/chap-coordinator-mcp 0.2.12 → 0.2.13

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 CHANGED
@@ -7,14 +7,47 @@ rest) can drive a CHAP workspace directly.
7
7
 
8
8
  Spec target: **MCP 2026-07-28**, serving MCP 2025-11-25 clients as well · CHAP 0.2.
9
9
 
10
+ ## Run it as a server
11
+
12
+ The package ships a stdio server, so an MCP client can use CHAP without any
13
+ code. Point the client at it:
14
+
15
+ ```json
16
+ {
17
+ "mcpServers": {
18
+ "chap": {
19
+ "command": "npx",
20
+ "args": ["-y", "@brightbeamai/chap-coordinator-mcp"],
21
+ "env": { "CHAP_DB_PATH": "~/chap.db" }
22
+ }
23
+ }
24
+ }
25
+ ```
26
+
27
+ All 39 methods arrive as tools named `chap.<method>`. Two environment
28
+ variables configure it:
29
+
30
+ | Variable | Effect |
31
+ |----------|--------|
32
+ | `CHAP_DB_PATH` | Path to a SQLite file. Without it the coordinator runs in memory and every workspace is lost when the client restarts. |
33
+ | `CHAP_PROFILES` | Comma-separated profiles for new workspaces. Defaults to Core plus review, whisper, deliberation, handoff, control, routing, modes and audit-scitt, so the audit chain is on from the first entry. |
34
+
35
+ Persistence needs `better-sqlite3`, an optional native dependency of the
36
+ coordinator. If `CHAP_DB_PATH` is set and it cannot be loaded the server says
37
+ so and exits rather than starting in memory and discarding the decisions it
38
+ was asked to keep.
39
+
40
+ The server is also listed in the [MCP registry](https://registry.modelcontextprotocol.io)
41
+ as `io.github.BrightbeamAI/chap`.
42
+
10
43
  ## Install
11
44
 
12
45
  ```bash
13
46
  npm install @brightbeamai/chap-coordinator-mcp
14
47
  ```
15
48
 
16
- Node 20+ required. Runtime dependencies: `@brightbeamai/chap-coordinator` and
17
- `@modelcontextprotocol/sdk`.
49
+ Node 20+ required. Runtime dependencies: `@brightbeamai/chap-coordinator`,
50
+ `@modelcontextprotocol/sdk` and `zod`. The binary is `chap-mcp-server`.
18
51
 
19
52
  ## Quick start
20
53
 
@@ -27,7 +60,7 @@ const coord = new Coordinator({
27
60
  defaultProfiles: ["core/1.0", "review/1.0", "audit-scitt/1.0"],
28
61
  });
29
62
 
30
- const server = makeChapMcpServer(coord, { name: "chap", version: "0.2.12" });
63
+ const server = makeChapMcpServer(coord, { name: "chap", version: "0.2.13" });
31
64
  await server.connect(new StdioServerTransport());
32
65
  ```
33
66