codebase-graph 1.1.5

Native codebaseGraph CLI and MCP server for local code knowledge graphs.
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;

pub(super) const GRAPH_SCHEMA_JSON: &str = include_str!("../../assets/graph_schema.json");
pub(super) const QUERY_HELPERS_JSON: &str = include_str!("../../assets/query_helpers.json");
pub(super) const ARCHITECTURE_QUERIES_JSON: &str =
    include_str!("../../assets/architecture_queries.json");
pub(super) const MCP_TOOL_SPECS_JSON: &str = include_str!("../../assets/mcp_tool_specs.json");
pub(super) const LATEST_PROTOCOL_VERSION: &str = "2025-11-25";
pub(super) const MAX_HTTP_BODY_BYTES: usize = 1_000_000;

pub(super) fn server_command() -> String {
    env::var("CODEBASE_GRAPH_SERVER_COMMAND").unwrap_or_else(|_| "codebase-graph".to_string())
}