Repository navigation
v3.0.1
·
619 commits
to main
since this release
Patch Changes
-
#332
4c35f72Thanks @shtse8! - Security: enforce HTTP transport authentication (X-API-Key).Previously the HTTP transport (
MCP_TRANSPORT=http) readMCP_API_KEYand
logged "API key authentication enabled" but never checked the header, so any
client that could reach the port could call every PDF tool. The key is now
enforced — whenMCP_API_KEYis set, every/mcprequest must present a
matchingX-API-Keyheader (constant-time comparison) or it is rejected with
401;/mcp/healthstays open. (CWE-306, reported by novice-22.)Hardening, both behavior changes for HTTP deployments:
MCP_HTTP_HOSTnow defaults to127.0.0.1(loopback) instead of0.0.0.0.
Set it explicitly to expose other interfaces.- The server warns at startup when it binds a non-loopback host with no API key.
stdio(the default transport) is unaffected.