Commit Graph
1 Commits
Author SHA1 Message Date
Mikei386andClaude Opus 5.5 5b3dbc2d04 fix: restrict browser origins, honor ListenAddress, tighten JSON-RPC handling (1.4.2)
- 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>
2026-11-22 21:01:36 +01:00