@chrischall/mcp-utils 3.0.1 → 3.0.3

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 (49) hide show
  1. package/README.md +86 -13
  2. package/dist/errors/index.d.ts.map +1 -1
  3. package/dist/errors/index.js +6 -1
  4. package/dist/errors/index.js.map +1 -1
  5. package/dist/fs/index.d.ts +1 -1
  6. package/dist/fs/index.d.ts.map +1 -1
  7. package/dist/fs/index.js +1 -1
  8. package/dist/fs/index.js.map +1 -1
  9. package/dist/fs/output.d.ts +26 -3
  10. package/dist/fs/output.d.ts.map +1 -1
  11. package/dist/fs/output.js +70 -5
  12. package/dist/fs/output.js.map +1 -1
  13. package/dist/fs/write.d.ts +19 -1
  14. package/dist/fs/write.d.ts.map +1 -1
  15. package/dist/fs/write.js +23 -0
  16. package/dist/fs/write.js.map +1 -1
  17. package/dist/graphql/client.d.ts +19 -1
  18. package/dist/graphql/client.d.ts.map +1 -1
  19. package/dist/graphql/client.js +49 -3
  20. package/dist/graphql/client.js.map +1 -1
  21. package/dist/html/index.d.ts +16 -4
  22. package/dist/html/index.d.ts.map +1 -1
  23. package/dist/html/index.js +118 -29
  24. package/dist/html/index.js.map +1 -1
  25. package/dist/http/body-limit.d.ts.map +1 -1
  26. package/dist/http/body-limit.js +2 -1
  27. package/dist/http/body-limit.js.map +1 -1
  28. package/dist/http/index.d.ts +10 -3
  29. package/dist/http/index.d.ts.map +1 -1
  30. package/dist/http/index.js +87 -21
  31. package/dist/http/index.js.map +1 -1
  32. package/dist/internal/tags.d.ts +16 -0
  33. package/dist/internal/tags.d.ts.map +1 -0
  34. package/dist/internal/tags.js +37 -0
  35. package/dist/internal/tags.js.map +1 -0
  36. package/dist/netguard/index.d.ts +2 -1
  37. package/dist/netguard/index.d.ts.map +1 -1
  38. package/dist/netguard/index.js +9 -3
  39. package/dist/netguard/index.js.map +1 -1
  40. package/dist/scrape/index.d.ts +4 -3
  41. package/dist/scrape/index.d.ts.map +1 -1
  42. package/dist/scrape/index.js +69 -38
  43. package/dist/scrape/index.js.map +1 -1
  44. package/dist/session/index.d.ts +5 -7
  45. package/dist/session/index.d.ts.map +1 -1
  46. package/dist/session/index.js +44 -26
  47. package/dist/session/index.js.map +1 -1
  48. package/docs/CONFIRM-TOKEN.md +9 -4
  49. package/package.json +9 -9
@@ -34,8 +34,10 @@ closes the "stable key + in-memory store = replay after restart" window.
34
34
  **2.12.0** added `confirmWrite`, which binds the arguments, the account and the
35
35
  displayed preview on **both** rails — resolving the audit's SEC-2 concern
36
36
  (a token bound to a tool-chosen `payload` rather than to what the call does)
37
- for every adopter. A `subject()` that returns no payload now throws instead of
38
- binding only the target. **3.0** made `account` and `args` required keys of
37
+ for every adopter. On the raw token rail, a `subject()` that returns no
38
+ payload now throws instead of binding only the target (under
39
+ `confirmationFromEnv` the payload is always the `{ payload, args }` wrapper, so
40
+ it never throws there — the bound `args` already cover what the call does). **3.0** made `account` and `args` required keys of
39
41
  `confirmationFromEnv` (fleet-audit#979, #986, #1066, #1072, #1086, #1089,
40
42
  #1098: every one a token minted without one of them), and folded `account`
41
43
  into the elicitation binding; see [`MIGRATION-3.md`](MIGRATION-3.md).
@@ -163,8 +165,11 @@ not a convenient subset. The fleet layers enforce this:
163
165
  single-account server; it becomes the `a` claim) and `args` (`undefined` or
164
166
  `null` throws; a tool with no arguments passes `{}`).
165
167
  - `confirmWrite` hashes the whole binding object of [§10](#10-confirmwrite).
166
- - A `subject()` returning no `payload` throws (`hash(undefined)` is a constant
167
- and would authorise anything at the target).
168
+ - On the raw `tokenFallback` rail, a `subject()` returning no `payload` throws
169
+ (`hash(undefined)` is a constant and would authorise anything at the
170
+ target). Under `confirmationFromEnv` it does not throw: the env layer binds
171
+ `{ payload: undefined, args }`, and the required `args` already pin what the
172
+ call does.
168
173
 
169
174
  ## 5. Verify order
170
175
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrischall/mcp-utils",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Shared scaffolding for the chrischall MCP fleet — server bootstrap, tool-result formatting, helpful errors, hardened env/config, a bearer API-client kit, zod atoms, session registries, a fetchproxy transport adapter, auth resolver skeletons, an in-memory test harness, and opt-in HTML helpers. The generic MCP glue hoisted out of ~19 sibling servers.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -66,13 +66,13 @@
66
66
  "peerDependencies": {
67
67
  "@fetchproxy/protocol": "^3.2.0",
68
68
  "@fetchproxy/server": "^3.2.0",
69
- "@modelcontextprotocol/client": "^2.3.0",
70
- "@modelcontextprotocol/server": "^2.3.0",
69
+ "@modelcontextprotocol/client": "^2.3.1",
70
+ "@modelcontextprotocol/server": "^2.3.1",
71
71
  "dotenv": ">=16.0.0",
72
72
  "node-html-parser": "^9.0.0",
73
73
  "undici": "^7.0.0 || ^8.0.0",
74
74
  "vitest": "^4.1.0 || ^5.0.0",
75
- "zod": "^4.6.5"
75
+ "zod": "^4.6.6"
76
76
  },
77
77
  "peerDependenciesMeta": {
78
78
  "@fetchproxy/protocol": {
@@ -98,16 +98,16 @@
98
98
  }
99
99
  },
100
100
  "devDependencies": {
101
- "@fetchproxy/server": "^3.6.0",
102
- "@modelcontextprotocol/client": "^2.3.0",
103
- "@modelcontextprotocol/server": "^2.3.0",
104
- "@types/node": "^26.6.4",
101
+ "@fetchproxy/server": "^3.6.1",
102
+ "@modelcontextprotocol/client": "^2.3.1",
103
+ "@modelcontextprotocol/server": "^2.3.1",
104
+ "@types/node": "^26.6.5",
105
105
  "@vitest/coverage-v8": "^5.0.3",
106
106
  "node-html-parser": "^9.0.4",
107
107
  "typescript": "^7.0.2",
108
108
  "undici": "^8.11.2",
109
109
  "vitest": "^5.0.0",
110
- "zod": "^4.6.5"
110
+ "zod": "^4.6.6"
111
111
  },
112
112
  "engines": {
113
113
  "node": ">=22.0.0"