McpHttpResponse

class McpHttpResponse(val status: Int, val headers: Map<String, String>, val contentType: String?, val body: McpResponseBody)

Raw HTTP response from the MCP endpoint.

Constructors

Link copied to clipboard
constructor(status: Int, headers: Map<String, String>, contentType: String?, body: McpResponseBody)

Properties

Link copied to clipboard

Parsed body.

Link copied to clipboard

Lowercased content type without parameters, e.g. application/json; null if absent.

Link copied to clipboard

Response headers with lowercase keys; repeated headers are joined with , (irrelevant for mcp-session-id and friends).

Link copied to clipboard

Value of the Mcp-Session-Id response header, if present.

Link copied to clipboard
val status: Int

HTTP status code.