Skip to main content
Glama

CodeGraph CLI MCP Server

by Jakedismo
executor_trait.rs1.15 kB
// ABOUTME: Defines the AgentExecutorTrait for pluggable agent architectures // ABOUTME: Enables runtime switching between ReAct, LATS, and future agent types use crate::autoagents::codegraph_agent::CodeGraphAgentOutput; use crate::autoagents::executor::ExecutorError; use async_trait::async_trait; use codegraph_mcp_core::agent_architecture::AgentArchitecture; use codegraph_mcp_core::analysis::AnalysisType; use codegraph_mcp_core::context_aware_limits::ContextTier; /// Universal executor trait for all agent architectures /// /// This trait enables runtime switching between different agent architectures /// (ReAct, LATS, etc.) without changing the MCP server code. #[async_trait] pub trait AgentExecutorTrait: Send + Sync { /// Execute agentic analysis with the given query async fn execute( &self, query: String, analysis_type: AnalysisType, ) -> Result<CodeGraphAgentOutput, ExecutorError>; /// Get the architecture type this executor implements fn architecture(&self) -> AgentArchitecture; /// Get the context tier this executor is configured for fn tier(&self) -> ContextTier; }

Latest Blog Posts

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