codelens-mcp 1.9.45

Harness-native Rust MCP server for code intelligence with generated surface governance, hybrid retrieval, and mutation-gated workflows
use serde_json::{Value, json};

pub(crate) fn analysis_summary_resource(analysis_id: &str) -> Value {
    json!({
        "uri": format!("codelens://analysis/{analysis_id}/summary"),
    })
}

pub(crate) fn analysis_section_handles(analysis_id: &str, sections: &[String]) -> Value {
    json!(
        sections
            .iter()
            .map(|section| json!({
                "section": section,
                "uri": format!("codelens://analysis/{analysis_id}/{section}"),
            }))
            .collect::<Vec<_>>()
    )
}