ADR-039: A Public MCP Server and llms.txt
Context
More of the people researching a candidate do it through an AI assistant, and the analytics already count AI assistants as a referral source. Browsing a single-page app through an assistant is lossy: it reads the server-rendered digest and may miss detail or answer from stale training data. The site already has precise lookups for exactly these questions, built for the contact concierge: the profile by section and the ADRs by id. MCP has become the common way for assistants to call such tools remotely, and llms.txt the common way to hand them a map of a site.
Decision
Expose the same lookups as a public, read-only MCP server at https://charlieroffe.com/mcp, and publish /llms.txt and /llms-full.txt.
1. Six read-only tools: get_profile (the concierge's profile lookup), list_architecture_decisions and get_architecture_decision (with optional keyword/status search and absolute page URLs), list_technical_articles and get_technical_article (long-form /blog articles with keyword/category search and optional multi-cloud filter, amended 2026-11-25), and get_site_status (the numbers behind /status).
2. The same data as the pages: the tools reuse the lookups over src/data, so an assistant can't learn more than a visitor sees. No email address is exposed (a test checks every section and article); contact goes through the concierge.
3. No tool calls a model or writes anything, so a call costs nothing and needs no App Check.
4. Streamable HTTP, stateless: POST one JSON-RPC message, get one JSON response; notifications get 202; GET and DELETE return 405; batches are refused. Protocol versions 2025-11-25, 2025-06-18 and 2025-03-26. Verified with the official SDK client.
5. Guards: a foreign Origin is refused (DNS-rebinding defence), 120 requests per 15 minutes per client, 16 KB bodies, JSON-RPC errors for malformed input.
6. llms.txt (llmstxt.org) lists the pages, the MCP endpoint, the API contract, every ADR and every article; llms-full.txt adds the profile, every ADR's full text and every technical article's full CommonMark body. Generated per request from the same data.
7. The Architecture page explains how to add the server as a custom connector.
Consequences
Benefits:
* An assistant asked what Charlie has built, or why the site uses Cloud Run, can quote the source with links instead of guessing.
* A working example of agent-to-site integration, which is part of the skill set the site shows.
* No new data to maintain: the tools read what the pages render.
Trade-offs:
* One more public endpoint to keep compatible as the MCP spec moves.
* Without sign-in there is no telling who asks; the mcp_tool_call log event counts calls by tool only.
* get_site_status shares the live-status cache, so bursts can't multiply Monitoring reads.
Alternatives considered
1. The official MCP SDK as a server dependency: Rejected for now — four stateless tools fit in one small module; the SDK client verifies compatibility instead.
2. Expose the concierge over MCP: Rejected — it calls a model per turn and can draft messages; plain lookups give the facts without either.
3. Only llms.txt: Rejected — tools give exact, structured answers on demand; both are offered.
4. Require sign-in (OAuth): Rejected — everything served is already public.