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_document_info(arguments)

Get information about a processed document.

handle_call_tool(name, arguments)

Handle tool calls from the MCP client with enhanced error handling and resource management.

handle_list_tools()

List available tools for the MCP client.

initialize_system()

Initialize the academic RAG system using dependency injection

list_sessions(arguments)

List all chat sessions.

main()

Main function to run the MCP server.

process_document(arguments)

Process a document through the processing pipeline.

query_documents(arguments)

Query documents using the RAG pipeline.

validate_environment()

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_list_tools()[source]

List available tools for the MCP client.

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.

async servers.mcp_server.get_document_info(arguments)[source]

Get information about a processed document.

async servers.mcp_server.list_sessions(arguments)[source]

List all chat sessions.

async servers.mcp_server.main()[source]

Main function to run the MCP server.