Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decision-mind

A demonstration project implementing the Model Context Protocol (MCP), showcasing client-server communication with various functionalities including web content fetching and system monitoring.

Features

  • Web content fetching and parsing
  • System information monitoring
  • Real-time server-sent events (SSE) communication
  • MCP protocol implementation
  • Resource management and tool execution

Requirements

  • Python 3.10+
  • Dependencies (install via pip):
    • httpx
    • beautifulsoup4
    • uvicorn
    • psutil
    • mcp-sdk

Installation

  1. Clone the repository:
git clone https://github.com/rmrf2020/decision-mind.git
cd decision-mind
  1. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows, use: .venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Usage

  1. Start the server:
python server.py

The server will start on http://localhost:8000

  1. In a separate terminal, run the client:
python client.py

The client will connect to the server and demonstrate various functionalities including:

  • Listing available resources
  • Reading greeting message
  • Fetching system information
  • Processing web content

Protocol Implementation

This project implements the Model Context Protocol (MCP), providing a framework for:

  • Server-Sent Events (SSE) based communication
  • Resource management
  • Tool execution
  • Client-server interaction

License

See the LICENSE file for details.

About

A demo projects for Model Context Protocol

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages