Model Context Protocol (MCP) Implementation
by jraa1995
This repository contains the Model Context Protocol (MCP) framework developed by ClimateGPT Team 1. It provides a modular design for managing execution context, loading data, routing queries, and executing pipeline steps.
Last updated: N/A
Model Context Protocal (MCP) Implementation
This repository includes the Model Context Protocol (MCP) framework that ClimateGPT Team 1 is developing.
š Project Structure
/mcp-framework āāā modules/ # Core MCP components ā āāā context_manager.py # Stores execution context memory ā āāā data_loader.py # Handles dataset loading ā āāā query_manager.py # Routes queries dynamically ā āāā pipeline_manager.py # Executes MCP steps āāā models/ # Test EDA / initial models for MCP framework checking ā āāā scenario_projection.py # Temp trend analysis ā āāā temperature_trends.py # Climate scenario projections ā āāā Model3.py # Model 3 āāā config/ # Configuration settings ā āāā config.yaml # Defines dataset paths and pipeline steps āāā logs/ # Execution logs ā āāā mcp_execution.log āāā tests/ # Unit tests for MCP validation āāā main.py # Entry point for MCP execution āāā requirements.txt # Python dependencies āāā README.md # Project documentation
How to run MCP Framework
-
Clone the repository (if not already cloned):
git clone https://github.com/ newsconsole/GMU_DAEN_2025_01_A.git
-
Switch to the ClimateGPT Team 1 Branch:
git checkout ClimateGPT_Team1
-
Make sure to set up venv (Virtual Env)
1. python -m venv venv 2. venv\Scripts\Activate
-
Install dependencies (requirements.txt):
pip install -r requirements.txt
-
Run the MCP Pipeline
python main.py
Configuration & Execution
- The MCP pipeline is dynamically controlled by
config/config.yaml
which defines the datasets and pipeline steps - Logs are stored in
logs/mcp_execution.log
for debugging and tracking execution results
Recent Updates
- Implemented initial MCP Framework with modular design
- Added dynamiic query routing & context memory