# Gomnee auth.md

How an AI agent gets access to Gomnee for a person. Gomnee's API is its MCP
server at app.gomnee.com. This site, gomnee.com, has no API of its own.

## Who can connect

Assistants and agents acting for a person who has a Gomnee account. Gomnee is
invite-only: an agent cannot register itself or request an API key. The person
connects their assistant and decides what it may do.

## Discover

- Resource: `https://app.gomnee.com/mcp`, an MCP server over Streamable HTTP.
- A request without a token gets `401` with
  `WWW-Authenticate: Bearer resource_metadata="https://app.gomnee.com/.well-known/oauth-protected-resource/mcp"`.
- That document (RFC 9728) names the authorization server,
  `https://clerk.gomnee.com`, and the scopes. The authorization server's
  metadata (RFC 8414) is at
  `https://app.gomnee.com/.well-known/oauth-authorization-server`.

## Method

- OAuth authorization code with PKCE (`S256`), signed in as the person. The
  authorization server also offers the device authorization grant.
- There is no dynamic client registration: connect from an assistant Gomnee
  supports. Claude works today: https://gomnee.com/claude
- Send the access token as `Authorization: Bearer <token>`.

## What a token allows

Only the scopes the person granted, such as `gomnee:article:read`. Applying
proposals, approving an Article and publishing it each need their own scope
and consent: `gomnee:proposals:apply`, `gomnee:article:approve` and
`gomnee:article:publish`. Gomnee still applies the owner's rules to every
action.

## Revoke

Tokens can be revoked at `https://clerk.gomnee.com/oauth/token/revoke`.

Questions: support@gomnee.com
