@coffre/conformance 0.4.0 → 0.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffre/conformance",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
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.0",
35
- "@coffre/db": "0.4.0"
34
+ "@coffre/cli": "0.4.2",
35
+ "@coffre/db": "0.4.2"
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.0"
44
+ "@coffre/client": "0.4.2"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsdown",
@@ -4,6 +4,7 @@ import { bearer } from '../browser.ts';
4
4
  import type { Deployment } from '../harness.ts';
5
5
  import { expect, refused } from '../report.ts';
6
6
  import { BULK, canary, DEV, PROD, PROJECT, signIn, valuesIn, type Canaries, type People } from './people.ts';
7
+ import { connectedApp, discovers } from './mcp.ts';
7
8
  import { pollDevice, startDevice } from './signin.ts';
8
9
 
9
10
  export async function membersOnly(deployment: Deployment, { stranger }: People): Promise<string> {
@@ -90,7 +91,13 @@ export async function offboarding(deployment: Deployment, { admin, leaver, servi
90
91
  await leaver.api.deviceLogins.decide(device.user_code, true);
91
92
  // What they saw is what to rotate once they are gone.
92
93
  await leaver.cli.secrets.reveal(DEV);
93
- const { report } = await admin.api.members.remove(leaver.member);
94
+ // An app they connected is listed to an owner, and removal disconnects it.
95
+ const app = await connectedApp(deployment, leaver);
96
+ const before = await admin.api.members.get(leaver.member);
97
+ expect(before.live.apps === 1 && before.apps.length === 1, "the owner's report does not list the app the leaver connected", before.apps);
98
+ const { revoked, report } = await admin.api.members.remove(leaver.member);
99
+ expect(revoked.apps === 1 && report.live.apps === 0 && report.apps.length === 0, 'removal does not say it disconnected their app', { revoked, apps: report.apps });
100
+ expect(!(await discovers(deployment, app)), "a removed member's app still reaches /mcp");
94
101
  const exposed = report.exposed.map((entry) => `${entry.project}/${entry.environment}/${entry.key}`).sort();
95
102
  const expected = Object.keys(valuesIn(canaries, DEV)).map((key) => `${DEV}/${key}`).sort();
96
103
  expect(same(exposed, expected), 'the offboarding report does not name what they read', report.exposed);
@@ -114,7 +121,7 @@ export async function offboarding(deployment: Deployment, { admin, leaver, servi
114
121
  expect(fresh.ok, 'a fresh provider callback could not sign the re-admitted member in');
115
122
  await admin.api.members.remove(leaver.member);
116
123
  await admin.api.members.remove(service.member);
117
- return `the report names ${exposed.length} values; re-admission revives no old session, token or approval; a fresh provider callback works`;
124
+ return `the report names ${exposed.length} values and their connected app, which removal disconnects; re-admission revives no old session, token or approval; a fresh provider callback works`;
118
125
  }
119
126
 
120
127
  /**
@@ -29,8 +29,7 @@ function pages(people: People): string[] {
29
29
  '/',
30
30
  '/login',
31
31
  '/unregistered',
32
- '/account',
33
- '/access',
32
+ ...['', '/sessions', '/apps', '/appearance'].map((tab) => `/account${tab}`),
34
33
  '/audit',
35
34
  '/settings',
36
35
  '/auth/device',
package/src/checks/mcp.ts CHANGED
@@ -52,8 +52,12 @@ function token(deployment: Deployment, fields: Record<string, string>): Promise<
52
52
  });
53
53
  }
54
54
 
55
- /** The person approves on the consent page, as its Approve does; the code comes back on the redirect. */
56
- async function connect(deployment: Deployment, person: Person, clientId: string, scope = 'browse'): Promise<{ code: string; verifier: string }> {
55
+ /**
56
+ * The person approves on the consent page, as its Approve does, with what
57
+ * they ticked: by default what the client asked for. The code comes back on
58
+ * the redirect.
59
+ */
60
+ async function connect(deployment: Deployment, person: Person, clientId: string, scope = 'read', ticked = scope.split(' ')): Promise<{ code: string; verifier: string }> {
57
61
  const verifier = base64url(randomBytes(32));
58
62
  const request = {
59
63
  client_id: clientId,
@@ -69,7 +73,7 @@ async function connect(deployment: Deployment, person: Person, clientId: string,
69
73
  expect(view.status === 'ready', 'the consent page refused a good request', view);
70
74
  expect(view.client.registration === 'dcr' && view.client.name === NAME && view.scopes.join(' ') === scope && view.loopbackOnly,
71
75
  'the consent page does not show the registered client as it is', view);
72
- const { redirect } = await person.api.oauth.decide({ request, approve: true, scopes: scope.split(' ') });
76
+ const { redirect } = await person.api.oauth.decide({ request, approve: true, scopes: ticked });
73
77
  const back = new URL(redirect);
74
78
  expect(`${back.origin}${back.pathname}` === REDIRECT, `the answer went to ${back.origin}${back.pathname}, not the redirect`, redirect);
75
79
  expect(back.searchParams.get('state') === STATE && back.searchParams.get('iss') === deployment.origin,
@@ -101,7 +105,8 @@ async function refused(deployment: Deployment, what: string, fields: Record<stri
101
105
  expect(answer.status === 400 && body.error === 'invalid_grant', `${what} answered ${answer.status}, not invalid_grant`, body);
102
106
  }
103
107
 
104
- async function discovers(deployment: Deployment, access: string): Promise<boolean> {
108
+ /** Whether a connection's access token still reaches /mcp. */
109
+ export async function discovers(deployment: Deployment, access: string): Promise<boolean> {
105
110
  const answer = await mcp(deployment, { authorization: `Bearer ${access}`, 'mcp-protocol-version': '2026-07-28', 'mcp-method': 'server/discover' }, 'server/discover', { _meta: ENVELOPE });
106
111
  if (answer.status === 401) return false;
107
112
  const body = await json(answer);
@@ -117,8 +122,8 @@ export async function mcpConnect(deployment: Deployment, people: People): Promis
117
122
  const anonymous = await mcp(deployment, {});
118
123
  const challenge = anonymous.headers.get('www-authenticate') ?? '';
119
124
  expect(anonymous.status === 401, `/mcp answered ${anonymous.status} without a token, not 401`);
120
- expect(challenge.includes(`resource_metadata="${origin}/.well-known/oauth-protected-resource/mcp"`) && challenge.includes('scope="browse"'),
121
- "the 401's challenge does not name the resource metadata and Browse", challenge);
125
+ expect(challenge.includes(`resource_metadata="${origin}/.well-known/oauth-protected-resource/mcp"`) && challenge.includes('scope="read"'),
126
+ "the 401's challenge does not name the resource metadata and Read", challenge);
122
127
  const resource = await json(await fetch(`${origin}/.well-known/oauth-protected-resource/mcp`));
123
128
  expect(resource.resource === `${origin}/mcp` && (resource.authorization_servers as unknown[] | undefined)?.[0] === origin,
124
129
  'the protected resource metadata does not name /mcp and coffre as its issuer', resource);
@@ -156,7 +161,7 @@ export async function mcpConnect(deployment: Deployment, people: People): Promis
156
161
 
157
162
  // The first connection: its code redeemed, then its refresh token rotated.
158
163
  const first = await redeem(deployment, clientId, await connect(deployment, people.reader, clientId));
159
- expect(first.access_token.startsWith('coffre_mcp_') && first.refresh_token.startsWith('coffre_mcr_') && first.scope === 'browse',
164
+ expect(first.access_token.startsWith('coffre_mcp_') && first.refresh_token.startsWith('coffre_mcr_') && first.scope === 'read',
160
165
  'the tokens are not the shapes and scope coffre issues', { scope: first.scope });
161
166
  expect(await discovers(deployment, first.access_token), 'a fresh access token was refused at /mcp');
162
167
 
@@ -232,14 +237,20 @@ async function register(deployment: Deployment): Promise<string> {
232
237
  return registered.client_id as string;
233
238
  }
234
239
 
240
+ /** A client registered and connected as the person, with Read, for a check of another's: its access token. */
241
+ export async function connectedApp(deployment: Deployment, person: Person): Promise<string> {
242
+ const clientId = await register(deployment);
243
+ return (await redeem(deployment, clientId, await connect(deployment, person, clientId))).access_token;
244
+ }
245
+
235
246
  /**
236
- * The Browse tools, as a client calls them (design section 14, checks 1, 4
247
+ * The Read tools, as a client calls them (design section 14, checks 1, 4
237
248
  * and 5): on 2026-07-28 and through a 2025-11-25 `initialize`, as the
238
249
  * reader, who sees dev and not prod. No value appears in any answer, the
239
250
  * headers must agree with the body, and every call is in the log under the
240
251
  * client, the API's own entries naming the connection.
241
252
  */
242
- export async function mcpBrowse(deployment: Deployment, people: People, canaries: Canaries): Promise<string> {
253
+ export async function mcpRead(deployment: Deployment, people: People, canaries: Canaries): Promise<string> {
243
254
  const clientId = await register(deployment);
244
255
  const { access_token: access } = await redeem(deployment, clientId, await connect(deployment, people.reader, clientId));
245
256
  const answers: string[] = [];
@@ -252,7 +263,7 @@ export async function mcpBrowse(deployment: Deployment, people: People, canaries
252
263
  const result = listed.body.result as { tools?: { name: string; annotations?: { readOnlyHint?: boolean } }[]; cacheScope?: string; ttlMs?: number } | undefined;
253
264
  const names = result?.tools?.map((tool) => tool.name) ?? [];
254
265
  expect(names.includes('list_secrets') && names.includes('run_with_secrets') && result?.cacheScope === 'public' && typeof result.ttlMs === 'number',
255
- 'tools/list does not list the Browse tools, cacheable', listed.body);
266
+ 'tools/list does not list the Read tools, cacheable', listed.body);
256
267
  const callTool = async (tool: string, args: Record<string, unknown>) => {
257
268
  const { response, body } = await modern(deployment, access, 'tools/call', { name: tool, arguments: args }, tool);
258
269
  answers.push(JSON.stringify(body));
@@ -291,7 +302,7 @@ export async function mcpBrowse(deployment: Deployment, people: People, canaries
291
302
 
292
303
  // No value in any answer.
293
304
  const leaked = Object.entries(canaries).filter(([, value]) => answers.some((answer) => answer.includes(value))).map(([path]) => path);
294
- expect(leaked.length === 0, 'a Browse tool answered with a secret value', leaked);
305
+ expect(leaked.length === 0, 'a Read tool answered with a secret value', leaked);
295
306
 
296
307
  // Every call in the log, under the client; the API's own refusal names the connection.
297
308
  const { entries } = await people.admin.api.audit.list({ actor: people.reader.member, detail: '1', limit: 500 });
@@ -303,7 +314,7 @@ export async function mcpBrowse(deployment: Deployment, people: People, canaries
303
314
  expect(api.length > 0, "the API's own entries for the calls do not name the connection", mine.map((entry) => entry.action));
304
315
  const shown = (await people.admin.api.audit.list({ actor: people.reader.member, limit: 500 })).entries;
305
316
  expect(!shown.some((entry) => entry.action === 'mcp.read'), 'read-only calls are not detail');
306
- return `on 2026-07-28 and 2025-11-25, the Browse tools as the reader: ${DEV} listed, ${PROD} refused, no value in any answer; headers held to the body; ${reads} reads as detail and the refusal shown, each under the client`;
317
+ return `on 2026-07-28 and 2025-11-25, the Read tools as the reader: ${DEV} listed, ${PROD} refused, no value in any answer; headers held to the body; ${reads} reads as detail and the refusal shown, each under the client`;
307
318
  }
308
319
 
309
320
  type ToolAnswer = {
@@ -317,7 +328,7 @@ type ToolAnswer = {
317
328
 
318
329
  /**
319
330
  * Changes, as a client asks for them (design section 14, checks 2 and 3):
320
- * Browse cannot ask at all, and with Write nothing changes until the person
331
+ * Read cannot ask at all, and with Write nothing changes until the person
321
332
  * approves on coffre's page. A client without URL elicitation gets the link
322
333
  * and calls again; one with it is asked to open the page, and retries with
323
334
  * its requestState, which no other call may use. Only the person decides,
@@ -342,15 +353,21 @@ export async function mcpChanges(deployment: Deployment, people: People, canarie
342
353
  };
343
354
  const archived = async (key: string) => (await admin.api.secrets.history(`${place}/${key}`)).archived;
344
355
 
345
- // Browse cannot ask for a change: 403, and the step-up's scopes; nothing reached the API.
346
- const browse = (await redeem(deployment, clientId, await connect(deployment, changer, clientId))).access_token;
347
- const stepUp = await call(browse, 'archive_secret', { secret: `${place}/OLD` });
348
- expect(stepUp.status === 403 && stepUp.challenge.includes('error="insufficient_scope"') && stepUp.challenge.includes('scope="browse write"'),
349
- `archive_secret with Browse answered ${stepUp.status}, not a step-up to Write`, stepUp.challenge);
350
- expect(!(await archived('OLD')), 'archive_secret with Browse archived the secret');
356
+ // Read cannot ask for a change: 403, the step-up's scopes, and for a client that does not step up, how to grant Write; nothing reached the API.
357
+ const reading = (await redeem(deployment, clientId, await connect(deployment, changer, clientId))).access_token;
358
+ const stepUp = await call(reading, 'archive_secret', { secret: `${place}/OLD` });
359
+ expect(stepUp.status === 403 && stepUp.challenge.includes('error="insufficient_scope"') && stepUp.challenge.includes('scope="read write"'),
360
+ `archive_secret with Read answered ${stepUp.status}, not a step-up to Write`, stepUp.challenge);
361
+ expect(stepUp.result?.isError === true && stepUp.result.content?.[0]?.text?.includes("ticking Write on coffre's consent page") === true,
362
+ 'archive_secret with Read does not say, as its result, how to grant Write', stepUp.result);
363
+ expect(!(await archived('OLD')), 'archive_secret with Read archived the secret');
364
+
365
+ // Write ticked on the consent page, though the client asked for Read only, as Claude does; the token says so.
366
+ const granted = await redeem(deployment, clientId, await connect(deployment, changer, clientId, 'read', ['write']));
367
+ expect(granted.scope === 'read write', `a connection ticked Write answered scope "${granted.scope}", not "read write"`, granted.scope);
368
+ const write = granted.access_token;
351
369
 
352
370
  // With Write, and no URL elicitation: the link, and nothing changed.
353
- const write = (await redeem(deployment, clientId, await connect(deployment, changer, clientId, 'browse write'))).access_token;
354
371
  const linked = await call(write, 'archive_secret', { secret: `${place}/OLD` });
355
372
  const approval = linked.result?.structuredContent?.approval;
356
373
  expect(linked.status === 200 && linked.result?.structuredContent?.status === 'pending' && approval?.url === `${deployment.origin}/approvals/${approval?.id}`,
@@ -428,12 +445,12 @@ export async function mcpChanges(deployment: Deployment, people: People, canarie
428
445
  expect(once.archive === 1 && once.rename === 1 && once.write === 2, 'the changes are not each made once, via the client and its approval', once);
429
446
  const decisions = entries.filter((entry) => entry.action === 'mcp.approve').map((entry) => `${entry.decision} ${entry.reason ?? ''}`.trim()).sort();
430
447
  expect(JSON.stringify(decisions) === JSON.stringify(['allow', 'allow', 'allow', 'allow', 'deny approved', 'deny changed']), 'the decisions, and the two refused, are not in the log', decisions);
431
- return `Browse stepped up to Write; with Write, the link without URL elicitation and an elicitation with it; nothing changed until ${changer.email} approved on coffre's page, another person and another site refused, a replayed requestState refused; each change made once, via the client and its approval; a value typed on the page only, and one coffre made reaching no one`;
448
+ return `Read stepped up to Write, saying how as its result; Write ticked beyond what was asked; with Write, the link without URL elicitation and an elicitation with it; nothing changed until ${changer.email} approved on coffre's page, another person and another site refused, a replayed requestState refused; each change made once, via the client and its approval; a value typed on the page only, and one coffre made reaching no one`;
432
449
  }
433
450
 
434
451
  /**
435
- * Values (design section 14, checks 2 and 4): Browse cannot read one, Read
436
- * values reads what the person may, a value shown on coffre's page goes to
452
+ * Values (design section 14, checks 2 and 4): Read cannot get one, Reveal
453
+ * values gets what the person may, a value shown on coffre's page goes to
437
454
  * the person and not the client, and one a client asks coffre to make
438
455
  * reaches no one.
439
456
  */
@@ -448,28 +465,28 @@ export async function mcpValues(deployment: Deployment, people: People, canaries
448
465
  };
449
466
  const dev = valuesIn(canaries, DEV);
450
467
 
451
- // Browse: no value to the model, but one shown to the person on coffre's page.
452
- const browse = (await redeem(deployment, clientId, await connect(deployment, reader, clientId))).access_token;
453
- const stepUp = await call(browse, 'read_secret_values', { path: DEV });
454
- expect(stepUp.status === 403 && stepUp.challenge.includes('scope="browse read-values"'), `read_secret_values with Browse answered ${stepUp.status}, not a step-up`, stepUp.challenge);
455
- const show = await call(browse, 'show_secret_value', { secret: `${DEV}/API_KEY` });
468
+ // Read: no value to the model, but one shown to the person on coffre's page.
469
+ const reading = (await redeem(deployment, clientId, await connect(deployment, reader, clientId))).access_token;
470
+ const stepUp = await call(reading, 'read_secret_values', { path: DEV });
471
+ expect(stepUp.status === 403 && stepUp.challenge.includes('scope="read reveal"'), `read_secret_values with Read answered ${stepUp.status}, not a step-up`, stepUp.challenge);
472
+ const show = await call(reading, 'show_secret_value', { secret: `${DEV}/API_KEY` });
456
473
  const id = show.result?.structuredContent?.approval?.id;
457
474
  expect(show.result?.structuredContent?.status === 'pending' && id !== undefined, 'show_secret_value did not open an approval', show.result);
458
475
  const page = (await reader.api.approvals.get(id!)).approval;
459
476
  expect(page.kind === 'reveal', 'the approval page does not say it shows a value', page);
460
477
  const shown = await reader.api.approvals.decide(id!, { approve: true, digest: page.digest });
461
478
  expect(shown.shown.some((line) => line.value === dev.API_KEY), 'Reveal did not show the person the value');
462
- const told = await call(browse, 'show_secret_value', { secret: `${DEV}/API_KEY` });
479
+ const told = await call(reading, 'show_secret_value', { secret: `${DEV}/API_KEY` });
463
480
  expect(told.result?.structuredContent?.status === 'approved', 'show_secret_value does not report the value as shown', told.result);
464
- const browseLeaks = Object.entries(canaries).filter(([, value]) => answers.some((answer) => answer.includes(value))).map(([path]) => path);
465
- expect(browseLeaks.length === 0, 'a Browse answer held a value', browseLeaks);
481
+ const readLeaks = Object.entries(canaries).filter(([, value]) => answers.some((answer) => answer.includes(value))).map(([path]) => path);
482
+ expect(readLeaks.length === 0, 'a Read answer held a value', readLeaks);
466
483
 
467
- // Read values: the values the person may read, and no others.
468
- const reading = (await redeem(deployment, clientId, await connect(deployment, reader, clientId, 'browse read-values'))).access_token;
469
- const read = await call(reading, 'read_secret_values', { path: DEV });
484
+ // Reveal values: the values the person may read, and no others.
485
+ const revealing = (await redeem(deployment, clientId, await connect(deployment, reader, clientId, 'read reveal'))).access_token;
486
+ const read = await call(revealing, 'read_secret_values', { path: DEV });
470
487
  expect(JSON.stringify(read.result?.structuredContent?.values) === JSON.stringify(dev), `read_secret_values on ${DEV} did not answer its values`);
471
488
  expect(read.result?.content?.[0]?.text?.startsWith('These values are now part of this conversation') === true, 'read_secret_values does not warn first', read.result?.content);
472
- const prod = await call(reading, 'read_secret_values', { path: PROD });
489
+ const prod = await call(revealing, 'read_secret_values', { path: PROD });
473
490
  expect(prod.result?.isError === true && !JSON.stringify(prod.result).includes(canaries[`${PROD}/API_KEY`]!), `the reader read ${PROD} through MCP`, prod.result);
474
- return `Browse stepped up for values and showed ${DEV}/API_KEY to ${reader.email} on coffre's page only; Read values answered ${DEV}'s values, warning first, and refused ${PROD}`;
491
+ return `Read stepped up for values and showed ${DEV}/API_KEY to ${reader.email} on coffre's page only; Reveal values answered ${DEV}'s values, warning first, and refused ${PROD}`;
475
492
  }
@@ -74,7 +74,7 @@ async function consentUrl(deployment: Deployment): Promise<string> {
74
74
  code_challenge: 'E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM',
75
75
  code_challenge_method: 'S256',
76
76
  state: 'pages',
77
- scope: 'browse write',
77
+ scope: 'read write',
78
78
  });
79
79
  return `${deployment.origin}/oauth/authorize?${request}`;
80
80
  }
@@ -101,7 +101,12 @@ export async function pagesInBrowser(deployment: Deployment, admin: Person, brow
101
101
  ['/service-accounts', 'Service accounts', null],
102
102
  [account, `service:${name}`, 'Sign-in'],
103
103
  [`${account}/activity`, `service:${name}`, 'Activity'],
104
+ ['/account', 'Account', 'Profile'],
105
+ ['/account/sessions', 'Account', 'Sessions'],
106
+ ['/account/apps', 'Account', 'Connected apps'],
107
+ ['/account/appearance', 'Account', 'Appearance'],
104
108
  ] as const;
109
+ const mcp = `${deployment.origin}/mcp`;
105
110
  const chrome = await Chrome.open(executable);
106
111
  try {
107
112
  for (const [path, heading, tab] of pages) {
@@ -119,6 +124,13 @@ export async function pagesInBrowser(deployment: Deployment, admin: Person, brow
119
124
  expect(loaded.dialog?.includes('Removing revokes 0 grants, 0 bearer tokens') === true, `${path}: Remove… does not preview what it would revoke`, loaded.dialog);
120
125
  }
121
126
  if (path === '/settings') expect(loaded.cards.includes('Keys'), '/settings does not show what the keys are checked against', loaded.cards);
127
+ if (path === person) expect(loaded.cards.includes('Connected apps'), `${path} does not show an owner the person's connected apps`, loaded.cards);
128
+ if (path === '/account/apps') {
129
+ expect(loaded.cards.join(' then ') === 'Connect an app then Connected apps', `${path} does not show Connect an app, then the connected apps`, loaded.cards);
130
+ for (const shown of [mcp, `claude mcp add --transport http coffre ${mcp}`, 'Add custom connector']) {
131
+ expect(loaded.text.includes(shown), `${path} does not show "${shown}"`, loaded.text);
132
+ }
133
+ }
122
134
  }
123
135
  // A project's tabs are routes: their links, back and forward move between them in the page.
124
136
  const project = new URL(`/projects/${PROJECT}`, deployment.origin).href;
@@ -143,13 +155,13 @@ export async function pagesInBrowser(deployment: Deployment, admin: Person, brow
143
155
  const loaded = await chrome.load(consent, admin.browser.cookies());
144
156
  expect(loaded.errors.length === 0, '/oauth/authorize reported errors in the browser', loaded.errors.join('\n'));
145
157
  expect(loaded.heading === `Connect ${CONSENT_CLIENT} to coffre?`, `/oauth/authorize shows ${JSON.stringify(loaded.heading)}`);
146
- for (const shown of ['Unverified', 'localhost', admin.email, 'Browse', 'Approve', 'Deny']) {
158
+ for (const shown of ['Unverified', 'localhost', admin.email, 'Read', 'Reveal values', 'Manage access', 'Approve', 'Deny']) {
147
159
  expect(loaded.text.includes(shown), `/oauth/authorize does not show "${shown}"`, loaded.text);
148
160
  }
149
161
  } finally {
150
162
  await chrome.close();
151
163
  }
152
- return `${pages.map(([path]) => path).join(', ')}, signed in, in Chrome: each rendered, on its tab, no error from their scripts; a project's tabs by their links, back and forward; a service account shown as service:${name}, OIDC then bearer tokens, its removal previewed; the keys' checks in Settings; its grant on dev in every project with an owner's grant button; the MCP consent page, a registered client shown as unverified`;
164
+ return `${pages.map(([path]) => path).join(', ')}, signed in, in Chrome: each rendered, on its tab, no error from their scripts; a project's tabs by their links, back and forward; a service account shown as service:${name}, OIDC then bearer tokens, its removal previewed; the keys' checks in Settings; its grant on dev in every project with an owner's grant button; the account's Connected apps tab, with this instance's MCP URL and Claude Code's command; the MCP consent page, a registered client shown as unverified`;
153
165
  }
154
166
 
155
167
  /**
package/src/suite.ts CHANGED
@@ -9,7 +9,7 @@ import { earlierCheckpoint } from './checks/checkpoints.ts';
9
9
  import { deletion } from './checks/deletion.ts';
10
10
  import { folders, forks, missingKeys, references } from './checks/environments.ts';
11
11
  import { appLogin, vaultLogin } from './checks/logins.ts';
12
- import { mcpBrowse, mcpChanges, mcpConnect, mcpValues } from './checks/mcp.ts';
12
+ import { mcpRead, mcpChanges, mcpConnect, mcpValues } from './checks/mcp.ts';
13
13
  import { accessAuthorship, memberTampering, noAuditNoAccess, sealingRace } from './checks/members.ts';
14
14
  import { refusedCheckpoint, missingCheckpoint, middleCut } from './checks/readiness.ts';
15
15
  import { editedGeneration, forgedCredential, forgedIdentity, forgedApproval } from './checks/signin.ts';
@@ -42,7 +42,7 @@ export async function conform(deployment: Deployment, options: { bulkLimit: numb
42
42
  await report.check('missing keys', { people }, ({ people }) => missingKeys(people));
43
43
  // Before offboarding: the leaver's CLI session is one of the credentials /mcp must refuse.
44
44
  await report.check('MCP connect', { people }, ({ people }) => mcpConnect(deployment, people));
45
- await report.check('MCP browse', all, ({ people, canaries }) => mcpBrowse(deployment, people, canaries));
45
+ await report.check('MCP read', all, ({ people, canaries }) => mcpRead(deployment, people, canaries));
46
46
  await report.check('MCP changes', all, ({ people, canaries }) => mcpChanges(deployment, people, canaries));
47
47
  await report.check('MCP values', all, ({ people, canaries }) => mcpValues(deployment, people, canaries));
48
48
  await report.check('reveals audited', all, ({ people, canaries }) => revealAudited(deployment, people, canaries, 'reveal'));