symgraph 2026.6.14

Semantic code intelligence library and MCP server - build knowledge graphs of codebases
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! File listing handler

use crate::db::Database;
use crate::mcp::types::FileRequest;
use crate::ops::{self, present, Format};

pub fn handle_file(db: &Database, req: &FileRequest) -> Result<String, String> {
    present(
        &ops::file_symbols(db, &req.path)?,
        Format::from_request(&req.format),
    )
}