Module mcp_server

Source
Expand description

MCP (Model Context Protocol) server implementation for context-creator

This module provides a JSON-RPC server that allows AI agents to analyze codebases programmatically.

Modules§

cache
Cache implementation for MCP server
handlers
RPC method handlers for the MCP server
rmcp_handlers
Helper functions for RMCP server implementation
rmcp_server
RMCP-based MCP server implementation for context-creator

Structs§

DiffFilesRequest
Request structure for diff_files
DiffFilesResponse
Response structure for diff_files
DiffHunk
Diff hunk structure
GetFileMetadataRequest
Request structure for get_file_metadata
GetFileMetadataResponse
Response structure for get_file_metadata
HealthResponse
Health check response structure
ProcessLocalRequest
Request structure for process_local_codebase
ProcessLocalResponse
Response structure for process_local_codebase
ProcessRemoteRequest
Request structure for process_remote_repo
ProcessRemoteResponse
Response structure for process_remote_repo
SearchCodebaseRequest
Request structure for search_codebase
SearchCodebaseResponse
Response structure for search_codebase
SearchResult
Search result entry
SemanticSearchRequest
Request structure for semantic_search
SemanticSearchResponse
Response structure for semantic_search
SemanticSearchResult
Semantic search result
ServerHandle
Server handle wrapper for managing the MCP server lifecycle

Enums§

SemanticSearchType
Type of semantic search

Traits§

CodebaseRpcServer
Server trait implementation for the CodebaseRpc RPC API.
HealthRpcServer
Server trait implementation for the HealthRpc RPC API.

Functions§

start_server
Start the MCP server on the specified address