Skip to main content
Glama

CodeGraph CLI MCP Server

by Jakedismo
parser_ext.rs652 B
// Extension methods for TreeSitterParser to support health checks use codegraph_parser::TreeSitterParser; use codegraph_core::{Result, CodeNode}; use std::sync::Arc; pub trait TreeSitterParserExt { async fn parse_snippet(&self, code: &str, language: &str) -> Result<Vec<CodeNode>>; } impl TreeSitterParserExt for Arc<TreeSitterParser> { async fn parse_snippet(&self, _code: &str, _language: &str) -> Result<Vec<CodeNode>> { // Return a dummy success response for health check // Since parse_content_with_recovery is private, we can't actually parse // This is just for health check purposes Ok(vec![]) } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jakedismo/codegraph-rust'

If you have feedback or need assistance with the MCP directory API, please join our Discord server