Builds a small Express router that serves the given OAuth metadata document at / as JSON, with permissive CORS and a GET/OPTIONS method allow-list.
/
Used by mcpAuthMetadataRouter for both the Authorization Server and Protected Resource metadata endpoints.
Builds a small Express router that serves the given OAuth metadata document at
/as JSON, with permissive CORS and a GET/OPTIONS method allow-list.Used by mcpAuthMetadataRouter for both the Authorization Server and Protected Resource metadata endpoints.