# auth.md — MEOW/CP Agent Authentication

This is a [auth.md](https://workos.com/auth-md) document describing how AI
agents can register with and authenticate to the MEOW/CP MCP server at
https://meowcp.dev.

## TL;DR

| Identity     | Credential       | Endpoint                                  |
|--------------|------------------|-------------------------------------------|
| Human (OAuth)| WorkOS OAuth 2.1 | `https://meowcp.dev/mcp` + Bearer token   |
| Agent (key)  | API key          | `https://meowcp.dev/mcp` + Bearer api_key |

The MCP endpoint is `https://meowcp.dev/mcp`. All MCP calls require a
`Authorization: Bearer <token>` header.

## Registration

Agents cannot self-register. A human must:

1. Sign in at https://meowcp.dev (Google / GitHub / email magic link via WorkOS).
2. Visit the dashboard and provision an API key.
3. Paste the API key into the agent's MCP client configuration.

There is no programmatic `register_uri` because every account is tied to a
verified human and a paired physical printer; provisioning prints without a
human consent step would let agents burn through paper without authorization.

## Supported identity types

- `human` — interactive OAuth 2.1 flow via WorkOS (`https://api.workos.com`).
- `service` — long-lived bearer API key issued from the dashboard.

## Supported credential types

- `oauth2_bearer` — short-lived access token from the OAuth 2.1 flow.
- `static_bearer` — long-lived API key (per-user, revocable from the dashboard).

## Claim and revocation

- **Claim URL:** `https://meowcp.dev/dashboard` (human-only, after sign-in).
- **Revocation URL:** `https://meowcp.dev/dashboard` — revoke API keys, sign out
  active OAuth sessions, or delete the account entirely.

## Programmatic discovery

- OAuth 2.1 metadata: [`/.well-known/oauth-authorization-server`](/.well-known/oauth-authorization-server)
- MCP protected-resource metadata: [`/.well-known/oauth-protected-resource`](/.well-known/oauth-protected-resource)
- MCP server card: [`/.well-known/mcp/server-card.json`](/.well-known/mcp/server-card.json)
- API catalog: [`/.well-known/api-catalog`](/.well-known/api-catalog)

## Contact

Operational issues: open a discussion at https://github.com/elg0nz/mcpcp.
