@zenrows/mcp 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.js +3 -0
- package/package.json +1 -1
package/dist/http.js
CHANGED
|
@@ -40,6 +40,9 @@ app.all("/mcp", async (c) => {
|
|
|
40
40
|
error: "Missing API key. Use Authorization: Bearer <key> header or ?apikey=<key> query param.",
|
|
41
41
|
}, 401, {
|
|
42
42
|
"WWW-Authenticate": `Bearer realm="${AUTH_SERVER}", resource_metadata="https://mcp.zenrows.com/.well-known/oauth-authorization-server"`,
|
|
43
|
+
// CloudFront strips WWW-Authenticate — add Link header as RFC 8615 fallback
|
|
44
|
+
// so MCP clients can still discover the OAuth server
|
|
45
|
+
"Link": `<https://mcp.zenrows.com/.well-known/oauth-authorization-server>; rel="oauth-authorization-server"`,
|
|
43
46
|
});
|
|
44
47
|
}
|
|
45
48
|
const transport = new WebStandardStreamableHTTPServerTransport({
|