@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.
- package/README.md +86 -13
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +6 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/fs/index.d.ts +1 -1
- package/dist/fs/index.d.ts.map +1 -1
- package/dist/fs/index.js +1 -1
- package/dist/fs/index.js.map +1 -1
- package/dist/fs/output.d.ts +26 -3
- package/dist/fs/output.d.ts.map +1 -1
- package/dist/fs/output.js +70 -5
- package/dist/fs/output.js.map +1 -1
- package/dist/fs/write.d.ts +19 -1
- package/dist/fs/write.d.ts.map +1 -1
- package/dist/fs/write.js +23 -0
- package/dist/fs/write.js.map +1 -1
- package/dist/graphql/client.d.ts +19 -1
- package/dist/graphql/client.d.ts.map +1 -1
- package/dist/graphql/client.js +49 -3
- package/dist/graphql/client.js.map +1 -1
- package/dist/html/index.d.ts +16 -4
- package/dist/html/index.d.ts.map +1 -1
- package/dist/html/index.js +118 -29
- package/dist/html/index.js.map +1 -1
- package/dist/http/body-limit.d.ts.map +1 -1
- package/dist/http/body-limit.js +2 -1
- package/dist/http/body-limit.js.map +1 -1
- package/dist/http/index.d.ts +10 -3
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +87 -21
- package/dist/http/index.js.map +1 -1
- package/dist/internal/tags.d.ts +16 -0
- package/dist/internal/tags.d.ts.map +1 -0
- package/dist/internal/tags.js +37 -0
- package/dist/internal/tags.js.map +1 -0
- package/dist/netguard/index.d.ts +2 -1
- package/dist/netguard/index.d.ts.map +1 -1
- package/dist/netguard/index.js +9 -3
- package/dist/netguard/index.js.map +1 -1
- package/dist/scrape/index.d.ts +4 -3
- package/dist/scrape/index.d.ts.map +1 -1
- package/dist/scrape/index.js +69 -38
- package/dist/scrape/index.js.map +1 -1
- package/dist/session/index.d.ts +5 -7
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +44 -26
- package/dist/session/index.js.map +1 -1
- package/docs/CONFIRM-TOKEN.md +9 -4
- package/package.json +9 -9
package/docs/CONFIRM-TOKEN.md
CHANGED
|
@@ -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.
|
|
38
|
-
|
|
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
|
-
-
|
|
167
|
-
and would authorise anything at the
|
|
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.
|
|
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.
|
|
70
|
-
"@modelcontextprotocol/server": "^2.3.
|
|
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.
|
|
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.
|
|
102
|
-
"@modelcontextprotocol/client": "^2.3.
|
|
103
|
-
"@modelcontextprotocol/server": "^2.3.
|
|
104
|
-
"@types/node": "^26.6.
|
|
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.
|
|
110
|
+
"zod": "^4.6.6"
|
|
111
111
|
},
|
|
112
112
|
"engines": {
|
|
113
113
|
"node": ">=22.0.0"
|