使用说明
MCP 测试项目
这是一个通过 Model Context Protocol (MCP) 创建的示例 Python 项目。
项目结构
test_mcp/
├── README.md # 项目说明文档
├── main.py # 主程序入口
├── requirements.txt # Python 依赖包
├── .gitignore # Git 忽略文件
├── config/ # 配置文件目录
│ └── settings.py # 应用配置
├── utils/ # 工具函数目录
│ └── helper.py # 辅助函数
└── tests/ # 测试文件目录
└── test_helper.py # 单元测试
功能特性
- ✅ 用户交互界面
- ✅ 基础数学计算
- ✅ 配置管理
- ✅ 单元测试
- ✅ 代码规范
如何运行
- 克隆仓库:
git clone https://github.com/1h2t3c/test_mcp.git
cd test_mcp
- 安装依赖:
pip install -r requirements.txt
- 运行程序:
python main.py
- 运行测试:
python -m pytest tests/
技术栈
- 语言: Python 3.7+
- 测试框架: pytest
- 代码格式化: black
- 类型检查: mypy
贡献
欢迎提交 Issue 和 Pull Request!
许可证
MIT License
此项目通过 MCP (Model Context Protocol) 自动生成
