First Version
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
use axum::Json;
|
||||
use axum::extract::State;
|
||||
use serde_json::Value;
|
||||
|
||||
use std::sync::Arc;
|
||||
use crate::core::skald::Skald;
|
||||
|
||||
/// Returns the list of running MCP servers and their available tools.
|
||||
pub async fn list_servers(State(skald): State<Arc<Skald>>) -> Json<Vec<Value>> {
|
||||
Json(skald.mcp().server_infos())
|
||||
}
|
||||
Reference in New Issue
Block a user