From 43a80e974f2a0d5ea629db94564dcc3632f38d7f Mon Sep 17 00:00:00 2001 From: Den <53200638+localden@users.noreply.github.com> Date: Tue, 1 Dec 2026 21:17:46 +0000 Subject: [PATCH] Make registry-admins a GitHub team --- README.md | 6 +++++- scripts/test-config.ts | 3 +++ src/config/roleIds.ts | 2 +- src/config/roles.ts | 5 +++-- src/config/users.ts | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8e9dd4bb..c96077ea 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,10 @@ Add the group's role to their `memberOf` in [`users.ts`](src/config/users.ts). I Someone new to the organization gets an invitation by email and has no access until they accept it. +### Add or remove a registry admin + +Add `ROLE_IDS.REGISTRY_ADMINS` to their `memberOf`, or remove it. The registry checks the `registry-admins` team each time an admin signs in, and admin tokens that were already issued last up to 5 minutes. + ### Get an @modelcontextprotocol.io account Maintainers, SDK maintainers and working group members can have one, and sign in to it with GitHub. Add these fields to your entry in [`users.ts`](src/config/users.ts), and add the sign-in role to your `memberOf`: @@ -119,7 +123,7 @@ The [contributor ladder](https://modelcontextprotocol.io/community/contributor-l Members need `push` on `modelcontextprotocol` because it only accepts pull requests from people with write access. Their `triage` is granted per repository, because the organization-wide triage role would also cover private ones. -Some teams are outside the ladder: `security-managers`, `security-team`, `workspace-sso`, the `*-auth` and `conformance-auth` code owner teams, the `*-collaborators` teams, `auth-contributors`, `access-maintainers` and `csharp-sdk-admin`. +Some teams are outside the ladder: `security-managers`, `security-team`, `workspace-sso`, the `*-auth` and `conformance-auth` code owner teams, the `*-collaborators` teams, `auth-contributors`, `access-maintainers`, `registry-admins` and `csharp-sdk-admin`. ## Discord diff --git a/scripts/test-config.ts b/scripts/test-config.ts index 3fbe97ef..a95fe2aa 100644 --- a/scripts/test-config.ts +++ b/scripts/test-config.ts @@ -209,6 +209,9 @@ test('Collaborator teams have no parent team', () => [ROLE_IDS.REGISTRY_COLLABORATORS, ROLE_IDS.TYPESCRIPT_SDK_COLLABORATORS].every( (id) => roleLookup.get(id)?.github?.parent === undefined )); +test('registry-admins has no parent or child teams', () => + roleLookup.get(ROLE_IDS.REGISTRY_ADMINS)?.github?.parent === undefined && + ROLES.every((role) => role.github?.parent !== ROLE_IDS.REGISTRY_ADMINS)); test('A parent may be granted less than its child', () => grantErrors([ { team: 'top', permission: 'pull' }, diff --git a/src/config/roleIds.ts b/src/config/roleIds.ts index 02f45e21..2588d46a 100644 --- a/src/config/roleIds.ts +++ b/src/config/roleIds.ts @@ -31,7 +31,7 @@ export const ROLE_IDS = { REFERENCE_SERVERS_MAINTAINERS: 'reference-servers-maintainers', REGISTRY_MAINTAINERS: 'registry-maintainers', REGISTRY_COLLABORATORS: 'registry-collaborators', // GitHub only - REGISTRY_ADMINS: 'registry-admins', // Google only + REGISTRY_ADMINS: 'registry-admins', // GitHub only (admin sign-in to the registry) USE_MCP_MAINTAINERS: 'use-mcp-maintainers', // =================== diff --git a/src/config/roles.ts b/src/config/roles.ts index 397bc325..2d81913e 100644 --- a/src/config/roles.ts +++ b/src/config/roles.ts @@ -240,8 +240,9 @@ export const ROLES: readonly Role[] = [ { id: ROLE_IDS.REGISTRY_ADMINS, description: 'Registry administrators', - google: { group: 'registry-admins' }, - // Google only - must not allow external members + // The registry checks this team when an admin signs in. + // No parent team, and must not be a parent: members of child teams would count too + github: { team: 'registry-admins' }, }, { id: ROLE_IDS.USE_MCP_MAINTAINERS, diff --git a/src/config/users.ts b/src/config/users.ts index 3a7db0ca..20b1d8a0 100644 --- a/src/config/users.ts +++ b/src/config/users.ts @@ -276,7 +276,6 @@ export const MEMBERS: readonly Member[] = [ ROLE_IDS.TYPESCRIPT_SDK, ROLE_IDS.APPEALS, ROLE_IDS.RELEASE_MANAGERS, - ROLE_IDS.REGISTRY_ADMINS, ], }, { @@ -655,6 +654,7 @@ export const MEMBERS: readonly Member[] = [ ROLE_IDS.TYPESCRIPT_SDK, ROLE_IDS.APPEALS, ROLE_IDS.RELEASE_MANAGERS, + ROLE_IDS.REGISTRY_ADMINS, ], }, {