mcp-better 0.6.0 → 0.7.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 +23 -14
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,7 +1,5 @@
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
-
5
3
  **NONE | GOOD | [BETTER] | BEST**
6
4
 
7
5
  Textbook for **AGENTS.md** on that scale — honest modern MCP at the **BETTER** step.
@@ -11,7 +9,7 @@ Textbook for **AGENTS.md** on that scale — honest modern MCP at the **BETTER**
11
9
  the book is the app is the book
12
10
  ```
13
11
 
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.
12
+ 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), and for the textbook binary every scored check except those that need a suite fixture or an undeclared method.
15
13
  **Book:** [`textbook/`](./textbook/) — what · why · how · [doctrine](./textbook/DOCTRINE-book-is-app.md).
16
14
  **App:** this binary + smokes. Lesson after lesson, version after version — knowledge compounds.
17
15
 
@@ -56,14 +54,16 @@ Humans say **7/28**. Machines negotiate **`2026-07-28`**.
56
54
  | **v0.4.4** | Same era + **book matches 0.4.3 wire** — no new tool · catalogs named `health` → `echo` → `confirm_echo` |
57
55
  | **v0.5** | Same era + **matching client completes MRTR** — `mrtr-client` finishes `confirm_echo` |
58
56
  | **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
+ | **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) |
59
58
 
60
59
  ## What BETTER means
61
60
 
62
61
  1. **Protocol honesty** — claim 7/28 / `2026-07-28` only for surfaces you implement and test.
63
62
  2. **Discover-compatible** — clients should use `ClientLifecycleMode::Discover` (or Auto → 7/28), not only legacy initialize.
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.
63
+ 3. **Cache hints by choice** — `server/discover`, `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.
65
64
  4. **Stable tool order** — same process, same order across N list calls.
66
- 5. **Transports** — **stdio** (default) and **Streamable HTTP** (`--http`) in the **same 7/28 era**.
65
+ 5. **Annotated tools** — every tool sets `readOnlyHint`, `destructiveHint`, `idempotentHint` and `openWorldHint`. A tool with no hints gets the spec's defaults: it may write, may destroy, and reaches the outside world.
66
+ 6. **Transports** — **stdio** (default) and **Streamable HTTP** (`--http`) in the **same 7/28 era**.
67
67
 
68
68
  ## Quickstart (≤10 min)
69
69
 
@@ -106,10 +106,11 @@ MCP_BETTER_BIN="$(pwd)/target/debug/mcp-better" cargo run --example mrtr-client
106
106
  ```bash
107
107
  cargo run --release
108
108
  # install from crates.io — first hit compiles deps once (see above):
109
- cargo install mcp-better --version 0.6.0 --locked
109
+ cargo install mcp-better --version 0.7.0 --locked
110
+ mcp-better --version # mcp-better 0.7.0
110
111
  mcp-better --help
111
112
  # optional lying companion (teaching only — not for hosts):
112
- # cargo install mcp-better --version 0.6.0 --locked --bin mcp-worse
113
+ # cargo install mcp-better --version 0.7.0 --locked --bin mcp-worse
113
114
  ```
114
115
 
115
116
  **Streamable HTTP** (local demo only — see [SECURITY.md](./SECURITY.md)):
@@ -124,9 +125,10 @@ cargo run --release -- --http
124
125
 
125
126
  | How | Value |
126
127
  |-----|--------|
127
- | CLI | `mcp-better` (stdio) · `mcp-better --http` · `mcp-better --stdio` |
128
+ | CLI | `mcp-better` (stdio) · `mcp-better --http` · `mcp-better --stdio` · `--version` / `--help` win wherever they appear |
128
129
  | Bare args | `http` / `stdio` (same meaning as flags) |
129
130
  | Env | `MCP_TRANSPORT` or `MCP_BETTER_TRANSPORT` → `stdio` \| `http` (**`MCP_TRANSPORT` first** if both set) |
131
+ | Anything else | An unknown argument or transport value prints the error and exits **2**; nothing falls back to stdio silently |
130
132
  | HTTP bind | `MCP_BETTER_HTTP_ADDR` — default **`127.0.0.1:8787`**. Do **not** use `0.0.0.0` unless you accept an unauthenticated open endpoint. |
131
133
 
132
134
  ## Tools
@@ -137,7 +139,9 @@ cargo run --release -- --http
137
139
  | `echo` | Pure demo — returns `message` unchanged. |
138
140
  | `confirm_echo` | Textbook **MRTR** (SEP-2322) — echo after mid-call confirm · sealed `requestState`. |
139
141
 
140
- ## Protocol claims (v0.6.0 — same 7/28 era · the official conformance suite in CI)
142
+ All three are annotated `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`: they read only, change nothing and stay in the process.
143
+
144
+ ## Protocol claims (v0.7.0 — same 7/28 era · the official conformance suite in CI)
141
145
 
142
146
  | Surface | Status |
143
147
  |---------|--------|
@@ -146,10 +150,11 @@ cargo run --release -- --http
146
150
  | HTTP mode | Stateless for 7/28 · `json_response` · local **Host** guards |
147
151
  | Routing headers | Streamable HTTP POSTs use **`Mcp-Method`** and **`Mcp-Name`** when naming a tool (SEP-2243); `http-smoke` asserts this happy path |
148
152
  | 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)
153
+ | Cache hints | discover, tools, resources and skills: **`ttlMs=60000`**, **`cacheScope=public`** · tool order **`health`→`echo`→`confirm_echo`** (restart-stable) |
154
+ | 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)
151
156
  | Skills (optional) | **`mcp-better-lab`** · `skills/list` · digests · [`docs/SKILLS-OVER-MCP.md`](./docs/SKILLS-OVER-MCP.md) |
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 |
157
+ | 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 |
153
158
  | OAuth / tasks | out of hero |
154
159
 
155
160
  ## Conformance
@@ -158,12 +163,12 @@ CI runs the official MCP conformance suite ([`@modelcontextprotocol/conformance`
158
163
 
159
164
  | Run | Binary | 2026-07-28 requirements | Skills |
160
165
  |-----|--------|-------------------------|--------|
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 |
166
+ | Conformance build | [`conformance/`](./conformance/): `mcp-better-conformance` | **100%, no baseline:** 196 checks pass across the 50 scenarios, none fail or warn; the suite itself skips one scenario (`tasks-status-notifications`, 0 checks) | 38 of 38 |
162
167
  | 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
168
 
164
169
  **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
170
 
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.
171
+ **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`), which declares elicitation, and by a handler test that a client without it gets `-32021` (missing required client capability).
167
172
 
168
173
  ```bash
169
174
  bash scripts/conformance.sh # textbook + baseline
@@ -229,3 +234,7 @@ For persistent, versionable AI project context beyond a protocol textbook:
229
234
  ## License
230
235
 
231
236
  MIT — see [LICENSE](./LICENSE). Except [`conformance/`](./conformance/) (the unpublished conformance build), which is Apache-2.0: see [`conformance/NOTICE`](./conformance/NOTICE).
237
+
238
+ ---
239
+
240
+ [![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)
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "mcp-better",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "mcpName": "io.github.Wolfe-Jam/mcp-better",
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.",
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.",
6
6
  "license": "MIT",
7
- "author": "Wolfe-Jam <wolfejam@faf.one>",
7
+ "author": "Wolfe-Jam <team@faf.one>",
8
8
  "homepage": "https://github.com/Wolfe-Jam/mcp-better",
9
9
  "repository": {
10
10
  "type": "git",