McpServerConfiguration

class McpServerConfiguration(val port: Int = 8080, val bearerToken: String = UUID.randomUUID().toString())

Configuration for a loopback-only MCP server. Use a distinct port per server instance. bearerToken must be securely shared with the authorized client, never published in URLs. The generated token is instance-specific and is not persisted or logged by the library.

Constructors

Link copied to clipboard
constructor(port: Int = 8080, bearerToken: String = UUID.randomUUID().toString())

Properties

Link copied to clipboard
Link copied to clipboard
val port: Int