Minor Changes
- 2d57b23: Add a
foreignmode to the OAuth audience check on the hosted HTTP transport.MCP_OAUTH_AUDIENCE_ENFORCEMENT=foreignanswers HTTP 401 (WWW-Authenticate: Bearer error="invalid_token", "This token was issued for another server. If you connect through a gateway or proxy, use a Context7 API key instead.") to a Clerk OAuth JWT whoseaudnames another server, and still admits a token with noaud, which grants authorized before Clerk's "Include Audience" setting carry on every refresh.observe(the default) andrequiredare unchanged. The query string of an audience on an allowed host is ignored, since Cursor writes the configured MCP URL (https://mcp.context7.com/mcp?client=codex) intoresource; on any other host it is kept. TheaudienceMismatchlog line now carriesoutcome=accepted|rejectedand is written at most once per token per hour instead of every ten minutes.