- OriginPolicy: only localhost, private/loopback IP origins, ServerUrl origin
and the new AllowedOrigins setting may call the MCP port from a browser;
others get 403 (blocks cross-site reads and DNS rebinding). No more
reflected origin with Allow-Credentials.
- ListenAddress is now used for the HttpListener prefix; warn when the
server listens on all interfaces without an API key.
- JSON-RPC: implement ping, never answer notifications, acknowledge client
responses, negotiate protocolVersion, return 405 for GET /mcp and 404 for
paths other than /mcp.
- Tests for origin policy, listen prefix and protocol handling.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>