pub struct CodePrismMcpServer { /* private fields */ }
Expand description
MCP Server implementation that integrates with CodePrism Phase 2.5 components
Implementations§
Source§impl CodePrismMcpServer
impl CodePrismMcpServer
Sourcepub fn new_with_config(
memory_limit_mb: usize,
batch_size: usize,
max_file_size_mb: usize,
disable_memory_limit: bool,
exclude_dirs: Vec<String>,
include_extensions: Option<Vec<String>>,
dependency_mode: Option<String>,
) -> Result<Self>
pub fn new_with_config( memory_limit_mb: usize, batch_size: usize, max_file_size_mb: usize, disable_memory_limit: bool, exclude_dirs: Vec<String>, include_extensions: Option<Vec<String>>, dependency_mode: Option<String>, ) -> Result<Self>
Create a new MCP server instance with custom configuration
Sourcepub async fn initialize_with_repository<P: AsRef<Path>>(
&mut self,
path: P,
) -> Result<()>
pub async fn initialize_with_repository<P: AsRef<Path>>( &mut self, path: P, ) -> Result<()>
Initialize the server with a repository path
Sourcepub fn capabilities(&self) -> &ServerCapabilities
pub fn capabilities(&self) -> &ServerCapabilities
Get server capabilities
Sourcepub fn repository_manager(&self) -> &RepositoryManager
pub fn repository_manager(&self) -> &RepositoryManager
Get repository manager for accessing Phase 2.5 functionality
Sourcepub fn scanner(&self) -> &RepositoryScanner
pub fn scanner(&self) -> &RepositoryScanner
Get repository scanner
Sourcepub fn indexer(&self) -> &BulkIndexer
pub fn indexer(&self) -> &BulkIndexer
Get bulk indexer
Sourcepub fn parser_engine(&self) -> &Arc<ParserEngine>
pub fn parser_engine(&self) -> &Arc<ParserEngine>
Get parser engine
Sourcepub fn graph_store(&self) -> &Arc<GraphStore>
pub fn graph_store(&self) -> &Arc<GraphStore>
Get graph store
Sourcepub fn graph_query(&self) -> &GraphQuery
pub fn graph_query(&self) -> &GraphQuery
Get graph query engine
Sourcepub fn content_search(&self) -> &Arc<ContentSearchManager>
pub fn content_search(&self) -> &Arc<ContentSearchManager>
Get content search manager
Sourcepub fn repository_path(&self) -> Option<&Path>
pub fn repository_path(&self) -> Option<&Path>
Get current repository path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodePrismMcpServer
impl !RefUnwindSafe for CodePrismMcpServer
impl Send for CodePrismMcpServer
impl Sync for CodePrismMcpServer
impl Unpin for CodePrismMcpServer
impl !UnwindSafe for CodePrismMcpServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more