mcp-better 0.8.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 +42 -4
- package/lib/platform.js +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# mcp-better — built for 7/28
|
|
2
2
|
|
|
3
|
+
[](https://github.com/Wolfe-Jam/mcp-better/actions/workflows/ci.yml)
|
|
4
|
+
[](https://crates.io/crates/mcp-better)
|
|
5
|
+
[](https://www.npmjs.com/package/mcp-better)
|
|
6
|
+
[](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.
|
|
@@ -28,6 +50,21 @@ One Agent Skill (`mcp-better-lab`) on the same process as tools:
|
|
|
28
50
|
|
|
29
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).
|
|
30
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.
|
|
67
|
+
|
|
31
68
|
## What is 7/28?
|
|
32
69
|
|
|
33
70
|
| Name | What it is |
|
|
@@ -56,6 +93,7 @@ Humans say **7/28**. Machines negotiate **`2026-07-28`**.
|
|
|
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) |
|
|
58
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` |
|
|
59
97
|
|
|
60
98
|
## What BETTER means
|
|
61
99
|
|
|
@@ -107,11 +145,11 @@ MCP_BETTER_BIN="$(pwd)/target/debug/mcp-better" cargo run --example mrtr-client
|
|
|
107
145
|
```bash
|
|
108
146
|
cargo run --release
|
|
109
147
|
# install from crates.io — first hit compiles deps once (see above):
|
|
110
|
-
cargo install mcp-better --version 0.
|
|
111
|
-
mcp-better --version # mcp-better 0.
|
|
148
|
+
cargo install mcp-better --version 0.9.0 --locked
|
|
149
|
+
mcp-better --version # mcp-better 0.9.0
|
|
112
150
|
mcp-better --help
|
|
113
151
|
# optional lying companion (teaching only — not for hosts):
|
|
114
|
-
# cargo install mcp-better --version 0.
|
|
152
|
+
# cargo install mcp-better --version 0.9.0 --locked --bin mcp-worse
|
|
115
153
|
```
|
|
116
154
|
|
|
117
155
|
**Streamable HTTP** (local demo only — see [SECURITY.md](./SECURITY.md)):
|
|
@@ -142,7 +180,7 @@ cargo run --release -- --http
|
|
|
142
180
|
|
|
143
181
|
All three are annotated `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`: they read only, change nothing and stay in the process.
|
|
144
182
|
|
|
145
|
-
## Protocol claims (v0.
|
|
183
|
+
## Protocol claims (v0.9.0 — same 7/28 era · the official conformance suite in CI)
|
|
146
184
|
|
|
147
185
|
| Surface | Status |
|
|
148
186
|
|---------|--------|
|
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:
|
|
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.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"mcpName": "io.github.Wolfe-Jam/mcp-better",
|
|
5
|
-
"description": "
|
|
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",
|