Skip to content

Design

A person on atproto has a PDS. That’s the server that keeps their repo, signs their commits, and lets apps sign in as them. A group needs the same, and more. There’s no one person behind it, so its members’ roles decide what it may do. Much of what it keeps is private, so someone has to decide who reads it. This host does both for every group it holds.

It implements the Atmosphere Groups spec (https://tangled.org/atmospheregroups.org/spec). Members keep their own accounts on their own PDSes, anywhere on the network. What the host adds beyond the spec, for its console, its command and its operators, is under org.atgrp.internal.*, and may change.

  • Its PDS. Each group is an account here, with its own did:plc, public repo and files (groups).
  • The authority for its spaces. A space is a private record store where the group and its members write. The host decides who reads and writes, gives readers credentials, and keeps an index of what was written (spaces).
  • Its OAuth server. A member signs an app in as the group, and the app gets what that member’s roles allow. The host checks it again at every write, and sends the app’s calls to other services on as the group (signing in).
  • An MCP server. A member connects an AI app here to act for them in one group, and its tools are the twins of the atgrp commands (MCP).
WhatWhere
The group’s identityits DID document in the PLC directory, changed with the host’s rotation key and any recovery keys (recovery)
Its public records and filesits repo here
Its about record and settings (config)its meta space, in the group’s repo there
Its roles, memberships, rules, labeler and spacesits members space, in the group’s repo there
What members write in its spaceseach member’s own repo in the space, on their own PDS
Invitesthe invitee’s inbox, a space of their own on their PDS (membership)
Join requests, the moderation queue, tokens, the indexthe host’s database
What it logged, and how it’s usedfiles beside its database, for its operators (deploying)
atproto, from its own repository

DRISL and CIDs, keys, the MST, CAR files, PLC operations, service auth, JOSE, lexicon data validation, and the space alpha’s set hash, commits, MACs, STAR archives and tokens. It’s checked against atproto’s interop test vectors and its reference implementation, and published to that repository’s Cargo registry.

crates/group-host

the server, over SQLite. It holds accounts and repos, spaces, membership and roles, OAuth, moderation, moving, and the console’s queries.

crates/group-host-mcp

the MCP tools, each the twin of an atgrp command, and what each call comes to. The host carries a call out as the member who connected an MCP client, and the command carries it out as the person running it.

crates/atgrp

a client for group hosts, and the atgrp command (commands)

web/

the console, a SvelteKit app where people start and run groups and approve apps.

Dockerfile, deploy/

one image of the host, the console and the command, and the compose file that runs it (deploying)

lexicons/

the schemas of the records and methods. The host checks every org.atgrp.* method’s parameters and input against its schema before the handler runs. It also checks a record of our own collections that an app writes as a group before it keeps it.

examples/read-a-group

an app that reads a group as anyone may, then signs in as the group, as an app built on atproto’s TypeScript packages does, and reads its spaces and the host’s methods. Its README says how to run it.

examples/join-a-group

an app that joins a group for a person, signed in at their own PDS: it makes their inbox, reads the group’s invite there, asks the host to let them in, and confirms the membership in their own repo. Its README says how to run it.

  • Spaces: what a space is, who reads and writes, credentials, and the index.
  • Groups: starting a group, how relays hear of it, what it shows, its about record, spaces, handle and own domain, and ending it.
  • Membership: roles, joining, invites, and leaving.
  • Signing in: people, apps and MCP clients, and what a token may do.
  • Moderation: labels, the queue, reports and appeals.
  • MCP: connecting an AI app to a group, and its tools.
  • Recovery: keys that let a group’s stewards hold its identity.
  • Moving: a group to another host, an account here as a group, and the host changing its address.
  • Limits: how much one caller may ask, and how often.

The reference lists every route and method, MCP tool, command and setting. Development says how to build and test it.