We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kensave/CodeCortX-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
main.rs•718 B
use anyhow::Result;
use codecortx_mcp::CodeAnalysisTools;
use rmcp::{transport::stdio, ServiceExt};
use tracing_subscriber::EnvFilter;
#[tokio::main]
async fn main() -> Result<()> {
// Initialize logging with stderr output
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.with_writer(std::io::stderr)
.with_ansi(false)
.init();
tracing::info!("Starting CodeCortext MCP Server");
// Create and serve the server via stdio
let service = CodeAnalysisTools::new()
.serve(stdio())
.await
.inspect_err(|e| {
tracing::error!("Serving error: {:?}", e);
})?;
service.waiting().await?;
Ok(())
}