MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_mcp_logs

Function get_mcp_logs

crates/opencode-server/src/routes.rs:2675–2684  ·  view source on GitHub ↗
(Path(name): Path<String>)

Source from the content-addressed store, hash-verified

2673}
2674
2675async fn get_mcp_logs(Path(name): Path<String>) -> Result<Json<McpLogsResponse>> {
2676 let manager = get_mcp_oauth_manager();
2677 ensure_mcp_server_registered(manager, &name).await?;
2678 let logs = manager
2679 .get_logs(&name)
2680 .await
2681 .map_err(mcp_error_to_api_error)?;
2682
2683 Ok(Json(McpLogsResponse { name, logs }))
2684}
2685
2686#[derive(Debug, Serialize)]
2687pub struct McpRestartResponse {

Callers

nothing calls this directly

Calls 3

get_mcp_oauth_managerFunction · 0.85
get_logsMethod · 0.45

Tested by

no test coverage detected