Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions scripts/test-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
2 changes: 1 addition & 1 deletion src/config/roleIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',

// ===================
Expand Down
5 changes: 3 additions & 2 deletions src/config/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/config/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ export const MEMBERS: readonly Member[] = [
ROLE_IDS.TYPESCRIPT_SDK,
ROLE_IDS.APPEALS,
ROLE_IDS.RELEASE_MANAGERS,
ROLE_IDS.REGISTRY_ADMINS,
],
},
{
Expand Down Expand Up @@ -655,6 +654,7 @@ export const MEMBERS: readonly Member[] = [
ROLE_IDS.TYPESCRIPT_SDK,
ROLE_IDS.APPEALS,
ROLE_IDS.RELEASE_MANAGERS,
ROLE_IDS.REGISTRY_ADMINS,
],
},
{
Expand Down
Loading