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/LICENSE.md +44 -13
- package/README.md +21 -27
- package/dist/cli.d.ts +5 -9
- package/dist/cli.js +19 -62
- package/dist/config.d.ts +2 -2
- package/dist/config.js +15 -16
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/docs/Changing the graph.md +3 -3
- package/docs/Querying the graph.md +2 -2
- package/docs/rq agents.md +2 -2
- package/docs/rq check.md +3 -3
- package/docs/rq config.md +5 -5
- package/docs/rq coverage.md +2 -2
- package/docs/rq test.md +4 -4
- package/package.json +14 -14
- package/skills/requirements-authoring.md +2 -2
- package/skills/requirements-change.md +2 -2
- package/skills/requirements-coverage.md +2 -2
- package/bin/rq-mcp.js +0 -22
- package/dist/mcp.d.ts +0 -28
- package/dist/mcp.js +0 -70
- package/dist/view-script.d.ts +0 -41
- package/dist/view-script.js +0 -39
- package/dist/view.d.ts +0 -39
- package/dist/view.js +0 -321
- package/docs/rq view.md +0 -101
- package/docs/rq-mcp.md +0 -79
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.
|