struct ActionController::MCPServer::ResourceMetadata

Overview

OAuth 2.0 Protected Resource Metadata (RFC 9728), tells MCP clients where to obtain access tokens

Defined in:

action-controller/mcp/auth.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(authorization_servers : Array(String), scopes_supported : Nil | Array(String) = nil, resource_documentation : Nil | String = nil) #

[View source]

Instance Method Detail

def authorization_servers : Array(String) #

the OAuth authorization servers that issue tokens for this resource


[View source]
def resource_documentation : String | Nil #

human readable documentation for developers


[View source]
def scopes_supported : Array(String) | Nil #

the scopes MCP clients should request


[View source]