# auth.md

You are an agent. This service supports **agentic registration**: discover → register (anonymous/public) → call MCP tools or read markdown.

## Step 1 — Discover

Discovery is two hops. You can fetch the OAuth Protected Resource Metadata (PRM) and Authorization Server Metadata:

- **Protected Resource Metadata (PRM)**: `GET /.well-known/oauth-protected-resource`
- **Authorization Server Metadata**: `GET /.well-known/oauth-authorization-server`

## Step 2 — Identity & Registration

All public clinical information, academic publications, and MCP tools on `drmanjunath.in` support **anonymous public registration**:

- **Identity Types Supported**: `["anonymous"]`
- **Credential Types Supported**: `["none"]`
- **Register URI**: `https://drmanjunath.in/agent/identity`
- **Claim URI**: `https://drmanjunath.in/agent/identity/claim`

### Registration Request

```http
POST /agent/identity
Content-Type: application/json

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

### Registration Response

```json
{
  "registration_type": "anonymous",
  "status": "active",
  "scopes": ["read"],
  "message": "Public anonymous access active. No authentication required."
}
```

## Step 3 — Available Capabilities

- **MCP Server**: Call `POST /mcp` with JSON-RPC 2.0 to access tools (`get_doctor_info`, `get_clinic_details`, `get_publications`).
- **Markdown Mirror**: `GET /index.md` or request HTML pages with the header `Accept: text/markdown`.
- **A2A Agent Card**: `GET /.well-known/agent-card.json`.
- **Nephrology Consultation Skill**: `GET /.well-known/agent-skills/nephrology-consultation/SKILL.md`.

## Access Policy

All content on `drmanjunath.in` is publicly accessible for automated reading. No payment or private credentials are required.
