modelscope·@moneyforward/mcp-testrail
暂无描述。
A Model Context Protocol (MCP) server that provides integration with TestRail, allowing AI assistants to interact with TestRail projects, test cases, test runs, and results.
git clone <repository-url>
cd mcp-testrail
npm install
npm run build
Create a .env file in the root directory with your TestRail configuration:
TESTRAIL_URL=https://your-company.testrail.io
TESTRAIL_USERNAME=your-email@company.com
TESTRAIL_API_KEY=your-api-key
DEFAULT_PROJECT_ID=1
Add the server to your Claude Desktop configuration file (claude_desktop_config.json):
{
"mcpServers": {
"testrail": {
"command": "node",
"args": ["/path/to/mcp-testrail/dist/index.js"],
"env": {
"TESTRAIL_URL": "https://your-company.testrail.io",
"TESTRAIL_USERNAME": "your-email@company.com",
"TESTRAIL_API_KEY": "your-api-key"
}
}
}
}
You can also run the server directly:
npm start
Or in development mode:
npm run dev
src/
index.ts # Main MCP server implementation
testrail-client.ts # TestRail API client
types.ts # TypeScript type definitions
npm run build: Build the TypeScript projectnpm run watch: Build and watch for changesnpm start: Start the compiled servernpm run dev: Start the server in development mode with ts-nodenpm run lint: Lint the source codenpm run build
Test the connection to TestRail:
npm run dev
# Then use the test_connection tool
This MCP server covers the following TestRail API endpoints:
GET /get_projects - Get all projectsGET /get_project/{id} - Get project detailsGET /get_cases/{project_id} - Get test casesGET /get_case/{id} - Get test case detailsPOST /add_case/{section_id} - Create test casePOST /update_case/{id} - Update test caseGET /get_runs/{project_id} - Get test runsGET /get_run/{id} - Get test run detailsPOST /add_run/{project_id} - Create test runPOST /close_run/{id} - Close test runGET /get_results/{test_id} - Get test resultsPOST /add_result/{test_id} - Add test resultPOST /add_result_for_case/{run_id}/{case_id} - Add result for specific caseGET /get_users - Get all usersGET /get_user/{id} - Get user detailsGET /get_suites/{project_id} - Get test suitesGET /get_sections/{project_id} - Get sectionsGET /get_milestones/{project_id} - Get milestonesSimply paste any TestRail URL and get the data automatically:
// Parse a test case URL
{
"url": "https://moneyforward.tmxtestrail.com/index.php?/cases/view/2322865"
}
// Automatically detects it's a test case and retrieves case ID 2322865
// Parse a test run URL
{
"url": "https://company.testrail.io/runs/view/456"
}
// Automatically detects it's a test run and retrieves run details
// Parse test cases list with filters
{
"url": "https://company.testrail.io/cases/123?suite_id=5§ion_id=10"
}
// Automatically retrieves filtered test cases
// Using the create_test_case tool
{
"sectionId": 123,
"title": "Test user login functionality",
"type_id": 1,
"priority_id": 2,
"custom_steps_separated": [
{
"content": "Navigate to login page",
"expected": "Login page is displayed"
},
{
"content": "Enter valid credentials",
"expected": "User is logged in successfully"
}
]
}
// Using the add_test_result tool
{
"runId": 456,
"caseId": 789,
"status_id": 1, // Passed
"comment": "Test executed successfully",
"elapsed": "5m",
"version": "v1.2.3"
}
The server includes comprehensive error handling and will return detailed error messages for:
MIT License - see LICENSE file for details.
For issues and questions:
暂无描述。
一个由人工智能驱动的MCP服务器,通过自然语言提示实现测试的记录、执行和发现,从而自动化的网络测试工作流程。
一个MCP(模型上下文协议)服务器,用于使用axe-core对网页进行无障碍审计。在代理循环中使用结果与您喜欢的AI助手(Cline/Cursor/GH Copilot)结合,并让它们为您修复无障碍问题!
暂无描述。
暂无描述。
暂无描述。