@plune-ai/cli 0.37.0 → 0.39.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 +53 -13
- package/THIRD_PARTY_NOTICES +229 -0
- package/dist/cli.cjs +28785 -10697
- package/dist/index.cjs +3461 -252
- package/dist/index.d.cts +63 -9
- package/dist/index.d.ts +63 -9
- package/dist/index.js +3461 -252
- package/dist/mcp-tools.cjs +10 -10
- package/dist/mcp-tools.d.cts +7 -7
- package/dist/mcp-tools.d.ts +7 -7
- package/dist/mcp-tools.js +10 -10
- package/dist/reporter-core.cjs +264 -236
- package/dist/reporter-core.d.cts +111 -112
- package/dist/reporter-core.d.ts +111 -112
- package/dist/reporter-core.js +264 -236
- package/package.json +1 -1
- package/skills/qa-mission/SKILL.md +141 -58
- package/skills/qa-mission/references/tool-calls.md +40 -0
package/README.md
CHANGED
|
@@ -42,14 +42,14 @@ echo 'ANTHROPIC_API_KEY=sk-ant-...' >> .env
|
|
|
42
42
|
|
|
43
43
|
# 3. Run the assertions
|
|
44
44
|
plune run
|
|
45
|
-
# →
|
|
45
|
+
# → 3 passed · 0 failed · 0 errored · 3 total · $0.0008 · 1840ms
|
|
46
46
|
|
|
47
47
|
# 4. Re-render the last run, or diff two runs to catch regressions
|
|
48
48
|
plune report --format markdown
|
|
49
49
|
plune diff baseline.json current.json --fail-on-regression
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Each run writes its full result to `.plune/last-run.json
|
|
52
|
+
Each run writes its full result to `.plune/last-run.json`; a `--dry-run` writes nothing there.
|
|
53
53
|
|
|
54
54
|
## Configuration
|
|
55
55
|
|
|
@@ -81,7 +81,7 @@ error. The provider API key is read from the environment based on `provider.type
|
|
|
81
81
|
| OpenAI | `openai` | `OPENAI_API_KEY` |
|
|
82
82
|
| OpenRouter | `openrouter` | `OPENROUTER_API_KEY` |
|
|
83
83
|
|
|
84
|
-
`model` is any id the provider serves; `plune init` starts you on `claude-sonnet-5-5`. A run's cost
|
|
84
|
+
`provider` may also be a list of models: every eval then runs on each, and `plune run` and `plune report` show a model × eval table (see the [configuration guide](docs/guide/configuration.md#several-models-a-model--eval-matrix)). `model` is any id the provider serves; `plune init` starts you on `claude-sonnet-5-5`. A run's cost
|
|
85
85
|
is priced from a built-in table of current models — a model it does not list costs `0`, with a
|
|
86
86
|
warning, until you add its rates under `pricing:` (`input_per_1k_usd`, `output_per_1k_usd`). Leave
|
|
87
87
|
`temperature` out for Claude models released after Opus 4.6: they take none, and the API answers 400
|
|
@@ -117,7 +117,7 @@ the last resort, used only when `PLUNE_TOKEN` is set nowhere else. Nothing write
|
|
|
117
117
|
|
|
118
118
|
| Command | Summary |
|
|
119
119
|
| ------- | ------- |
|
|
120
|
-
| `plune run` | Run the suite. Flags: `--dry-run` (price the run from the model's rates — no provider key, no network), `--only <id\|tag>` (repeatable), `--bail`, `--no-cache`, `--cache-strict`, `--cache-max-age <duration>`, `--concurrency <n>`, `--format console\|json\|markdown`, `-o, --output <file>`. |
|
|
120
|
+
| `plune run` | Run the suite. Flags: `--dry-run` (price the run from the model's rates — no provider key, no network; it prints the estimate with no verdict and does not replace the last run; with a [list of models](docs/guide/configuration.md#several-models-a-model--eval-matrix) each is priced at its own rates), `--only <id\|tag>` (repeatable; an eval id selects its cells on every model), `--bail`, `--no-cache`, `--cache-strict`, `--cache-max-age <duration>`, `--concurrency <n>`, `--format console\|json\|markdown`, `-o, --output <file>`. |
|
|
121
121
|
| `plune report` | Re-render the most recent run. Flags: `--format`, `-o`. |
|
|
122
122
|
| `plune diff <baseline> <current>` | Compare two `plune run --format json` outputs and report pass→fail regressions. Flags: `--fail-on-regression` (exit `1` on a regression, `3` when none but an eval was not measured), `--format`, `-o`. |
|
|
123
123
|
| `plune init` | Scaffold `plune.yaml`, a sample dataset, and `.env.example`. Flags: `--yes` (non-interactive), `--force`. |
|
|
@@ -126,8 +126,10 @@ the last resort, used only when `PLUNE_TOKEN` is set nowhere else. Nothing write
|
|
|
126
126
|
| `plune mcp serve` | Serve the Plune tools to an AI agent (Claude Code, Codex, any MCP client) over **MCP stdio**. See [Plune tools for AI agents](#plune-tools-for-ai-agents-plune-mcp). Flags: `--project <id>` (default `PLUNE_PROJECT`), `--read-only` (offer only the read tools). |
|
|
127
127
|
| `plune mcp check` | Check that **any** MCP server starts and answers: handshake, protocol version, capabilities, the lists, `ping`. See [Is the server alive](#is-the-server-alive-plune-mcp-check). Flags: `--check-timeout <duration>`, `--wait <duration>`, `--smoke` (with `--smoke-limit`, `--smoke-timeout`, `--budget`, `--allow-write-calls`), `--out [<format>=]<path>` (repeatable), `--reporter junit-xml`, `--format human\|json\|github\|markdown`, and the connection flags. Exit `0` healthy, `1` a check failed, `2` the server did not start, could not be reached or wants credentials, or a flag is wrong, `3` something could not be measured. |
|
|
128
128
|
| `plune mcp lint` | Check the tool list of **any** MCP server for what confuses a model — no account, no model. See [Checking any MCP server](#checking-any-mcp-server-plune-mcp-lint). Flags: `--fail-on error\|warn\|info\|never`, `--show-info`, `--format human\|json\|github\|markdown`, `--reporter junit-xml`, `--out [<format>=]<path>`, `--ignore-file <path>`, `--list-rules`, `--call`, `--call-limit <n>`, `--call-timeout <duration>`, and the connection flags (`--url`, `--header-env`, `--env`, …). Exit `0` clean, `1` findings, `2` the server did not start or a flag is wrong, `3` nothing measured. |
|
|
129
|
-
| `plune mcp snapshot` | Write the contract of **any** MCP server — tools, resources, resource templates, prompts, capabilities, instructions — as one stable JSON file to commit. See [Contract snapshots](#contract-snapshots-plune-mcp-snapshot-and-plune-mcp-diff). Flags: `--out <path>` (default stdout) and the connection flags. Exit `0` written, `2` the server did not start
|
|
129
|
+
| `plune mcp snapshot` | Write the contract of **any** MCP server — tools, resources, resource templates, prompts, capabilities, instructions — as one stable JSON file to commit. See [Contract snapshots](#contract-snapshots-plune-mcp-snapshot-and-plune-mcp-diff). Flags: `--out <path>` (default stdout), `--push` with `--server <id>` or `--server-name <name>` and optional `--environment <text>` (send it to the platform's MCP catalog; nothing is sent without `--push`), and the connection flags. Exit `0` written (or sent), `1` with `--push` the platform could not be reached (the snapshot is kept in a file), `2` the server did not start, a declared list could not be read, or the platform refused the push (login, body, quota), `3` the server lists nothing. |
|
|
130
130
|
| `plune mcp diff` | Compare a snapshot with another snapshot file or a live server: every change `breaking`, `non-breaking` or `informational`, with a reason. See [Contract snapshots](#contract-snapshots-plune-mcp-snapshot-and-plune-mcp-diff). Flags: `--fail-on breaking\|any\|none`, `--format human\|json\|github\|markdown`, `--reporter junit-xml`, `--out [<format>=]<path>`, and the connection flags. All three write [JSON, JUnit XML for `plune run import`, GitHub annotations and a pull request comment](docs/guide/cli.md#report-formats-of-plune-mcp-lint-check-and-diff) from one run. Exit `0` nothing at `--fail-on`, `1` a change at it, `2` a file cannot be read or the server did not start, `3` nothing to compare. |
|
|
131
|
+
| `plune mcp pin` | Pin the tools, prompts and resource templates of **any** MCP server in `plune-mcp.lock.json` after reading them in full, and check a live server against it in CI. See [Pinning approved tools](#pinning-approved-tools-plune-mcp-pin). Flags: `--check`, `--stability` (with `--times`, `--pause`, `--wait`), `--yes`, `--lock <path>`, `--name <label>`, `--format human\|json`, and the connection flags. `--check` exits `0` as pinned, `1` a difference, `2` a usage error, `3` nothing compared (the server could not be reached). |
|
|
132
|
+
| `plune mcp scan` | Scan what a model or a person cannot see in **any** MCP server, sending no probe unless `--active` asks for the declared ones (see the CLI guide): descriptions (hidden Unicode, override phrases), a pin file, client configuration (`.mcp.json`, `.cursor/mcp.json`, `.vscode/mcp.json`: secrets, plain http, shell launchers) and tool names across servers. See the [CLI guide](docs/guide/cli.md#plune-mcp-scan). Flags: `--snapshot [label=]file`, `--config <file>`, `--client claude-code\|cursor\|vscode`, `--pin-file`, `--only`/`--skip`, `--active` with `--probes`, `--confirm-host`, `--max-calls`, `--max-requests`, `--token-env`, `--other-token-env`, `--fail-on error\|warn\|never`, `--gate-heuristics`, `--allow-partial`, `--ignore-file`, `--allow-long-exceptions`, `--format human\|json\|github\|sarif`, `--reporter junit-xml`, `--out`, and the connection flags. Exit `0` nothing that gates, `1` a finding at `--fail-on`, `2` a usage error, `3` something could not be measured. |
|
|
131
133
|
| `plune mcp conformance` | Check **any** MCP server against the protocol: a catalog of checks with their requirement level and spec section, a score from the `MUST` checks only, a frozen profile so a score means the same thing next month. `--list-checks` prints the catalog without connecting; `--fixture <file>` names the only tools a run may call; `--format human|json`, `--reporter junit-xml` and `--out [<format>=]<path>` (repeatable) write JSON and JUnit XML for `plune run import` from one run. See the [CLI guide](docs/guide/cli.md#plune-mcp-conformance). |
|
|
132
134
|
| `plune sync` | Upload the latest local run to the platform. Flags: `--file <path>` to send a specific run JSON, `--fail-on-failures` to read the run's summary back once after the upload and exit with [the gate](#a-release-gate---fail-on-failures)'s code. Each upload carries an `Idempotency-Key` (SHA-256 of the body), so sending the same run again returns the same run rather than creating a second one. Against a platform with `POST /v1/jobs` the upload is also reported as a job (kind `sync`, counting the run's rows) that ends completed, or failed with the error text if the sync fails; an older platform without the route is not told, and a job report never fails the sync: when the sync goes through, one the platform did not take is said in one line on stderr. |
|
|
133
135
|
| `plune run import <file \| folder>` | Turn a **JUnit XML** or **Playwright JSON** report, a **k6 summary** or **Lighthouse JSON** report, a **folder of JUnit XML files** (Maven Surefire's `target/surefire-reports`, Gradle's `build/test-results/test`), or an **Allure `allure-results` folder**, into a run in Plune. Needs no provider key — nothing is generated. Flags: `--format junit\|playwright-json\|allure\|k6\|lighthouse` (detected when omitted: a folder with a `*-result.json` is Allure, any other folder is read as the JUnit `*.xml` files in it), `--name <text>` to call the run something other than the [folder-based default](#what-the-run-is-called), `--min-score <category>=<0-100>` (repeatable) for the score a [Lighthouse](#a-k6-summary-or-a-lighthouse-report) category needs to pass, `--key <externalKey>` to land several reports in one run (with `PLUNE_SHARED_RUN=1` — see below), `--create` to offer unmatched tests to the review queue, `--fail-on-missing-attachments` to exit 1 when a file a JUnit report names with `[[ATTACHMENT\|path]]`, or an Allure result names as a `source`, is not there (the results are sent either way), `--upload-concurrency <n>` for files uploaded at once ([1 to 32, default 16](#many-screenshots-upload-concurrency-and-retries)), `--fail-on-failures` to exit with [the gate](#a-release-gate---fail-on-failures)'s code on the summary the platform froze when this import finished the run. |
|
|
@@ -136,16 +138,16 @@ the last resort, used only when `PLUNE_TOKEN` is set nowhere else. Nothing write
|
|
|
136
138
|
| `plune run exec -- <command>` | Open a run, run the command inside it, close the run — and exit with whatever the command returned. Sets `PLUNE_SHARED_RUN` for you, so anything reporting inside joins that run. Flags: `--key <externalKey>`, `--name <text>` (as on `run start`), `--fail-on-failures` to exit with [the gate](#a-release-gate---fail-on-failures)'s code instead — or with the command's own when no result reached the run. |
|
|
137
139
|
| `plune run delete <id>` | Delete a run and everything it produced — its results and the review-queue entries it raised. Approved test cases and the audit log stay. **Recoverable for 30 days** (an owner of the project can put it back from Settings → Bin), then gone for good. No prompt: it is your data, and this command belongs in scripts. |
|
|
138
140
|
| `plune run report` | Replay `.plune/pending-results.jsonl` — send what the reporter could not. The lines of one reporter run go back as one run, with the commit and branch the reporter recorded. Once every result has gone the file is renamed to `pending-results.<time>.sent.jsonl`; if anything did not go, it stays as it was. Flags: `--file <path>`. |
|
|
139
|
-
| `plune ingest [dir]` | Record a [Cairn](https://github.com/plune-ai/cairn) run in Plune. Omit `[dir]` for the newest run under `./runs`, or name the directory holding `report.json`. Generated cases arrive as **review proposals** — nothing is created until a person approves it. Against a platform with `POST /v1/jobs` the ingest is also reported as a job (kind `ingest`, counting the cases sent, linked to the run it landed in) that ends completed, or failed with the error text if the ingest fails; as with `sync`, an older platform is not told and a job report never fails the ingest or changes its exit code. |
|
|
141
|
+
| `plune ingest [dir]` | Record a [Cairn](https://github.com/plune-ai/cairn) run in Plune. Omit `[dir]` for the newest run under `./runs`, or name the directory holding `report.json`. Generated cases arrive as **review proposals** — nothing is created until a person approves it. A run recorded with `--screencast` also sends each case's video and trace to its proposal (or to its result, for a case approved before), up to 100 MiB a file; a file that does not go is a line under the counters, never a failure. Against a platform with `POST /v1/jobs` the ingest is also reported as a job (kind `ingest`, counting the cases sent, linked to the run it landed in) that ends completed, or failed with the error text if the ingest fails; as with `sync`, an older platform is not told and a job report never fails the ingest or changes its exit code. |
|
|
140
142
|
| `plune pull [file]` | Write the project's test cases as **one Markdown document** — Testomat's classical format, plus Plune's own columns — to `plune/cases.md` (or `[file]`). Refuses to overwrite a file git sees as modified; `--force` overrides, `--suite <id>` takes one suite or folder and what is under it. |
|
|
141
143
|
| `plune push [file] [--dry-run]` | Send the document back. Cases are matched by `id`; a block without one becomes a draft; an unknown id is refused by line; **nothing is deleted**. Prints the report — created, updated, unchanged, refused, warnings — and with `--dry-run` writes nothing. Exit `4` when anything was refused. |
|
|
142
|
-
| `plune requirements import <file.md>` | Import requirements from a **Markdown file** (an SRS, a PRD, a page exported from a wiki). With no mapping flags it lists the tables and sections the file has and exits `0`; with `--table` or `--sections` it is a **dry run** that writes nothing until you add `--yes`. See [Requirements from a Markdown file](#requirements-from-a-markdown-file). Needs a Plune platform that serves `POST /v1/projects/:id/requirements/import
|
|
143
|
-
| `plune requirements links <file.md>` | Import a **traceability matrix** (a Markdown table of requirement key to test) as links between requirements and cases. With no flags it lists the tables the file has and exits `0`; with `--table`, `--requirement-column` and `--test-column` it is a **dry run** that writes nothing until you add `--yes`. See [Links from a traceability matrix](#links-from-a-traceability-matrix). Needs a platform that serves `POST /v1/projects/:id/requirements/import/links
|
|
144
|
-
| `plune verify` | Compare the project's **automated cases** with the Playwright tests in the code, **read-only
|
|
145
|
-
| `plune ids [--write]` | Write the Plune **case id of each Playwright test that names none** into a mapfile, `plune/ids.json` (`{ "<path-title>": "<case id>" }`), instead of editing your test files
|
|
144
|
+
| `plune requirements import <file.md>` | Import requirements from a **Markdown file** (an SRS, a PRD, a page exported from a wiki). With no mapping flags it lists the tables and sections the file has and exits `0`; with `--table` or `--sections` it is a **dry run** that writes nothing until you add `--yes`. See [Requirements from a Markdown file](#requirements-from-a-markdown-file). Needs a Plune platform that serves `POST /v1/projects/:id/requirements/import`. |
|
|
145
|
+
| `plune requirements links <file.md>` | Import a **traceability matrix** (a Markdown table of requirement key to test) as links between requirements and cases. With no flags it lists the tables the file has and exits `0`; with `--table`, `--requirement-column` and `--test-column` it is a **dry run** that writes nothing until you add `--yes`. See [Links from a traceability matrix](#links-from-a-traceability-matrix). Needs a platform that serves `POST /v1/projects/:id/requirements/import/links`. |
|
|
146
|
+
| `plune verify` | Compare the project's **automated cases** with the Playwright tests in the code, **read-only**. Prints both sides: cases in Plune that the code no longer has (already `detached`, or one a full run would detach) and tests in the code that Plune has no case for. A test is matched by the id it names (`PluneId` annotation or `@P<id>` in its title), else by its `path-title` key. Nothing is written to Plune and no id is added to your source. Playwright only. Flags: `--from <file>` (a saved `playwright test --list --reporter=json`, instead of running Playwright), `--playwright-config <path>`, `--json`, `--fail-on-drift` (exit `1` when either side has something the other lacks). |
|
|
147
|
+
| `plune ids [--write]` | Write the Plune **case id of each Playwright test that names none** into a mapfile, `plune/ids.json` (`{ "<path-title>": "<case id>" }`), instead of editing your test files. A **dry run** unless `--write`: it prints what it would add. Only tests whose case Plune already holds get an entry (matched by the `path-title` key); a test with no case yet is listed and skipped. Idempotent: entries are only added, never overwritten or removed (an entry for a test no longer in the code is kept and listed), the file is sorted so diffs stay small, and nothing is written when nothing changes. A mapfile that is not a JSON object of strings is refused (exit `2`) and left as it is. Playwright only. The Playwright reporter reads the mapfile: an entry names the case after the `PluneId` annotation, `@P<id>` and a metadata attachment, and before the `playwright-id` and `path-title` keys, so a renamed test keeps its case when the entry is updated with `plune ids --write` (override the path with `PLUNE_IDS_FILE` or the reporter option `idsFile`). Flags: `--write`, `--file <path>` (default `plune/ids.json`), `--from <file>`, `--playwright-config <path>`, `--json`. Exit codes as `plune verify`. |
|
|
146
148
|
| `plune automate <caseId>` | Run [Cairn](https://github.com/plune-ai/cairn)'s `automate` on **one case from Plune** and print the code it wrote as a diff of new files (#148). Cairn runs in `--repo <dir>` (default: the current directory) with an environment that holds **no `PLUNE_*` variable and no token**, and reads a copy of that directory's `.env` without them. Nothing is written into the repo. With `--send`, the same files go to the **review queue** as an automation proposal (`POST /v1/review-items/automations`), the spec file's `test()` call named as the case's code; the bounds (10 files, 16 KB each, 64 KiB in all) are checked first, and the queue entry's id is printed, new or replacing the one waiting for the case. Flags: `--repo`, `--cairn <path>`, `--url <url>`, `--send`; arguments after `--` go to Cairn. See [the CLI reference](./docs/guide/cli.md#plune-automate). |
|
|
147
149
|
| `plune plan grep <id>` | Print a [test plan](https://docs.plune.ai/platform/plans/) as **one `--grep` pattern** — `npx playwright test --grep "$(plune plan grep <id>)"` or `npx vitest run -t "$(plune plan grep <id>)"` runs exactly what the plan collects. Each case contributes its title path from the `path-title` key the reporter wrote (the file left out, `[ >#]+` between the segments — a space for Playwright, jest, mocha and vitest ≤ 4, ` > ` for vitest 5), escaped, joined with `\|`; a case without one goes in by title. The pattern is all that reaches stdout; the summary — how many cases, how many keyed — goes to stderr. An empty plan prints `(?!)`, which matches nothing, because an empty `--grep` would run everything. |
|
|
148
|
-
| `plune run grep <run> [--failed]` | Print a run's **automated** cases as one `--grep` pattern, built the way `plan grep` builds a plan's — so the commands Plune shows for a run work as they are: `npx playwright test --grep "$(plune run grep <run-id> --failed)"` re-runs an automated run's failures where your tests run (Plune starts no CI), and `PLUNE_RUN=<key> npx playwright test --grep "$(plune run grep <key>)"` runs the automated half of a mixed run launched without a plan. `<run>` is the run's id (a UUID) or its key (`rk_` and ten hex); anything else is refused with exit `2` before anything is sent, and a key no run carries exits `1`. The cases are the ones the run expected — cases added on its page among them, run or not — or holds a result of; manual cases are left out. `--failed` keeps the cases whose latest result the platform counts as failed or broken, so a muted case's failure stays out, as from **Re-run N failed**. Only the pattern reaches stdout; how many cases were taken and how many left out goes to stderr; nothing taken prints `(?!)`. Needs a Plune that serves `GET /v1/runs/:id/cases
|
|
150
|
+
| `plune run grep <run> [--failed]` | Print a run's **automated** cases as one `--grep` pattern, built the way `plan grep` builds a plan's — so the commands Plune shows for a run work as they are: `npx playwright test --grep "$(plune run grep <run-id> --failed)"` re-runs an automated run's failures where your tests run (Plune starts no CI), and `PLUNE_RUN=<key> npx playwright test --grep "$(plune run grep <key>)"` runs the automated half of a mixed run launched without a plan. `<run>` is the run's id (a UUID) or its key (`rk_` and ten hex); anything else is refused with exit `2` before anything is sent, and a key no run carries exits `1`. The cases are the ones the run expected — cases added on its page among them, run or not — or holds a result of; manual cases are left out. `--failed` keeps the cases whose latest result the platform counts as failed or broken, so a muted case's failure stays out, as from **Re-run N failed**. Only the pattern reaches stdout; how many cases were taken and how many left out goes to stderr; nothing taken prints `(?!)`. Needs a Plune that serves `GET /v1/runs/:id/cases`. |
|
|
149
151
|
|
|
150
152
|
Global flags: `-c, --config <path>` · `-v, --verbose` · `--no-color`.
|
|
151
153
|
|
|
@@ -386,7 +388,7 @@ JUnit report is skipped with a line in the output. Each test arrives with its cl
|
|
|
386
388
|
(`cart.CartTest#addsAnItem` from Surefire; Gradle keeps the brackets, `cart.CartTest#addsAnItem()`), its status
|
|
387
389
|
(`pass`, `failure`, `error`, `skipped`), the failure's message, type and stack trace, and its duration. Gradle writes
|
|
388
390
|
a `timestamp` on the suite, and a test's span starts there; Surefire writes none, so a Maven test's span ends when the
|
|
389
|
-
import reads the report
|
|
391
|
+
import reads the report. A file reaches a test only
|
|
390
392
|
through a `[[ATTACHMENT|path]]` line in its own output, [as above](#files-from-a-junit-report), the path counted from
|
|
391
393
|
the folder the XML file is in. Gradle puts that output in the test's testcase only with
|
|
392
394
|
`reports.junitXml.outputPerTestCase = true` (by default it writes it once per suite).
|
|
@@ -519,7 +521,7 @@ The shard that is the Nth also prints `plune: run closed` just above that line,
|
|
|
519
521
|
#### A combination per job of a matrix: `PLUNE_CONFIGURATION`
|
|
520
522
|
|
|
521
523
|
The jobs of a matrix of browsers and systems report into one run, each under its own combination of
|
|
522
|
-
configuration values
|
|
524
|
+
configuration values:
|
|
523
525
|
|
|
524
526
|
```yaml
|
|
525
527
|
strategy:
|
|
@@ -786,6 +788,44 @@ destructive, and a new tool that does not say it is read-only carry a `security`
|
|
|
786
788
|
for a reviewer to look, not a failure by itself. The format, the rules and the exit codes are in
|
|
787
789
|
[the CLI reference](docs/guide/cli.md#plune-mcp-snapshot).
|
|
788
790
|
|
|
791
|
+
### Pinning approved tools: `plune mcp pin`
|
|
792
|
+
|
|
793
|
+
A server can change a tool's description after a person approved it, and tell the model something
|
|
794
|
+
new. `plune mcp pin` shows every tool, prompt and resource template in full (escaped: nothing that
|
|
795
|
+
does not print reaches the terminal), asks for an approval, and writes `plune-mcp.lock.json` with
|
|
796
|
+
each entry and the SHA-256 of its canonical JSON. Commit the file: the commit is the approval.
|
|
797
|
+
`plune mcp pin --check` in CI compares the live server with it and shows any change field by field,
|
|
798
|
+
the old and the new description side by side; `--stability` asks for the list several times and in a
|
|
799
|
+
new session.
|
|
800
|
+
|
|
801
|
+
```bash
|
|
802
|
+
plune mcp pin -- node dist/server.js
|
|
803
|
+
plune mcp pin --check -- node dist/server.js
|
|
804
|
+
```
|
|
805
|
+
|
|
806
|
+
It sees only what the server answers this connection: a server can answer a scanner differently from
|
|
807
|
+
a model's client. The format, the exit codes and a GitHub Actions example are in
|
|
808
|
+
[the CLI reference](docs/guide/cli.md#plune-mcp-pin).
|
|
809
|
+
|
|
810
|
+
### Checking a server against the spec: `plune mcp conformance`
|
|
811
|
+
|
|
812
|
+
`plune mcp conformance` runs the checks of the MCP specification against a server you name, stdio or
|
|
813
|
+
HTTP. Every check has a level (`MUST`, `SHOULD`, ...) and the section it cites; the score counts only
|
|
814
|
+
the `MUST` checks of a frozen profile, so it means the same thing next month. `--list-checks` prints
|
|
815
|
+
the catalog without a server. `--suite oauth --config <file>` (JSON or YAML) checks the authorization
|
|
816
|
+
side of an HTTP server.
|
|
817
|
+
|
|
818
|
+
```bash
|
|
819
|
+
plune mcp conformance -- node dist/server.js
|
|
820
|
+
plune mcp conformance --url http://127.0.0.1:3000/mcp --out junit-xml=conformance.xml
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
It exits `1` when a counted check failed, `2` when the server did not start or a flag is wrong, and
|
|
824
|
+
`3` when conformance is not established (a counted check could not run, or nothing was measured; the
|
|
825
|
+
oauth suite always ends in `3`). A pass says the server answered these requests as the text asks, no
|
|
826
|
+
more. The flags and the checks are in [the CLI reference](docs/guide/cli.md#plune-mcp-conformance); the
|
|
827
|
+
guide is at [docs.plune.ai/cli/guides/mcp-conformance](https://docs.plune.ai/cli/guides/mcp-conformance/).
|
|
828
|
+
|
|
789
829
|
## Programmatic API
|
|
790
830
|
|
|
791
831
|
The same engine that powers `plune run` is exported for use from your own code. Unlike the
|
package/THIRD_PARTY_NOTICES
CHANGED
|
@@ -39,3 +39,232 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
39
39
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
40
40
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
41
41
|
SOFTWARE.
|
|
42
|
+
|
|
43
|
+
--------------------------------------------------------------------------------
|
|
44
|
+
|
|
45
|
+
Model Context Protocol specification: schema.json of revision 2026-07-28
|
|
46
|
+
https://github.com/modelcontextprotocol/modelcontextprotocol (commit 38353251, schema/2026-07-28/schema.json)
|
|
47
|
+
Author: Model Context Protocol a Series of LF Projects, LLC.
|
|
48
|
+
Licence: Apache-2.0 (specification contributions); MIT for contributions not yet relicensed
|
|
49
|
+
|
|
50
|
+
What is included: the file, unchanged, as src/mcp-testing/conformance/schemas/2026-07-28.json
|
|
51
|
+
(SHA-256 edbb197ed0f92e90d658866e23cf76f107df0caac5ce25c2b9e64e1ca9a6314a). plune mcp
|
|
52
|
+
conformance validates the messages of a server against it (mod-wire-schema-valid). No code of the
|
|
53
|
+
project is included. The licence of the repository, as published at that commit:
|
|
54
|
+
|
|
55
|
+
The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
|
|
56
|
+
|
|
57
|
+
Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
|
|
58
|
+
|
|
59
|
+
No rights beyond those granted by the applicable original license are conveyed for such contributions.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
Apache License
|
|
64
|
+
Version 2.0, January 2004
|
|
65
|
+
http://www.apache.org/licenses/
|
|
66
|
+
|
|
67
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
68
|
+
|
|
69
|
+
1. Definitions.
|
|
70
|
+
|
|
71
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
72
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
73
|
+
|
|
74
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
75
|
+
the copyright owner that is granting the License.
|
|
76
|
+
|
|
77
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
78
|
+
other entities that control, are controlled by, or are under common
|
|
79
|
+
control with that entity. For the purposes of this definition,
|
|
80
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
81
|
+
direction or management of such entity, whether by contract or
|
|
82
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
83
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
84
|
+
|
|
85
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
86
|
+
exercising permissions granted by this License.
|
|
87
|
+
|
|
88
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
89
|
+
including but not limited to software source code, documentation
|
|
90
|
+
source, and configuration files.
|
|
91
|
+
|
|
92
|
+
"Object" form shall mean any form resulting from mechanical
|
|
93
|
+
transformation or translation of a Source form, including but
|
|
94
|
+
not limited to compiled object code, generated documentation,
|
|
95
|
+
and conversions to other media types.
|
|
96
|
+
|
|
97
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
98
|
+
Object form, made available under the License, as indicated by a
|
|
99
|
+
copyright notice that is included in or attached to the work
|
|
100
|
+
(an example is provided in the Appendix below).
|
|
101
|
+
|
|
102
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
103
|
+
form, that is based on (or derived from) the Work and for which the
|
|
104
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
105
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
106
|
+
of this License, Derivative Works shall not include works that remain
|
|
107
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
108
|
+
the Work and Derivative Works thereof.
|
|
109
|
+
|
|
110
|
+
"Contribution" shall mean any work of authorship, including
|
|
111
|
+
the original version of the Work and any modifications or additions
|
|
112
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
113
|
+
submitted to the Licensor for inclusion in the Work by the copyright
|
|
114
|
+
owner or by an individual or Legal Entity authorized to submit on behalf
|
|
115
|
+
of the copyright owner. For the purposes of this definition, "submitted"
|
|
116
|
+
means any form of electronic, verbal, or written communication sent
|
|
117
|
+
to the Licensor or its representatives, including but not limited to
|
|
118
|
+
communication on electronic mailing lists, source code control systems,
|
|
119
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
120
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
121
|
+
excluding communication that is conspicuously marked or otherwise
|
|
122
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
123
|
+
|
|
124
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
125
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
126
|
+
subsequently incorporated within the Work.
|
|
127
|
+
|
|
128
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
129
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
130
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
131
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
132
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
133
|
+
Work and such Derivative Works in Source or Object form.
|
|
134
|
+
|
|
135
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
136
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
137
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
138
|
+
(except as stated in this section) patent license to make, have made,
|
|
139
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
140
|
+
where such license applies only to those patent claims licensable
|
|
141
|
+
by such Contributor that are necessarily infringed by their
|
|
142
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
143
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
144
|
+
institute patent litigation against any entity (including a
|
|
145
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
146
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
147
|
+
or contributory patent infringement, then any patent licenses
|
|
148
|
+
granted to You under this License for that Work shall terminate
|
|
149
|
+
as of the date such litigation is filed.
|
|
150
|
+
|
|
151
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
152
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
153
|
+
modifications, and in Source or Object form, provided that You
|
|
154
|
+
meet the following conditions:
|
|
155
|
+
|
|
156
|
+
(a) You must give any other recipients of the Work or
|
|
157
|
+
Derivative Works a copy of this License; and
|
|
158
|
+
|
|
159
|
+
(b) You must cause any modified files to carry prominent notices
|
|
160
|
+
stating that You changed the files; and
|
|
161
|
+
|
|
162
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
163
|
+
that You distribute, all copyright, patent, trademark, and
|
|
164
|
+
attribution notices from the Source form of the Work,
|
|
165
|
+
excluding those notices that do not pertain to any part of
|
|
166
|
+
the Derivative Works; and
|
|
167
|
+
|
|
168
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
169
|
+
distribution, then any Derivative Works that You distribute must
|
|
170
|
+
include a readable copy of the attribution notices contained
|
|
171
|
+
within such NOTICE file, excluding those notices that do not
|
|
172
|
+
pertain to any part of the Derivative Works, in at least one
|
|
173
|
+
of the following places: within a NOTICE text file distributed
|
|
174
|
+
as part of the Derivative Works; within the Source form or
|
|
175
|
+
documentation, if provided along with the Derivative Works; or,
|
|
176
|
+
within a display generated by the Derivative Works, if and
|
|
177
|
+
wherever such third-party notices normally appear. The contents
|
|
178
|
+
of the NOTICE file are for informational purposes only and
|
|
179
|
+
do not modify the License. You may add Your own attribution
|
|
180
|
+
notices within Derivative Works that You distribute, alongside
|
|
181
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
182
|
+
that such additional attribution notices cannot be construed
|
|
183
|
+
as modifying the License.
|
|
184
|
+
|
|
185
|
+
You may add Your own copyright statement to Your modifications and
|
|
186
|
+
may provide additional or different license terms and conditions
|
|
187
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
188
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
189
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
190
|
+
the conditions stated in this License.
|
|
191
|
+
|
|
192
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
193
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
194
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
195
|
+
this License, without any additional terms or conditions.
|
|
196
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
197
|
+
the terms of any separate license agreement you may have executed
|
|
198
|
+
with Licensor regarding such Contributions.
|
|
199
|
+
|
|
200
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
201
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
202
|
+
except as required for reasonable and customary use in describing the
|
|
203
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
204
|
+
|
|
205
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
206
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
207
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
208
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
209
|
+
implied, including, without limitation, any warranties or conditions
|
|
210
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
211
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
212
|
+
appropriateness of using or redistributing the Work and assume any
|
|
213
|
+
risks associated with Your exercise of permissions under this License.
|
|
214
|
+
|
|
215
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
216
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
217
|
+
unless required by applicable law (such as deliberate and grossly
|
|
218
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
219
|
+
liable to You for damages, including any direct, indirect, special,
|
|
220
|
+
incidental, or consequential damages of any character arising as a
|
|
221
|
+
result of this License or out of the use or inability to use the
|
|
222
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
223
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
224
|
+
other commercial damages or losses), even if such Contributor
|
|
225
|
+
has been advised of the possibility of such damages.
|
|
226
|
+
|
|
227
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
228
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
229
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
230
|
+
or other liability obligations and/or rights consistent with this
|
|
231
|
+
License. However, in accepting such obligations, You may act only
|
|
232
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
233
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
234
|
+
defend, and hold each Contributor harmless for any liability
|
|
235
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
236
|
+
of your accepting any such warranty or additional liability.
|
|
237
|
+
|
|
238
|
+
END OF TERMS AND CONDITIONS
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
MIT License
|
|
243
|
+
|
|
244
|
+
Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
|
|
245
|
+
|
|
246
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
247
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
248
|
+
in the Software without restriction, including without limitation the rights
|
|
249
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
250
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
251
|
+
furnished to do so, subject to the following conditions:
|
|
252
|
+
|
|
253
|
+
The above copyright notice and this permission notice shall be included in all
|
|
254
|
+
copies or substantial portions of the Software.
|
|
255
|
+
|
|
256
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
257
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
258
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
259
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
260
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
261
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
262
|
+
SOFTWARE.
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
Creative Commons Attribution 4.0 International (CC-BY-4.0)
|
|
267
|
+
|
|
268
|
+
Documentation in this project (excluding specifications) is licensed under
|
|
269
|
+
CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
|
|
270
|
+
the full license text.
|