api-测试-mcp
- API测试工具
- 生成API测试计划,批量执行测试,评估测试结果,导出API测试成果。
api-test-mcp 的核心功能
- 创建测试计划
- 批量执行测试任务
- 自动评估API测试结果
- 导出数据
快速入门
- Docker 部署
git clone https://github.com/Actrue/api-test-mcp.git ## Clone source code
cd api-test-mcp
docker build -t api-test-mcp . ## Build image
docker run -p 3000:3000 api-test-mcp ## Run container
- 集成(以 Cherry Studio 为例)
添加服务器 -> 选择类型sse -> 填写 URL 为http://localhost:3000/sse -> 点击保存
源代码构建
环境要求
节点 >= 20
下午
构建过程
git clone https://github.com/Actrue/api-test-mcp.git ## Clone source code
cd api-test-mcp
pnpm run go ## Start command; this will launch the SSE server on port 3000
使用说明
建议使用以下提示词:
You are an API tester who will receive the API documentation and then create a test plan and task list based on it.
You need not only to verify if the API functions properly but also to test how well it handles incorrect data inputs.
If the user forgets to provide the test URL, please remind them.
Reply format:
[Plan Test Plan]
Call tool to create test plan
[Execute tests according to the plan]
Format: Test ID, Test Objective, Test Result.
[Generate summary and suggestions based on results]
Call tool to write summary and suggestions into a data table
[Test results, and export to Excel]
Call tool to retrieve test results
[Test Results Summary]
Summarize the entire testing process
Requirements:
Please reply in Chinese.
URL must be a complete link
支持的平台
技术堆栈