asljs-rq-cli 0.1.1 → 0.1.3

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/docs/rq-mcp.md DELETED
@@ -1,79 +0,0 @@
1
- # rq-mcp
2
-
3
- `rq-mcp` is an MCP server with a tool per `rq` command, so that an AI agent can
4
- check, test and change requirements without a shell.
5
-
6
- ## Running it
7
-
8
- ```bash
9
- rq-mcp
10
- ```
11
-
12
- It reads JSON-RPC requests from standard input, one per line, and writes the
13
- responses to standard output, as the Model Context Protocol's stdio transport
14
- does; it stops when standard input ends. An MCP client starts it, e.g. in a
15
- Claude Code `.mcp.json`:
16
-
17
- ```json
18
- {
19
- "mcpServers": {
20
- "rq": {
21
- "command": "npx",
22
- "args": [ "rq-mcp" ]
23
- }
24
- }
25
- }
26
- ```
27
-
28
- ## Tools
29
-
30
- A tool per command, named by the command, with `_` between a command and its
31
- subcommand: `test`, `coverage`, `view`, `check`, `list`, `links`, `backlinks`,
32
- `tojson`, `agents`, `config`, `add_requirement`, `add_test`, `link`, `unlink`,
33
- `remove`, `move` and `log`. Each tool's arguments are the command's arguments
34
- and options, by name:
35
-
36
- ```json
37
- {
38
- "name": "test",
39
- "arguments": {
40
- "targets": [ "R1" ],
41
- "recurse": true,
42
- "workingDir": "dev/rq"
43
- }
44
- }
45
- ```
46
-
47
- - an argument that takes several values, such as `targets`, is an array;
48
- - an option without a value, such as `recurse`, is a boolean;
49
- - an option with an optional value, such as `ai`, takes a string, and an empty
50
- string gives the option without one: `"ai": ""` is `--ai`;
51
- - `workingDir` is the folder the command works in; by default the folder
52
- `rq-mcp` was started in. `requirementsDir` and `documentsDir` set the
53
- requirements and documents folders, as `--requirements-dir` and
54
- `--documents-dir` do.
55
-
56
- A call runs that command line, and the result is what it printed. A command that
57
- exits with a non-zero code - a failed test, a structure error - is an error
58
- result that ends with `Exit code: <n>`. Calls run one at a time.
59
-
60
- `test` with instruction steps and `coverage` run an AI agent, and can take
61
- minutes per test or requirement. `view` starts the server inside `rq-mcp`; it
62
- serves until standard input ends, when `rq-mcp` closes it.
63
-
64
- ## Logging
65
-
66
- `rq-mcp` logs nothing unless asked to, with `--loglevel`, `--logfile` and
67
- `--logformat`, or `RQ_LOG_LEVEL`, `RQ_LOG_FILE` and `RQ_LOG_FORMAT`. Standard
68
- output carries the protocol, so a level without a log file, or with `--logfile
69
- stdout`, is refused at startup; log to standard error, which MCP clients show,
70
- or to a file:
71
-
72
- ```bash
73
- rq-mcp --loglevel debug --logfile stderr
74
- ```
75
-
76
- At `debug` it logs each tool call and, as `rq` does, each command, test, step
77
- command, agent and post-processing run; at `trace` also each request, the
78
- agents' prompts and their output. A line that is not valid JSON is skipped and
79
- logged as a warning.