Package-level declarations

Types

Link copied to clipboard
class ApiKeyMcpSecurity<T>(lens: Lens<Request, T>, validate: (T) -> Boolean) : McpSecurity

API Key authentication for MCP servers.

Link copied to clipboard
class BasicAuthMcpSecurity(realm: String, credentials: (Credentials) -> Boolean) : McpSecurity

Basic authentication for MCP servers.

Link copied to clipboard

Bearer token authentication for MCP servers.

Link copied to clipboard
interface McpSecurity : Security

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.