mcp-better 0.7.0 → 0.9.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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # mcp-better — built for 7/28
2
2
 
3
+ [![CI](https://github.com/Wolfe-Jam/mcp-better/actions/workflows/ci.yml/badge.svg)](https://github.com/Wolfe-Jam/mcp-better/actions/workflows/ci.yml)
4
+ [![crates.io](https://img.shields.io/crates/v/mcp-better?color=e6822c)](https://crates.io/crates/mcp-better)
5
+ [![npm](https://img.shields.io/npm/v/mcp-better?color=cb3837)](https://www.npmjs.com/package/mcp-better)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
7
+
3
8
  **NONE | GOOD | [BETTER] | BEST**
4
9
 
5
10
  Textbook for **AGENTS.md** on that scale — honest modern MCP at the **BETTER** step.
@@ -15,6 +20,23 @@ Modern MCP textbook **that runs**, reviewed and approved as an AAIF Ambassador c
15
20
 
16
21
  > **BEST** (BETTER **plus** `project.faf` that is resident **and used**: persistent project context that authors the agent files) lives at **[faf.one/agents](https://faf.one/agents)**, one hop up from this textbook.
17
22
 
23
+ ## Use
24
+
25
+ ```bash
26
+ cargo install mcp-better # the install (crates.io, native binary)
27
+ npx mcp-better --help # try it with no Rust toolchain
28
+ npx mcp-better --http # Streamable HTTP on http://127.0.0.1:8787/mcp
29
+ ```
30
+
31
+ More in the [Quickstart](#quickstart-10-min).
32
+
33
+ <picture>
34
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Wolfe-Jam/mcp-better/main/docs/img/confirm-flow-dark.png">
35
+ <img alt="confirm_echo over MCP 2026-07-28: round 1 returns input_required and a sealed requestState; the client asks the user, then sends the same call with the answer and the same requestState; the server opens and checks the token and completes, keeping no session." src="https://raw.githubusercontent.com/Wolfe-Jam/mcp-better/main/docs/img/confirm-flow-light.png" width="720">
36
+ </picture>
37
+
38
+ *`confirm_echo`: a confirmation in two round trips, no session ([walk-through](https://wolfejam.dev/blog/stateless-confirmation) · [doc](./docs/MRTR-CONFIRM-ECHO.md)).*
39
+
18
40
  ## Dual-package (optional)
19
41
 
20
42
  **We are Cargo.** Install is `cargo install`. `npx` is a try path. We do **not** offer `npm install` as an option.
@@ -26,7 +48,22 @@ Modern MCP textbook **that runs**, reviewed and approved as an AAIF Ambassador c
26
48
 
27
49
  One Agent Skill (`mcp-better-lab`) on the same process as tools:
28
50
 
29
- → [docs/SKILLS-OVER-MCP.md](./docs/SKILLS-OVER-MCP.md) — extension · `skills/list` · `skills/get` · digests
51
+ → **Tutorial: [Ship a skill with your MCP server](./docs/SKILLS-OVER-MCP.md)** — each step linked to the code, and the four checks that prove a host loads the skill (verified in Claude Code 2.1.332: `mcp-better:mcp-better-lab` listed and loaded).
52
+
53
+ ## A plugin from the registry (optional)
54
+
55
+ A plugin is packaging: it adds no runtime, the tools are in the server it points to. `mcp-better plugin` turns an [MCP Registry](https://registry.modelcontextprotocol.io) entry into an [Agent Plugins](https://agent-plugins.org) 1.0.0 folder, `plugin.json` and `mcp.json`, and checks a plugin against the registry later.
56
+
57
+ ```bash
58
+ mcp-better plugin io.github.Wolfe-Jam/mcp-better # → mcp-better/plugin.json + mcp.json
59
+ mcp-better plugin <registry-name> --latest # start the server at @latest
60
+ mcp-better plugin <registry-name> --check ./mcp-better # exit 1 if the registry moved on
61
+ mcp-better plugin --from server.json --out ./plugin # offline, from a file
62
+ ```
63
+
64
+ - **How it runs the server:** npm via `npx`, PyPI via `uvx`, a remote (HTTPS), OCI via `docker`, NuGet via `dnx`, the first the entry has (`--via` picks one). Crates and `.mcpb` bundles have no one-command runner, so they are named, not used.
65
+ - **What it never writes:** secrets, values with a `{variable}`, and required values with no default. `mcp.json` has no secret field and expands only `${PLUGIN_ROOT}` and `${PLUGIN_DATA}` (spec §7.2, §9), so each one is listed for you to set in your client, instead of a server that fails to start with no message.
66
+ - **`--check`** works on any plugin, ours or hand-written: it finds the server by its package or remote, even under the author's own key. Drift (exit 1) is what changes which server starts: another package or runner, a pin the registry has moved past, a remote on another host. Extra arguments, another path on the same host and the plugin's own version are notes. A plugin on `@latest` is never asked to bump.
30
67
 
31
68
  ## What is 7/28?
32
69
 
@@ -55,6 +92,8 @@ Humans say **7/28**. Machines negotiate **`2026-07-28`**.
55
92
  | **v0.5** | Same era + **matching client completes MRTR** — `mrtr-client` finishes `confirm_echo` |
56
93
  | **v0.6** | Same era + **the spec's own tests** — the official MCP conformance suite in CI ([Conformance](#conformance)) · cache hints on every list and read · declare what you answer · `rmcp` 3.10 |
57
94
  | **v0.7** | Same era + **tools say what they do** — every tool carries all four annotation hints (read-only, not destructive, idempotent, closed world) · `confirm_echo` asks only clients that declare elicitation (else `-32021`) · `server/discover` stamped like the lists · a strict command line (`--version`, unknown arguments exit 2) |
95
+ | **v0.8** | Same era + **confirmations that hold** — `confirm_echo`'s `requestState` expires after 5 minutes · a changed `message` in round 2 is refused (`-32602`) · strict SKILL.md frontmatter (refuses what YAML reads differently) · single-file skills by design |
96
+ | **v0.9** | Same era + **a plugin from the registry** — A plugin is packaging: `mcp-better plugin` turns an MCP Registry entry into an Agent Plugins folder, and `--check` says when the registry has moved on. · Windows ARM `npx` points to `cargo install` |
58
97
 
59
98
  ## What BETTER means
60
99
 
@@ -106,11 +145,11 @@ MCP_BETTER_BIN="$(pwd)/target/debug/mcp-better" cargo run --example mrtr-client
106
145
  ```bash
107
146
  cargo run --release
108
147
  # install from crates.io — first hit compiles deps once (see above):
109
- cargo install mcp-better --version 0.7.0 --locked
110
- mcp-better --version # mcp-better 0.7.0
148
+ cargo install mcp-better --version 0.9.0 --locked
149
+ mcp-better --version # mcp-better 0.9.0
111
150
  mcp-better --help
112
151
  # optional lying companion (teaching only — not for hosts):
113
- # cargo install mcp-better --version 0.7.0 --locked --bin mcp-worse
152
+ # cargo install mcp-better --version 0.9.0 --locked --bin mcp-worse
114
153
  ```
115
154
 
116
155
  **Streamable HTTP** (local demo only — see [SECURITY.md](./SECURITY.md)):
@@ -141,7 +180,7 @@ cargo run --release -- --http
141
180
 
142
181
  All three are annotated `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`: they read only, change nothing and stay in the process.
143
182
 
144
- ## Protocol claims (v0.7.0 — same 7/28 era · the official conformance suite in CI)
183
+ ## Protocol claims (v0.9.0 — same 7/28 era · the official conformance suite in CI)
145
184
 
146
185
  | Surface | Status |
147
186
  |---------|--------|
@@ -152,8 +191,8 @@ All three are annotated `readOnlyHint: true`, `destructiveHint: false`, `idempot
152
191
  | Capabilities | **tools** · **resources** (skill docs) · **skills** extension (SEP-2640, rmcp native) · prompts and completions **not declared** (`prompts/*`, `completion/complete` → method not found) |
153
192
  | Cache hints | discover, tools, resources and skills: **`ttlMs=60000`**, **`cacheScope=public`** · tool order **`health`→`echo`→`confirm_echo`** (restart-stable) |
154
193
  | Tool annotations | all four hints on every tool: read-only · not destructive · idempotent · closed world (`tests/handlers.rs`) |
155
- | MRTR (optional) | **`confirm_echo`** — mid-call confirm · sealed `requestState` · asked only of clients that declare elicitation (else `-32021`) · matching client **`mrtr-client`** · [`docs/MRTR-CONFIRM-ECHO.md`](./docs/MRTR-CONFIRM-ECHO.md)
156
- | Skills (optional) | **`mcp-better-lab`** · `skills/list` · digests · [`docs/SKILLS-OVER-MCP.md`](./docs/SKILLS-OVER-MCP.md) |
194
+ | MRTR (optional) | **`confirm_echo`** — mid-call confirm · sealed `requestState` (expires after 5 min; round 2 must resend the same `message`) · asked only of clients that declare elicitation (else `-32021`) · matching client **`mrtr-client`** · [`docs/MRTR-CONFIRM-ECHO.md`](./docs/MRTR-CONFIRM-ECHO.md)
195
+ | Skills (optional) | **`mcp-better-lab`** · `skills/list` · digests · strict frontmatter · one file per skill by design · [`docs/SKILLS-OVER-MCP.md`](./docs/SKILLS-OVER-MCP.md) |
157
196
  | Lying companion | **`mcp-worse`** — reversed tool order (the lie) + the SDK defaults left in place: no cache hints of its own (the wire shows `ttlMs: 0` + `private`, valid but uninformative), no tool annotations, and `prompts/list` / `completion/complete` answered without being declared · stdio only · same `--version` · contrast-smoke only |
158
197
  | OAuth / tasks | out of hero |
159
198
 
package/lib/platform.js CHANGED
@@ -3,6 +3,8 @@
3
3
  /**
4
4
  * Map Node's process.platform / process.arch → Rust target triple
5
5
  * used by cargo-dist / GitHub Release asset names.
6
+ * One entry per target release.yml builds; a key with no release asset
7
+ * would download a 404, so it stays out (Windows ARM: no asset yet).
6
8
  */
7
9
 
8
10
  const TARGETS = {
@@ -11,7 +13,6 @@ const TARGETS = {
11
13
  "linux-arm64": "aarch64-unknown-linux-gnu",
12
14
  "linux-x64": "x86_64-unknown-linux-gnu",
13
15
  "win32-x64": "x86_64-pc-windows-msvc",
14
- "win32-arm64": "aarch64-pc-windows-msvc",
15
16
  };
16
17
 
17
18
  /**
@@ -23,7 +24,8 @@ function resolveTarget() {
23
24
  if (!triple) {
24
25
  const supported = Object.keys(TARGETS).join(", ");
25
26
  throw new Error(
26
- `mcp-better: unsupported platform ${key}. Supported: ${supported}`
27
+ `mcp-better: no prebuilt binary for ${key}. Supported: ${supported}. ` +
28
+ "Build from source instead: cargo install mcp-better"
27
29
  );
28
30
  }
29
31
  const isWindows = process.platform === "win32";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "mcp-better",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "mcpName": "io.github.Wolfe-Jam/mcp-better",
5
- "description": "Rust MCP textbook for 2026-07-28: annotated tools, MCP conformance suite in CI. AAIF contribution. npm shim downloads the native binary from GitHub Releases.",
5
+ "description": "A working MCP server in Rust, written as a textbook for MCP 2026-07-28. rmcp 3.10 · install with cargo or npx. The npm package downloads the native binary from GitHub Releases.",
6
6
  "license": "MIT",
7
7
  "author": "Wolfe-Jam <team@faf.one>",
8
8
  "homepage": "https://github.com/Wolfe-Jam/mcp-better",