TypeScript API / contentia/server/mcp / protectedResourceMetadata
Function: protectedResourceMetadata()
ts
function protectedResourceMetadata(publicUrl, authorizationServers?): object;RFC 9728 protected-resource metadata: which authorization servers can mint tokens for the /mcp resource. This document is what the 401's WWW-Authenticate header points MCP clients at.
Parameters
| Parameter | Type |
|---|---|
publicUrl | string |
authorizationServers? | string[] |
Returns
object
authorization_servers
ts
authorization_servers: string[];bearer_methods_supported
ts
bearer_methods_supported: string[];resource
ts
resource: string;