@coffre/conformance 0.4.3 → 0.4.4
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/dist/main.js +1 -1
- package/package.json +4 -4
- package/src/checks/mcp.ts +3 -2
package/dist/main.js
CHANGED
|
@@ -1270,7 +1270,7 @@ async function mcpRead(deployment, people, canaries) {
|
|
|
1270
1270
|
const listed = await modern(deployment, access, "tools/list");
|
|
1271
1271
|
const result = listed.body.result;
|
|
1272
1272
|
const names = result?.tools?.map((tool) => tool.name) ?? [];
|
|
1273
|
-
expect(names.includes("list_secrets") && names.includes("run_with_secrets") && result?.cacheScope === "
|
|
1273
|
+
expect(names.includes("list_secrets") && names.includes("run_with_secrets") && !names.includes("admit_member") && result?.cacheScope === "private" && typeof result.ttlMs === "number" && result.ttlMs <= 6e5, "tools/list does not list the reader's tools alone, cached for them only and briefly", listed.body);
|
|
1274
1274
|
const callTool = async (tool, args) => {
|
|
1275
1275
|
const { response, body } = await modern(deployment, access, "tools/call", {
|
|
1276
1276
|
name: tool,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coffre/conformance",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Checks a coffre deployment from outside: what it must never do, whatever code it runs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"jose": "6.2.3",
|
|
33
33
|
"pg": "8.16.3",
|
|
34
|
-
"@coffre/cli": "0.4.
|
|
35
|
-
"@coffre/db": "0.4.
|
|
34
|
+
"@coffre/cli": "0.4.4",
|
|
35
|
+
"@coffre/db": "0.4.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "26.1.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tsdown": "0.23.0",
|
|
42
42
|
"typescript": "5.9.3",
|
|
43
43
|
"vite": "8.1.5",
|
|
44
|
-
"@coffre/client": "0.4.
|
|
44
|
+
"@coffre/client": "0.4.4"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsdown",
|
package/src/checks/mcp.ts
CHANGED
|
@@ -262,8 +262,9 @@ export async function mcpRead(deployment: Deployment, people: People, canaries:
|
|
|
262
262
|
const listed = await modern(deployment, access, 'tools/list');
|
|
263
263
|
const result = listed.body.result as { tools?: { name: string; annotations?: { readOnlyHint?: boolean } }[]; cacheScope?: string; ttlMs?: number } | undefined;
|
|
264
264
|
const names = result?.tools?.map((tool) => tool.name) ?? [];
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
// The reader's list: their role's tools, and none of an instance owner's; theirs alone to cache, and not for long, so a role's change shows.
|
|
266
|
+
expect(names.includes('list_secrets') && names.includes('run_with_secrets') && !names.includes('admit_member') && result?.cacheScope === 'private' && typeof result.ttlMs === 'number' && result.ttlMs <= 600_000,
|
|
267
|
+
"tools/list does not list the reader's tools alone, cached for them only and briefly", listed.body);
|
|
267
268
|
const callTool = async (tool: string, args: Record<string, unknown>) => {
|
|
268
269
|
const { response, body } = await modern(deployment, access, 'tools/call', { name: tool, arguments: args }, tool);
|
|
269
270
|
answers.push(JSON.stringify(body));
|