@brightbeamai/chap-coordinator-mcp 0.2.12 → 0.3.0
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 +37 -4
- package/dist/cli.cjs +421 -14733
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +410 -14723
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +401 -14707
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +407 -14720
- package/dist/index.js.map +1 -1
- package/dist/schemas.cjs +236 -134
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +7 -4
- package/dist/schemas.d.ts +7 -4
- package/dist/schemas.js +236 -134
- package/dist/schemas.js.map +1 -1
- package/dist/tools.cjs +136 -39
- package/dist/tools.cjs.map +1 -1
- package/dist/tools.d.cts +46 -5
- package/dist/tools.d.ts +46 -5
- package/dist/tools.js +135 -39
- package/dist/tools.js.map +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -5,7 +5,40 @@ instance and exposes every CHAP method as an [MCP](https://modelcontextprotocol.
|
|
|
5
5
|
tool, so any MCP client (Claude Desktop, Cursor, Claude Code, the
|
|
6
6
|
rest) can drive a CHAP workspace directly.
|
|
7
7
|
|
|
8
|
-
Spec target: **MCP 2026-07-28**, serving MCP 2025-11-25 clients as well · CHAP 0.
|
|
8
|
+
Spec target: **MCP 2026-07-28**, serving MCP 2025-11-25 clients as well · CHAP 0.3.
|
|
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`.
|
|
9
42
|
|
|
10
43
|
## Install
|
|
11
44
|
|
|
@@ -13,8 +46,8 @@ Spec target: **MCP 2026-07-28**, serving MCP 2025-11-25 clients as well · CHAP
|
|
|
13
46
|
npm install @brightbeamai/chap-coordinator-mcp
|
|
14
47
|
```
|
|
15
48
|
|
|
16
|
-
Node 20+ required. Runtime dependencies: `@brightbeamai/chap-coordinator
|
|
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.
|
|
63
|
+
const server = makeChapMcpServer(coord, { name: "chap", version: "0.3.0" });
|
|
31
64
|
await server.connect(new StdioServerTransport());
|
|
32
65
|
```
|
|
33
66
|
|