feat(mcp): MCP dashboard enhancements — JSON config import, token overhead badges, and batch health testing (#1037)
This commit is contained in:
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
|
||||
|
||||
@@ -51,6 +51,7 @@ import com.m57.hermescontrol.data.model.McpCatalogInstallRequest
|
||||
import com.m57.hermescontrol.data.model.McpCatalogResponse
|
||||
import com.m57.hermescontrol.data.model.McpOAuthFlowResponse
|
||||
import com.m57.hermescontrol.data.model.McpServer
|
||||
import com.m57.hermescontrol.data.model.McpServerTestResponse
|
||||
import com.m57.hermescontrol.data.model.McpServerToggleRequest
|
||||
import com.m57.hermescontrol.data.model.McpServersResponse
|
||||
import com.m57.hermescontrol.data.model.MemoryProviderConfigResponse
|
||||
@@ -519,7 +520,7 @@ interface HermesApiService {
|
||||
@POST("api/mcp/servers/{name}/test")
|
||||
suspend fun testMcpServer(
|
||||
@Path("name") name: String,
|
||||
): Response<Unit>
|
||||
): Response<McpServerTestResponse>
|
||||
|
||||
@DELETE("api/mcp/servers/{name}")
|
||||
suspend fun deleteMcpServer(
|
||||
|
||||
Reference in new issue
Block a user