MCP TypeScript SDK (V2)
    Preparing search index...
    • Builds the RFC 9728 Protected Resource Metadata URL for a given MCP server URL by inserting /.well-known/oauth-protected-resource ahead of the path.

      Parameters

      • serverUrl: URL

      Returns string

      getOAuthProtectedResourceMetadataUrl(new URL('https://api.example.com/mcp'))
      // → 'https://api.example.com/.well-known/oauth-protected-resource/mcp'