feat(mcp): MCP dashboard enhancements — JSON config import, token overhead badges, and batch health testing (#1037)

This commit is contained in:
M57 authored and GitHub committed 2026-09-01 20:18:45 +03:00
1 parent d8385a2b02
commit 6ec277af8b
9 files changed
+963 -17

No files matched your search

@@ -1,4 +1,5 @@
package com.m57.hermescontrol.data.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@@ -18,6 +19,22 @@ data class McpServer(
val status: String? = null,
val error: String? = null,
val auth: String? = null,
val tools: List<String>? = null,
)
@Serializable
data class McpServerTestResponse(
val ok: Boolean = false,
val error: String? = null,
val tools: List<McpServerToolInfo> = emptyList(),
)
@Serializable
data class McpServerToolInfo(
val name: String,
val description: String? = null,
@SerialName("schema_chars")
val schemaChars: Int? = null,
)
@Serializable