 b3nwandb3nw
|
21bce2ad91
|
feat(#9): add bearer token auth for HTTP transport (#12)
* feat(#9): add bearer token auth for HTTP transport
Adds NPM_MCP_AUTH_TOKEN env var. When set, HTTP transport requires
Authorization: Bearer <token> on all requests except /health.
Uses timing-safe comparison via hmac.compare_digest.
Closes #9
* fix(auth): fix lifespan context and 401 status/headers spec compliance
---------
Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
|
2026-08-11 19:54:01 -05:00 |
|