Package-level declarations
Types
Link copied to clipboard
API Key authentication for MCP servers.
Link copied to clipboard
Basic authentication for MCP servers.
Link copied to clipboard
Bearer token authentication for MCP servers.
Link copied to clipboard
Provides a way to secure an MCP server using various authentication methods.
Link copied to clipboard
Link copied to clipboard
class OAuthMcpSecurity(resourceMetadata: ResourceMetadata, extraWwwAuthenticateFields: Pair<String, String>, checkToken: (String) -> Boolean) : McpSecurity
Standard OAuthSecurity implementation for MCP. Based around the OAuth protected resource metadata endpoint. You can pass in specific contents of the ResourceMetadata, or extra fields to be added to the WWW-Authenticate header.