MCP服务器工具

一个用于启动MCP服务器并进行测试的Python虚拟环境设置工具。

  • by parth-exe
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 parth-exe/MCP_test

使用说明

Setup Guide

1. Create a Python Virtual Environment

python3 -m venv .venv

2. Activate the Environment

source .venv/bin/activate

(Windows users can run .venv\Scripts\activate)

3. Install Requirements

pip install -r requirements.txt

Example requirements.txt:

mcp>=1.0.0

4. Run the MCP Server

npx @modelcontextprotocol/inspector venv_path server_path/server.py

This starts the MCP server and opens the Inspector for viewing and testing.

5. Create a Test File

Create a file named test.txt and add some sample data:

Sample Input Data
-----------------
name: Parth Upadhya
role: Developer
message: Hello from test.txt!

Project Structure Example

MCP/
├── server.py
├── test.txt
├── requirements.txt
├── .venv/
└── README.md