使用说明
MCP测试
支持TypeScript的MCP(模型上下文协议)功能的测试存储库。
特性
- 基于TypeScript的MCP服务器实现
- 示例配置和使用
- 基于Jest的测试用例
- 开发工具设置(ts节点、ts节点开发)
项目结构
├── src/
│ ├── server.ts # Main server implementation
│ └── types/ # TypeScript definitions
├── examples/
│ └── basic-server.ts # Example usage
├── test/
│ └── server.test.ts # Test cases
└── package.json # Project configuration
入门指南
- 克隆存储库
git clone https://github.com/zgh2hh/mcp-test.git
cd mcp-test
- 安装依赖项
npm install
- 构建项目
npm run build
- 运行示例
# Run the basic server example
npm run example
# Development mode with auto-reload
npm run dev
- 运行测试
npm test
发展
npm run build-将TypeScript编译为JavaScriptnpm run dev-通过自动重新加载启动开发模式npm test-运行测试用例npm run example-运行示例服务器
许可证
此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。