Model Context Protocol (MCP) Implementation logo

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.

View on GitHub

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

  1. Clone the repository (if not already cloned):

    git clone https://github.com/ newsconsole/GMU_DAEN_2025_01_A.git
    
  2. Switch to the ClimateGPT Team 1 Branch:

    git checkout ClimateGPT_Team1
    
  3. Make sure to set up venv (Virtual Env)

    1. python -m venv venv
    2. venv\Scripts\Activate
    
  4. Install dependencies (requirements.txt):

    pip install -r requirements.txt
    
  5. 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