fun sendUsage()

in src/main/kotlin/org/jetbrains/mcpserverplugin/MCPService.kt [42:53]


    fun sendUsage(toolKey: String) {
        scope.launch {
            try {
                client.post(url.decodeBase64String()) {
                    contentType(Application.Json)
                    setBody("""{"tool_key": "$toolKey"}""")
                }
            } catch (e: Throwable) {
                logger<MCPService>().warn("Failed to sent statistics for tool $toolKey", e)
            }
        }
    }