使用说明
MCP测试服务器
企业级模型上下文协议服务器,为AI代理提供全面的测试功能。
特性
- 测试执行:跨多个框架(Jest、Mocha、Pytest、Vitest)运行测试
- 覆盖率分析:使用详细指标分析测试覆盖率
- 测试生成:从代码分析生成测试
- 调试集成:使用mcp调试器服务器调试失败的测试
- 变异测试:验证测试套件的有效性
- 缺陷检测:识别和分析不可靠的测试
- 视觉回归:将截图与mcp截图进行比较
- 影响分析:确定哪些测试受到代码更改的影响
- 绩效基准测试:识别并优化慢速测试
安装
npm install -g @ai-capabilities-suite/mcp-testing
用法
作为MCP服务器
mcp-testing
程序化使用
import { MCPTestingServer } from '@ai-capabilities-suite/mcp-testing';
const server = new MCPTestingServer();
await server.start();
配置
服务器可以通过环境变量或配置文件进行配置。
发展
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Run property-based tests
npm run test:property
# Run with coverage
npm run test:coverage
许可证
麻省理工学院