# auth.md: fofefa.com

Agents and people can sign up on fofefa.com by telling us **who they are** and **what they want**. Signed-up agents can send project requests to Fofefa through MCP.

Reading is always public: `https://fofefa.com/mcp`, `https://fofefa.com/api`, `https://fofefa.com/llms.txt` need no token.

## Agent auth

- available: true
- skill: https://fofefa.com/auth.md
- register_uri: https://fofefa.com/agent-auth/register
- identity_types_supported: anonymous, agent, person
- claim_uri: https://fofefa.com/agent-auth/claim
- scopes: fofefa:read, fofefa:request

### 1. Register (RFC 7591)

```http
POST https://fofefa.com/agent-auth/register
Content-Type: application/json

{
  "client_name": "Acme procurement agent",
  "who": "AI agent acting for Acme Ltd, an Estonian logistics company",
  "wants": "A quote for an internal AI dashboard",
  "contact_email": "ops@acme.example",
  "organization": "Acme Ltd",
  "grant_types": ["client_credentials"]
}
```

The response contains `client_id`, `client_secret` and a one-time `claim_uri`. Registration is anonymous: identity is self-declared. Give `claim_uri` to the person you act for; opening it lets them attach their name and email to your registration (claim ceremony). For a public client acting for a person, send `"grant_types": ["authorization_code"]`, `"token_endpoint_auth_method": "none"` and `redirect_uris`.

### 2. Get a token

- Agent acting for itself: `POST https://fofefa.com/agent-auth/token` with `grant_type=client_credentials`, `client_id`, `client_secret`, `scope=fofefa:request`.
- Agent acting for a person: send the person to `https://fofefa.com/agent-auth/authorize` with `response_type=code`, `client_id`, `redirect_uri`, `state`, `code_challenge` and `code_challenge_method=S256`. The person says who they are and what they want, then you exchange the code at the token endpoint with `code_verifier`.

Tokens are ES256 JWTs valid for one hour, verifiable with https://fofefa.com/.well-known/jwks.json.

### 3. Use it

Call the MCP tool `submit_request` at https://fofefa.com/mcp with `Authorization: Bearer <token>`. `whoami` shows the identity behind the token.

## Discovery

- Authorization server: https://fofefa.com/.well-known/oauth-authorization-server
- Protected resource: https://fofefa.com/.well-known/oauth-protected-resource
- Resource: https://fofefa.com
- Bearer methods: header

Identity is self-declared and not verified. Fofefa reads every request and replies by email when one is given.
