Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEBUG | No | Enable debug logging | |
| LOG_LEVEL | No | Set the log level (e.g., debug) | |
| TESTRAIL_URL | Yes | Your TestRail instance URL (e.g., https://your-instance.testrail.com) | |
| TESTRAIL_API_KEY | Yes | Your TestRail API key | |
| TESTRAIL_USERNAME | Yes | Your TestRail username |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_case | Fetch a TestRail test case by ID. |
| add_case | Create a new TestRail test case in a specific section. IMPORTANT: Before creating a case, gather required information using get_projects, get_suites, get_sections, and get_case_fields tools to ensure proper section_id, type_id, and custom field values. Or ask the user to provide the information if not provided. |
| update_case | Update a TestRail test case by ID with new field values. |
| get_projects | List all TestRail projects. |
| get_project | Get details for a specific TestRail project by ID. |
| get_suites | Get all test suites for a specific TestRail project by ID. |
| get_suite | Get details for a specific TestRail test suite by ID. |
| get_cases | Get a list of test cases for a project or specific test suite with optional filtering and pagination. |
| add_attachment_to_case | Upload a file attachment to a TestRail test case. |
| get_sections | Get a list of sections for a project and test suite with optional pagination. |
| get_runs | Get a list of test runs for a project with optional filtering and pagination. Only returns test runs that are not part of a test plan. |
| get_run | Returns an existing test run. Please see get tests for the list of included tests in this run. |
| update_run | Updates an existing test run. Partial updates are supported. |
| get_tests | Returns a list of tests for a test run. |
| get_test | Returns an existing test. |
| update_test | Updates the labels assigned to an existing test. |
| add_result | Adds a new test result, comment, or assigns a test. |
| get_case_fields | Returns a list of available test case custom fields. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |