# MCP HTML Profile

This site exposes MCP-like capabilities through HTML and HTTP.

## Required first step

Before using any capability, fetch every `rel="agent-instructions"` resource available in the current page or scope. This is typically an `AGENTS.md` document and contains context-sensitive instructions that override or supplement this profile.

## Discovery

Inspect `rel` attributes:

- `rel="agent-instructions"` — context-sensitive operating instructions.
- `rel="resource"` — a retrievable resource.
- `rel="tool"` — an invokable tool form.
- `rel="description"` — documentation for the nearest capability.
- `rel="profile"` — this profile.

## Tools

A tool is a `<form rel="tool" name="…">`. Its `name` is the tool name; `action`, `method`, and controls define the HTTP request. Read a nested `rel="description"` link before invoking it when present.

## Resources and instructions

Follow `rel="resource"` links using their `href`. Fetch and follow each `rel="agent-instructions"` resource before using capabilities in its scope.

## Authentication

A protected endpoint may return `401 Unauthorized`. Register an OAuth client through `/.well-known/oauth-authorization-server`, use Authorization Code + S256 PKCE, then send `Authorization: Bearer <token>`.

## Streaming

`X-Response-Mode: streaming` indicates an incremental response. `X-Stream-Interval-Ms` describes its expected chunk interval.
