# mcp.calebsargeant.com auth.md

You are an agent. This is the authorization server for the Caleb Sargeant MCP server: a public, read-only MCP server over Caleb Sargeant's website, CV and technical documentation.

**No sign-up is needed.** Everything here is public, and an MCP request with no token is served. Point your client at https://mcp.calebsargeant.com/ and you are done; the rest of this page is optional.

A token is optional, anonymous and free. What it buys is a rate-limit bucket of your own:

| | Ceiling |
|---|---|
| No token | 60 requests per minute per IP address |
| With a token | 120 requests per minute per client, and 300 requests per minute per IP address across all tokens |

Only tool calls count against the no-token and per-client ceilings; connecting, listing and notifications never do. The per-IP ceiling across all tokens counts every request that carries one, connecting included, because it is checked before the request is read. Requests from Anthropic's published outbound range, which every Claude app connector uses, count against buckets of their own: 1000 requests per minute per IP address without a token, 1000 requests per minute per IP address across all tokens, and 120 requests per minute per IP address for the authorization endpoints.

It unlocks no extra tools and no extra data. There are no accounts, no personal data and nothing to claim.

## Step 1: Discover

- Protected resource metadata (RFC 9728): https://mcp.calebsargeant.com/.well-known/oauth-protected-resource, whose `resource` is `https://mcp.calebsargeant.com`.
- Authorization server metadata (RFC 8414): https://mcp.calebsargeant.com/.well-known/oauth-authorization-server. Its `issuer` is `https://mcp.calebsargeant.com`, and its `agent_auth` block points back to this page.

## Step 2: Pick a method

- **You follow auth.md**: register anonymously (Step 3a). No browser, no redirect.
- **You are an MCP client with OAuth support**: dynamic client registration, then the authorization code grant with PKCE (Step 3b).
- `identity_assertion` and `service_auth` are not enabled (`issuer_not_enabled`, `service_auth_not_enabled`): there are no accounts to attach an identity to.

## Step 3a: Register anonymously, then exchange

```http
POST https://mcp.calebsargeant.com/agent/identity
Content-Type: application/json

{"type": "anonymous"}
```

```json
{
  "registration_id": "reg_...",
  "registration_type": "anonymous",
  "identity_assertion": "<JWT>",
  "assertion_expires": "<ISO 8601>",
  "pre_claim_scopes": ["mcp:read"]
}
```

The `identity_assertion` is **single-use** and expires in 5 minutes, so exchange it straight away (RFC 7523). There is no `claim_token`: see Claiming.

```http
POST https://mcp.calebsargeant.com/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=<identity_assertion>&resource=https%3A%2F%2Fmcp.calebsargeant.com
```

## Step 3b: OAuth 2.1, for MCP clients

1. **Register** (RFC 7591) at https://mcp.calebsargeant.com/oauth/register. Public clients only: no secret, `token_endpoint_auth_method` is `none`. Redirect URIs must be https, or http on `localhost`, `127.0.0.1` or `[::1]` with any port; up to five.

   ```json
   {"client_name": "my-agent", "redirect_uris": ["http://127.0.0.1:33418/callback"]}
   ```

   The answer carries your `client_id`. Nothing is stored: the id is the registration, signed, and it is valid at https://mcp.calebsargeant.com only.
2. **Authorize**: send the browser to https://mcp.calebsargeant.com/oauth/authorize with `response_type=code`, `client_id`, `redirect_uri`, `code_challenge` and `code_challenge_method=S256` (PKCE is required), `state`, and `resource=https://mcp.calebsargeant.com`. It is approved at once: there is no login and no consent screen. A loopback redirect URI gets the redirect straight away; an https one gets a page with one link to follow. The answer carries `code`, `state` and `iss` (RFC 9207); check that `iss` is `https://mcp.calebsargeant.com`. The code is single-use and lives 60 seconds.
3. **Exchange** at https://mcp.calebsargeant.com/oauth/token: `grant_type=authorization_code`, `code`, `code_verifier`, `client_id`, `redirect_uri` and `resource`, form-encoded.

## Step 4: Use the token

Send it as `Authorization: Bearer <access_token>` (the header is the only bearer method) on your MCP requests. It is accepted at every address of this server:

- https://mcp.calebsargeant.com/
- https://calebsargeant.com/mcp
- https://docs.calebsargeant.com/mcp

Its audience (`resource`) may be any of: `https://mcp.calebsargeant.com`, `https://calebsargeant.com`, `https://calebsargeant.com/mcp`, `https://docs.calebsargeant.com`, `https://docs.calebsargeant.com/mcp`. The scope is `mcp:read`, which is everything, because everything is read-only.

- **Lifetime**: 1 hour (`expires_in: 3600`). There are no refresh tokens: when it expires, repeat Step 3.
- **Revocation**: there is no revocation endpoint. Tokens expire within the hour; drop one you no longer want.
- **An invalid or expired token** gets `401` with `WWW-Authenticate: Bearer error="invalid_token", resource_metadata="https://mcp.calebsargeant.com/.well-known/oauth-protected-resource"`. Get a new token, or send none: the anonymous path always works.

## Claiming

There is no claim ceremony. Anonymous credentials here have no account behind them, so there is nothing to claim: https://mcp.calebsargeant.com/agent/identity/claim answers every request with `claim_not_supported`.

## Errors

| Code | Where | What to do |
|---|---|---|
| `invalid_request` | any | Fix the request as `error_description` says. |
| `invalid_client` | `/oauth/authorize`, `/oauth/token` | Register again at https://mcp.calebsargeant.com/oauth/register. |
| `invalid_redirect_uri` | `/oauth/register` | Use https, or http on a loopback host. |
| `invalid_grant` | `/oauth/token` | The code or assertion expired, was already used, or is not yours. Start Step 3 again. |
| `invalid_target` | `/oauth/authorize`, `/oauth/token` | Use one of the resources listed in Step 4. |
| `issuer_not_enabled`, `service_auth_not_enabled` | `/agent/identity` | Register anonymously. |
| `claim_not_supported` | `/agent/identity/claim` | Nothing: there is nothing to claim. |
| `rate_limited` (429) | `/oauth/register`, `/oauth/token`, `/agent/identity` | 10 requests per minute per IP address; wait a minute. |
| `invalid_token` (401) | the MCP endpoint | Get a new token, or send none. |

## Contact

- Email: contact@calebsargeant.com
- Security: https://mcp.calebsargeant.com/.well-known/security.txt
