testrail-mcp-server
by uarlouski·★ 25·综合分 44
MCP 服务器将 AI 助手与 TestRail 连接,通过自然语言管理测试用例和执行。
概述
TestRail MCP Server 是一个专用集成,使 Claude、Cursor 和 Windsurf 等 AI 助手能够直接与 TestRail 测试管理平台交互。它提供了全面的功能,包括浏览项目、管理测试用例、创建测试运行和记录结果—all 都通过对话式 AI 交互实现。该服务器具有为 LLM 用例专门设计的强类型模式,确保结构化数据生成和验证。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您已经在使用 TestRail 并希望将 AI 助手直接集成到您的 QA 工作流中,无需切换上下文,请选择它。
什么时候不要选它
如果您没有使用 TestRail,请不要选择它,因为它只与这个特定的测试管理平台集成。
此 server 暴露的工具
从 README 抽取出 12 个工具get_projectsList all available active and completed projects in your TestRail instance
get_sectionsNavigate the precise folder/section hierarchy of any test suite
get_casesQuery test cases with advanced filtering and pagination
get_caseFetch complete details of a specific test case
add_caseCreate a new test case with custom field validation
update_caseModify an existing test case's steps or metadata
update_casesBulk-update multiple test cases simultaneously
add_runGenerate a new focused test run in TestRail
get_testsRetrieve individual tests for a specific run with status filtering
add_resultsSubmit test results to a test run using the specific test ID
add_results_for_casesSubmit results to a run mapping directly to case IDs
add_attachment_to_runAttach logs, files, or artifacts directly to a test run
可对比工具
安装
通过将 TestRail MCP Server 添加到您的 MCP 客户端配置来安装:
{
"mcpServers": {
"testrail": {
"command": "npx",
"args": ["-y", "@uarlouski/testrail-mcp-server@latest"],
"env": {
"TESTRAIL_INSTANCE_URL": "https://your-instance.testrail.io",
"TESTRAIL_USERNAME": "your@email.com",
"TESTRAIL_API_KEY": "your-api-key",
"TESTRAIL_ENABLE_SHARED_STEPS": "true"
}
}
}
}FAQ
- 哪些 AI 助手与此 MCP 服务器兼容?
- TestRail MCP Server 适用于 Claude Desktop、Cursor、Windsurf 以及任何其他符合 MCP 的 AI 助手。
- TestRail 需要哪种身份验证方法?
- 您需要在 MCP 配置中通过环境变量提供您的 TestRail 实例 URL、用户名和 API 密钥。
testrail-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。