@upstash/context7-mcp@4.2.1
upstash/context7@upstash/context7-mcp@4.2.1Oct 9, 2026by github-actions[bot]
Upgrading?
AI Summary
This release hardens OAuth security with strict Clerk token validation and introduces improvements to error handling in documentation queries and port reporting.
Key Highlights
- Strict JWT verification for Clerk tokens (signature, issuer, typ, expiry)
- Configurable audience enforcement with strictness options
- Sets `isError` flag on query-docs failures
- Better reporting of actual assigned ports for ephemeral requests
New Features
- OAuth security enhancements
- Error handling improvements
- Ephemeral port reporting
Full Release Notes
### Patch Changes - c30f279: Verify OAuth JWT access tokens from the authorization server (Clerk) strictly on the hosted HTTP transport: signature, issuer, a `typ` of `at+jwt`, expiry with a minute of clock tolerance, and the token's `aud`. Clerk ID tokens and session JWTs, which share the issuer, now get HTTP 401. The audience is compared against the `RESOURCE_URL` origin, `/mcp` and `/mcp/oauth` (override with `MCP_OAUTH_ALLOWED_AUDIENCES`); `MCP_OAUTH_AUDIENCE_ENFORCEMENT` defaults to `observe`, which admits a mismatch and logs the OAuth client ID and audience (once per token every ten minutes), and `required` answers 401. These JWTs count as `oauth` in authentication telemetry, a token the Context7 API rejects on a tool call is challenged on the next request, and a rejected OAuth token now stays rejected in the per-replica cache for ten minutes instead of thirty seconds. - dd48abc: query-docs now sets `isError` on its result when the documentation request fails (invalid library ID, API or network error), so clients that branch on `isError` no longer treat the error text as documentation. - 6116042: Report the actual assigned HTTP port when `--port 0` requests an ephemeral port.
Related Repositories
openclaw/openclaw★ 392,725
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
nilbuild/developer-roadmap★ 370,103
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
morluto/rea★ 361,139
Reverse engineer anything with agents, from app behavior down to native binaries.
anomalyco/opencode★ 219,907
The open source coding agent.
n8n-io/n8n★ 208,287
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.