mcp-better 0.4.3 → 0.6.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.
Files changed (2) hide show
  1. package/README.md +55 -22
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # mcp-better — built for 7/28
2
2
 
3
+ [![Business card · Get yours →](https://wolfe-jam.github.io/agent-business-card/badge.svg)](https://wolfe-jam.github.io/agent-business-card/?repo=Wolfe-Jam/mcp-better)
4
+
3
5
  **NONE | GOOD | [BETTER] | BEST**
4
6
 
5
7
  Textbook for **AGENTS.md** on that scale — honest modern MCP at the **BETTER** step.
@@ -9,15 +11,15 @@ Textbook for **AGENTS.md** on that scale — honest modern MCP at the **BETTER**
9
11
  the book is the app is the book
10
12
  ```
11
13
 
12
- AAIF-verified modern MCP textbook **that runs**. Rust · `rmcp` **3.0.x** (lock **3.0.1**, Tier 1 assessed) · Discover · stamped list cache.
14
+ Modern MCP textbook **that runs**, reviewed and approved as an AAIF Ambassador contribution. Rust · `rmcp` **3.10** · Discover · stamped cache hints · the official MCP conformance suite in CI: [100% for the conformance build](#conformance), every scored check that needs no suite fixture for the textbook binary.
13
15
  **Book:** [`textbook/`](./textbook/) — what · why · how · [doctrine](./textbook/DOCTRINE-book-is-app.md).
14
16
  **App:** this binary + smokes. Lesson after lesson, version after version — knowledge compounds.
15
17
 
16
- > **BEST** (persistent project DNA for agents — **AGENTS.md** / FAF at scale) lives at **[faf.one/agents](https://faf.one/agents)** — one hop up from this textbook.
18
+ > **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
19
 
18
20
  ## Dual-package (optional)
19
21
 
20
- **Cargo stays first.** Optional npm is only an on-ramp to the same native binary for npx-style hosts.
22
+ **We are Cargo.** Install is `cargo install`. `npx` is a try path. We do **not** offer `npm install` as an option.
21
23
 
22
24
  → [Why dual-package](./docs/DUAL-PACKAGE-FOR-RUST-MCP.md) — positioning + FAQ
23
25
  → [Full guide (how)](./docs/DUAL-PACKAGE-RUST-MCP.md) — lockstep, publish order, OIDC, score + wire
@@ -40,7 +42,7 @@ Humans say **7/28**. Machines negotiate **`2026-07-28`**.
40
42
 
41
43
  ## What to expect
42
44
 
43
- 1. **Built for 7/28** — not bolted onto a legacy server (official `rmcp` 3.0.x / Tier-1 assessed cut).
45
+ 1. **Built for 7/28** — not bolted onto a legacy server (official `rmcp` 3.10).
44
46
  2. **Honest surface** — transport and capabilities match docs and CI.
45
47
  3. **Roadmap expands the era** — versions add road; they do not “become” 7/28 later.
46
48
 
@@ -51,27 +53,35 @@ Humans say **7/28**. Machines negotiate **`2026-07-28`**.
51
53
  | **v0.3** | Same era + **deeper correctness** — multi-list + restart-order smokes · `mcp-worse` contrast |
52
54
  | **v0.4** | Same era + **dual package** — cargo + npm shim · `npx mcp-better` with **no Rust toolchain** |
53
55
  | **v0.4.3** | Same era + **`confirm_echo` MRTR** (SEP-2322) + **Agent Skills** (`mcp-better-lab`) — see [`docs/MRTR-CONFIRM-ECHO.md`](./docs/MRTR-CONFIRM-ECHO.md) · [`docs/SKILLS-OVER-MCP.md`](./docs/SKILLS-OVER-MCP.md) |
56
+ | **v0.4.4** | Same era + **book matches 0.4.3 wire** — no new tool · catalogs named `health` → `echo` → `confirm_echo` |
57
+ | **v0.5** | Same era + **matching client completes MRTR** — `mrtr-client` finishes `confirm_echo` |
58
+ | **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 |
54
59
 
55
60
  ## What BETTER means
56
61
 
57
62
  1. **Protocol honesty** — claim 7/28 / `2026-07-28` only for surfaces you implement and test.
58
63
  2. **Discover-compatible** — clients should use `ClientLifecycleMode::Discover` (or Auto → 7/28), not only legacy initialize.
59
- 3. **List cache stamps** — `tools/list` returns positive `ttlMs` and `cacheScope` (static catalog → `public`). SDK defaults are unstamped.
64
+ 3. **Cache hints by choice** — `tools/list`, `resources/list`, `resources/templates/list`, `resources/read`, `skills/list` and `skills/get` return a positive `ttlMs` and `cacheScope` (static catalog → `public`). The SDK default is `ttlMs: 0` + `private`: valid, but it tells every client not to cache.
60
65
  4. **Stable tool order** — same process, same order across N list calls.
61
66
  5. **Transports** — **stdio** (default) and **Streamable HTTP** (`--http`) in the **same 7/28 era**.
62
67
 
63
68
  ## Quickstart (≤10 min)
64
69
 
65
- ### Zero Rust — npm / npx (v0.4+)
70
+ | Path | What it is |
71
+ |------|------------|
72
+ | **`cargo install mcp-better`** | **The install** — we are Cargo. crates.io, native binary on PATH. |
73
+ | **`npx mcp-better`** | **Suggested try** — no Rust, no compile. Not the install. |
74
+ | **npm** | A published **shim** so `npx` / some hosts can start the same binary. We do **not** offer `npm install` / `npm i -g`. |
75
+
76
+ ### Try (suggested) — `npx`
66
77
 
67
78
  ```bash
68
- # No Rust toolchain required. Downloads the native binary from GitHub Releases.
79
+ # No Rust toolchain. Downloads the native binary from GitHub Releases.
69
80
  npx mcp-better --help
70
81
  npx mcp-better
71
- # hosts: point stdio command at `npx` / `mcp-better` from the npm package
72
82
  ```
73
83
 
74
- ### From source / crates.io (Rust 1.85+)
84
+ ### From source / crates.io (Rust 1.88+)
75
85
 
76
86
  ```bash
77
87
  git clone https://github.com/Wolfe-Jam/mcp-better.git
@@ -85,22 +95,23 @@ MCP_BETTER_BIN="$(pwd)/target/debug/mcp-better" \
85
95
  MCP_WORSE_BIN="$(pwd)/target/debug/mcp-worse" \
86
96
  cargo run --example contrast-smoke
87
97
  MCP_BETTER_BIN="$(pwd)/target/debug/mcp-better" cargo run --example http-smoke
98
+ # 0.5 matching client (completes confirm_echo)
99
+ MCP_BETTER_BIN="$(pwd)/target/debug/mcp-better" cargo run --example mrtr-client
88
100
  ```
89
101
 
90
- **stdio** (default — Cursor / Claude Desktop):
102
+ **Install** (crates.io) — stdio default (Cursor / Claude Desktop):
103
+
104
+ **First `cargo install` compiles Rust deps once** (often 100+ units — `rmcp` / `tokio` / …, not 100 tools of ours). One-time; then the binary is instant. To skip that compile, **try** with `npx mcp-better` (above) — that is not the install.
91
105
 
92
106
  ```bash
93
107
  cargo run --release
94
- # or from crates.io:
95
- cargo install mcp-better --version 0.4.3
108
+ # install from crates.io — first hit compiles deps once (see above):
109
+ cargo install mcp-better --version 0.6.0 --locked
96
110
  mcp-better --help
97
111
  # optional lying companion (teaching only — not for hosts):
98
- # cargo install mcp-better --version 0.4.3 --bin mcp-worse
112
+ # cargo install mcp-better --version 0.6.0 --locked --bin mcp-worse
99
113
  ```
100
114
 
101
- > First cargo install compiles the ecosystem once (not 100+ of our tools — just Rust deps). One-time wait; then you’re done.
102
- > Prefer **no compile**? Use `npx mcp-better` (npm shim).
103
-
104
115
  **Streamable HTTP** (local demo only — see [SECURITY.md](./SECURITY.md)):
105
116
 
106
117
  ```bash
@@ -126,7 +137,7 @@ cargo run --release -- --http
126
137
  | `echo` | Pure demo — returns `message` unchanged. |
127
138
  | `confirm_echo` | Textbook **MRTR** (SEP-2322) — echo after mid-call confirm · sealed `requestState`. |
128
139
 
129
- ## Protocol claims (v0.4.3 — same 7/28 era, dual package)
140
+ ## Protocol claims (v0.6.0 — same 7/28 era · the official conformance suite in CI)
130
141
 
131
142
  | Surface | Status |
132
143
  |---------|--------|
@@ -134,13 +145,33 @@ cargo run --release -- --http
134
145
  | Transport | **stdio** (default) · **Streamable HTTP** (`--http`) |
135
146
  | HTTP mode | Stateless for 7/28 · `json_response` · local **Host** guards |
136
147
  | Routing headers | Streamable HTTP POSTs use **`Mcp-Method`** and **`Mcp-Name`** when naming a tool (SEP-2243); `http-smoke` asserts this happy path |
137
- | Capabilities | **tools** · **resources** (skill docs) · **experimental** skills extension |
138
- | List cache | **`ttlMs=60000`**, **`cacheScope=public`**, order **`health`→`echo`→`confirm_echo`** (restart-stable) |
139
- | MRTR (optional) | **`confirm_echo`** — mid-call confirm · sealed `requestState` · [`docs/MRTR-CONFIRM-ECHO.md`](./docs/MRTR-CONFIRM-ECHO.md) |
148
+ | Capabilities | **tools** · **resources** (skill docs) · **skills** extension (SEP-2640, rmcp native) · prompts and completions **not declared** (`prompts/*`, `completion/complete` → method not found) |
149
+ | Cache hints | tools, resources and skills: **`ttlMs=60000`**, **`cacheScope=public`** · tool order **`health`→`echo`→`confirm_echo`** (restart-stable) |
150
+ | MRTR (optional) | **`confirm_echo`** — mid-call confirm · sealed `requestState` · matching client **`mrtr-client`** · [`docs/MRTR-CONFIRM-ECHO.md`](./docs/MRTR-CONFIRM-ECHO.md)
140
151
  | Skills (optional) | **`mcp-better-lab`** · `skills/list` · digests · [`docs/SKILLS-OVER-MCP.md`](./docs/SKILLS-OVER-MCP.md) |
141
- | Lying companion | **`mcp-worse`** — unstamped + reversed order (contrast-smoke only) |
152
+ | Lying companion | **`mcp-worse`** — reversed tool order (the lie) + no cache hints of its own (the wire shows the SDK default `ttlMs: 0` + `private`, valid but uninformative) · contrast-smoke only |
142
153
  | OAuth / tasks | out of hero |
143
154
 
155
+ ## Conformance
156
+
157
+ CI runs the official MCP conformance suite ([`@modelcontextprotocol/conformance`](https://github.com/modelcontextprotocol/conformance), pinned) against two binaries. Each run covers `--requirements 2026-07-28` (50 scenarios: 37 the suite scores, 13 it runs but does not score) and the two Skills scenarios (`sep-2640-skills-enumeration`, `sep-2640-skills-manifest`, an extension outside that set).
158
+
159
+ | Run | Binary | 2026-07-28 requirements | Skills |
160
+ |-----|--------|-------------------------|--------|
161
+ | Conformance build | [`conformance/`](./conformance/): `mcp-better-conformance` | **100%, no baseline:** every check of all 50 scenarios, 196 checks, no failure, no warning | 38 of 38 |
162
+ | Textbook | `mcp-better`, what you install | the 37 scored scenarios: 74 checks pass; 33 fail or warn, each listed in [`conformance-baseline.yml`](./conformance-baseline.yml) as `fixture` or `not declared` | 38 of 38 |
163
+
164
+ **What each run measures.** Most scenarios call tools, prompts and resources that exist only in the suite's reference server (`test_*`, `test://…`), and the 13 unscored ones are the Tasks extension and three pending scenarios. The official SDKs pass those with a separate server that carries the fixtures; `mcp-better-conformance` is that server for mcp-better. Its fixtures, capabilities and Tasks are adapted from the Rust MCP SDK's conformance server (Apache-2.0, [`conformance/NOTICE`](./conformance/NOTICE)); `BetterServer` serves mcp-better's three tools, the skill resource and Skills. So the 100% mostly measures the fixtures and the shared transport (`mcp_better::http_config`). The textbook run and the Skills scenarios measure mcp-better's own code.
165
+
166
+ **Reading the textbook run.** `caching` is 7 of 8: the eighth check calls `prompts/list`, and mcp-better doesn't declare prompts, so it answers method-not-found (`not declared` in the baseline). `prompts-list` and `completion-complete` fail for the same reason. Every other failure is a missing suite fixture. The suite's MRTR scenarios use its own fixture tools, so `confirm_echo` is checked by the matching client (`examples/mrtr-client`) in CI.
167
+
168
+ ```bash
169
+ bash scripts/conformance.sh # textbook + baseline
170
+ (cd conformance && cargo build) && \
171
+ MCP_BETTER_BIN="$(pwd)/conformance/target/debug/mcp-better-conformance" \
172
+ MCP_CONFORMANCE_BASELINE='' bash scripts/conformance.sh # conformance build, strict
173
+ ```
174
+
144
175
  ## Textbook
145
176
 
146
177
  The book is the app is the book — [`textbook/`](./textbook/) (Season 1 · [doctrine](./textbook/DOCTRINE-book-is-app.md)).
@@ -176,6 +207,8 @@ export PATH="$HOME/.cargo/bin:$PATH"
176
207
  bash scripts/ci.sh
177
208
  ```
178
209
 
210
+ The ship bar needs Node 18+ and network: it fetches the official MCP conformance suite with `npx` (pinned version) and, if installed, runs [`rust-mcp-preflight`](https://github.com/Wolfe-Jam/rust-mcp-preflight) on `server.json` (it reads crates.io and the MCP Registry).
211
+
179
212
  ## BEST
180
213
 
181
214
  For persistent, versionable AI project context beyond a protocol textbook:
@@ -195,4 +228,4 @@ For persistent, versionable AI project context beyond a protocol textbook:
195
228
 
196
229
  ## License
197
230
 
198
- MIT — see [LICENSE](./LICENSE).
231
+ MIT — see [LICENSE](./LICENSE). Except [`conformance/`](./conformance/) (the unpublished conformance build), which is Apache-2.0: see [`conformance/NOTICE`](./conformance/NOTICE).
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "mcp-better",
3
- "version": "0.4.3",
3
+ "version": "0.6.0",
4
4
  "mcpName": "io.github.Wolfe-Jam/mcp-better",
5
- "description": "AAIF-verified modern MCP setup optimised to the 2026-07-28 model (BETTER textbook). npm shim downloads the native binary from GitHub Releases.",
5
+ "description": "Modern MCP setup for the 2026-07-28 spec (BETTER textbook). AAIF Ambassador contribution. npm shim downloads the native binary from GitHub Releases.",
6
6
  "license": "MIT",
7
7
  "author": "Wolfe-Jam <wolfejam@faf.one>",
8
8
  "homepage": "https://github.com/Wolfe-Jam/mcp-better",