servers.mcp_server
MCP Academic RAG Server
This MCP server provides tools for academic document processing and querying using a Retrieval-Augmented Generation (RAG) pipeline.
Functions
|
Get information about a processed document. |
|
Handle tool calls from the MCP client with enhanced error handling and resource management. |
List available tools for the MCP client. |
|
Initialize the academic RAG system using dependency injection |
|
|
List all chat sessions. |
|
Main function to run the MCP server. |
|
Process a document through the processing pipeline. |
|
Query documents using the RAG pipeline. |
Validate required environment variables and system requirements |
- servers.mcp_server.validate_environment()[source]
Validate required environment variables and system requirements
- servers.mcp_server.initialize_system()[source]
Initialize the academic RAG system using dependency injection
- async servers.mcp_server.handle_call_tool(name, arguments)[source]
Handle tool calls from the MCP client with enhanced error handling and resource management.
- async servers.mcp_server.process_document(arguments)[source]
Process a document through the processing pipeline.
- async servers.mcp_server.query_documents(arguments)[source]
Query documents using the RAG pipeline.