Building a read-only post-deploy MCP server: untrusted content fencing and OAuth 2.1 lessons

CorchesRares2804 · reddit · 2026-12-04

The author of Beamfar shares design lessons from shipping a remote Streamable HTTP MCP server that passed Anthropic's official Claude Directory review, addressing how coding agents (Claude Code, Cursor, Codex, Gemini CLI) mistake an HTTP 200 from curl -I for a healthy deploy when real breakages are leaked noindex tags, expired intermediate certs, or WAF challenge pages.

Key choices: strictly read-only surface (17 tools, zero destructive mutations); untrusted content fencing that wraps anything fetched from monitored HTML, headers, or DNS TXT records in explicit <<<UNTRUSTED ...>>> fences to block prompt injection during incident triage; explicit 'data unavailable' responses instead of soft passes; hosted OAuth 2.1 + PKCE with no local wrapper. A permanent free 1-site plan offers 3,000 MCP requests/month, with MIT-licensed client manifests and skills on GitHub.

Original post →

More from coding & agent

coding & agent channel →