@eais/mcp-pages

MCP + OAuth demo

A Cloudflare Pages app showing the library's one clean model: an always-authenticated MCP endpoint at /api/mcp with a full OAuth 2.1 / DCR login + consent loop. No anonymous tier.

Connect from Claude Desktop

  1. Settings → Connectors → Add custom connector.
  2. Paste this server's /api/mcp URL.
  3. Claude opens a browser: sign in (your seeded email + password), then Approve.
  4. Back in Claude, try whoami, echo, or — as an admin — list_users / admin_stats.

Headless (Claude Code / curl)

Mint a device token (node scripts/mint-device-token.mjs <userId>) and send it as Authorization: Bearer dt_….

Conformance

node ../tools/mcp-doctor.mjs <this-url>

See example/README.md for the full provision + deploy steps.