MCP测试工具

一个基于TypeScript的MCP(Model Context Protocol)功能测试工具,提供服务器实现、示例配置和测试用例。

  • by zgh2hh
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 zgh2hh/mcp-test

使用说明

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

入门指南

  1. 克隆存储库
git clone https://github.com/zgh2hh/mcp-test.git
cd mcp-test
  1. 安装依赖项
npm install
  1. 构建项目
npm run build
  1. 运行示例
# Run the basic server example
npm run example

# Development mode with auto-reload
npm run dev
  1. 运行测试
npm test

发展

  • npm run build -将TypeScript编译为JavaScript
  • npm run dev -通过自动重新加载启动开发模式
  • npm test -运行测试用例
  • npm run example -运行示例服务器

许可证

此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。