drowai-mcp 0.1.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 +48 -0
- package/dist/cli.js +3126 -0
- package/npm-shrinkwrap.json +1378 -0
- package/package.json +27 -0
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# drowai-mcp
|
|
2
|
+
|
|
3
|
+
`drowai-mcp` is the public MCP-only CLI for DrowAI.
|
|
4
|
+
|
|
5
|
+
It starts a stdio MCP server that exposes the canonical DrowAI diagram operations. The package does not expose HTTP API or viewer subcommands.
|
|
6
|
+
|
|
7
|
+
## Use via npx
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx drowai-mcp
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Persist data locally:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
DROWAI_DB_PATH=./state/drowai.sqlite npx drowai-mcp
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or pass flags explicitly:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx drowai-mcp --db-path ./state/drowai.sqlite
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Options
|
|
26
|
+
|
|
27
|
+
- `--db-path <path>`
|
|
28
|
+
- `--auth-token <token>`
|
|
29
|
+
- `--help`
|
|
30
|
+
- `--version`
|
|
31
|
+
|
|
32
|
+
Environment fallbacks:
|
|
33
|
+
|
|
34
|
+
- `DROWAI_DB_PATH`
|
|
35
|
+
- `DROWAI_MCP_TOKEN`
|
|
36
|
+
|
|
37
|
+
If `--auth-token` / `DROWAI_MCP_TOKEN` is omitted, the CLI generates a process-local auth secret automatically. You normally do not need to set it.
|
|
38
|
+
|
|
39
|
+
## MCP client example
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"command": "npx",
|
|
44
|
+
"args": ["-y", "drowai-mcp"]
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Persistence is local unless `--db-path` or `DROWAI_DB_PATH` is set.
|