Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,72 +7,4 @@ sdk: docker
|
|
| 7 |
sdk_version: "3.11"
|
| 8 |
app_file: mcp_task_client.py
|
| 9 |
pinned: false
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
# Model Context Protocol (MCP) Example Implementation
|
| 13 |
-
|
| 14 |
-
This repository demonstrates the implementation of the Model Context Protocol (MCP), a standardized approach for managing context in AI/ML models.
|
| 15 |
-
|
| 16 |
-
## Overview
|
| 17 |
-
|
| 18 |
-
MCP (Model Context Protocol) is a protocol designed to standardize how context is handled when working with AI/ML models. This example repository shows how to implement and use MCP in your projects.
|
| 19 |
-
|
| 20 |
-
## Getting Started
|
| 21 |
-
|
| 22 |
-
### Prerequisites
|
| 23 |
-
|
| 24 |
-
- Python 3.8 or higher
|
| 25 |
-
- pip (Python package installer)
|
| 26 |
-
|
| 27 |
-
### Setup Virtual Environment
|
| 28 |
-
|
| 29 |
-
#### Windows
|
| 30 |
-
First, open Command Prompt and follow these steps:
|
| 31 |
-
|
| 32 |
-
1. Create and navigate to your project directory:
|
| 33 |
-
```bash
|
| 34 |
-
cd mcp_example
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
2. Create a virtual environment:
|
| 38 |
-
```bash
|
| 39 |
-
python -m venv app
|
| 40 |
-
```
|
| 41 |
-
|
| 42 |
-
3. Activate the virtual environment:
|
| 43 |
-
```bash
|
| 44 |
-
venv\Scripts\activate
|
| 45 |
-
```
|
| 46 |
-
|
| 47 |
-
4. Your prompt should now show "(venv)" at the beginning, indicating the virtual environment is active.
|
| 48 |
-
|
| 49 |
-
5. Install required packages:
|
| 50 |
-
```bash
|
| 51 |
-
pip install -r requirements.txt
|
| 52 |
-
```
|
| 53 |
-
|
| 54 |
-
#### macOS
|
| 55 |
-
Open Terminal and follow these steps:
|
| 56 |
-
|
| 57 |
-
1. Create and navigate to your project directory:
|
| 58 |
-
```bash
|
| 59 |
-
mkdir mcp_example
|
| 60 |
-
cd mcp_example
|
| 61 |
-
```
|
| 62 |
-
|
| 63 |
-
2. Create a virtual environment:
|
| 64 |
-
```bash
|
| 65 |
-
python3 -m venv venv
|
| 66 |
-
```
|
| 67 |
-
|
| 68 |
-
3. Activate the virtual environment:
|
| 69 |
-
```bash
|
| 70 |
-
source venv/bin/activate
|
| 71 |
-
```
|
| 72 |
-
|
| 73 |
-
4. Your prompt should now show "(venv)" at the beginning, indicating the virtual environment is active.
|
| 74 |
-
|
| 75 |
-
5. Install required packages:
|
| 76 |
-
```bash
|
| 77 |
-
pip install -r requirements.txt
|
| 78 |
-
```
|
|
|
|
| 7 |
sdk_version: "3.11"
|
| 8 |
app_file: mcp_task_client.py
|
| 9 |
pinned: false
|
| 10 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|