MCPFeedbackAPIClient

class MCPFeedbackAPIClient(apiKey: String, siteKey: String, baseUrl: String = "https://app.mcpfeedback.com", redact: (String) -> String = { input -> SdkContext.redactFn().invoke(input) })

HTTP client for submitting feedback to the MCPFeedback API. Uses HttpURLConnection to avoid external dependencies.

All I/O runs on Dispatchers.IO — callers await via suspension; no threads, no handlers (AND-THREAD-01/02/04). Plan 32-04 removed the callback/Handler/Thread transport that this client used in v2.0.

NOTE: public (not internal) because :sdk umbrella constructs it across the Gradle module boundary. NOT annotated @PublicApi — plan 31-04 configures BCV nonPublicMarkers/ignoredPackages to exclude it from the frozen surface.

Constructors

Link copied to clipboard
constructor(apiKey: String, siteKey: String, baseUrl: String = "https://app.mcpfeedback.com", redact: (String) -> String = { input -> SdkContext.redactFn().invoke(input) })

Functions

Link copied to clipboard

Submits feedback to the API. Suspends on Dispatchers.IO until the HTTP response arrives. Returns Result.success for HTTP 201, Result.failure for any other status code or IOException.