Having a testrail mcp to get data. So user need to login with username and api key for…
- User
Having a testrail mcp to get data. So user need to login with username and api key for application and will use same for getting data from testrail mcp which will be shared at later part.
There are n number of projects so need to collect data project wise->suite->component based
- Assistant
Implemented the TestRail authentication and hierarchical data architecture.
What Changed
- Added a secure login screen requiring TestRail username and API key.
- Credentials remain in memory only and are cleared during logout.
- Added an MCP client abstraction in
src/services/testrailMcp.ts. - The same authenticated credentials are passed to hierarchy/data requests.
- Added a sandbox adapter so the application remains fully functional until the actual MCP contract is provided.
- Added dynamic support for any number of projects.
- Implemented cascading hierarchy filters:
- Project
- Suite
- Component
- Selecting a project resets suite and component selections appropriately.
- Selecting a suite dynamically loads its available components.
- All KPIs, charts, user metrics, searches, and tables respond to the hierarchy scope.
- Test case tables and detail views now display the complete path.
- User
How to login now and test and add testrail instance url in option a
- Assistant
Added the TestRail instance URL field under Option A.
To test now:
- Open the application.
- Click Load sandbox access.
- The form fills with:
- Instance URL:
https://demo.testrail.io - Username: [EMAIL_ADDRESS_3]`
- API key:
sandbox_testrail_api_key
- Instance URL:
- Click Connect to TestRail.
- Test the Project → Suite → Component filters and dashboard views.
- Use the logout icon in the header to clear the in-memory credentials.
You can also enter your real TestRail URL, username, and API key. Currently this validates the fields but loads sandbox data because the actual MCP transport contract has not been connected yet. Once provided, the same form will authenticate and retrieve live TestRail data.
The instance URL should be the root URL, such as:
https://your-company.testrail.ioDo not include:
/index.php?/api/v2Production build passes successfully.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.