
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
aico-test-mcp
Advanced tools
基于 TypeScript 的智能软件星工厂 MCP 测试服务,提供完整的 Playwright 自动化测试能力,支持动态测试用例生成和执行,专为 Web 应用系统设计。
pnpm install
# 开发模式(即时TS编译)
pnpm run dev
# 构建生产版本
pnpm run build
pnpm start
{
"tool": "接口测试执行智能体",
"url": "https://api.example.com/users",
"method": "GET",
"headers": {"Authorization": "Bearer token"},
"query": {"page": "1"}
}
{
"tool": "创建测试计划智能体",
"planName": "用户管理测试计划",
"tasks": [
{
"name": "创建用户",
"method": "POST",
"url": "https://api.example.com/users",
"body": {"name": "test", "email": "test@example.com"},
"hopeRes": "成功创建用户"
}
]
}
{
"tool": "获取测试计划智能体",
"uuid": "optional-plan-uuid"
}
{
"tool": "执行测试计划智能体",
"uuid": "test-plan-uuid"
}
{
"tool": "测试用例执行智能体",
"testCase": "用户登录功能测试",
"projectRoot": "/path/to/project",
"baseUrl": "https://example.com",
"browserType": "chromium",
"headless": false
}
{
"tool": "测试脚本生成智能体",
"testCase": "测试用户登录功能。步骤:1. 打开登录页面 2. 输入用户名'admin'和密码'123456' 3. 点击登录按钮。期望结果:成功跳转到首页并显示欢迎信息。",
"projectRoot": "/path/to/project",
"baseUrl": "https://example.com",
"browserType": "chromium",
"headless": true
}
test-mcp/
├── src/ # 核心TypeScript源码
│ ├── index.ts # MCP服务入口
│ ├── server/ # MCP工具实现
│ │ ├── api-test/ # API测试工具
│ │ ├── create-test-plan/ # 创建测试计划工具
│ │ ├── get-test-plans/ # 获取测试计划工具
│ │ ├── execute-test-plan/ # 执行测试计划工具
│ │ ├── add-tasks-to-plan/ # 添加任务到计划工具
│ │ ├── batch-update-task-summaries/ # 批量更新任务摘要工具
│ │ ├── update-task/ # 更新任务工具
│ │ ├── export-test-results/ # 导出测试结果工具
│ │ └── playwright-test-generator/ # Playwright测试生成器
│ ├── db/ # JSON数据库实现
│ │ ├── db.ts # 数据库操作
│ │ └── schema.ts # 数据结构定义
│ └── utils/ # 通用工具函数
├── tests/ # 测试文件和示例
├── data/ # JSON数据库文件(运行时创建)
└── dist/ # 编译后的JavaScript输出
| 架构模式 | 优势 |
|---|---|
| TypeScript | 完整的类型安全、智能提示 |
| 模块化 | 遵循单一职责原则的高可维护性 |
| 标准工具链 | 与mcp项目100%兼容的构建系统 |
| 测试规范 | 统一的Playwright最佳实践 |
我们欢迎并感谢所有贡献!以下是参与贡献的指南:
main - 稳定发布分支develop - 主要开发分支feature/* - 新功能开发分支fix/* - 问题修复分支pnpm test 验证所有测试{
"mcpServers": {
"playwright-test": {
"command": "node",
"args": ["dist/index.js"]
}
}
}
# 构建项目
pnpm run build # TypeScript→JavaScript
# 测试执行
pnpm run test # 运行单元测试
pnpm run test:run # 运行测试(单次)
pnpm run test:ui # 在UI模式下运行测试
pnpm run test:coverage # 运行测试并生成覆盖率报告
# 开发工具
pnpm run dev # 热重载开发模式
FAQs
智能软件星工厂的自动化测试MCP服务 - 支持动态测试用例生成和执行
We found that aico-test-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.