generate_tests
Generate a complete test suite with automated language detection, contract validation, and traceability matrix linking tests to requirements.
Instructions
Generate a complete test suite satisfying the 8-section test contract.
The framework automatically:
Detects language and framework from source code
Generates tests for happy path, failure paths, and boundary cases
Validates every test against the 8-section contract before returning
Builds a traceability matrix linking tests to requirements
Identifies coverage gaps and makes recommendations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Override language detection. One of: python | typescript | javascript | java | go | cpp | |
| file_path | No | File path hint for language detection (e.g., 'src/auth.py') | |
| framework | No | Override framework detection. One of: pytest | jest | junit5 | go-test | playwright | k6 | |
| test_type | Yes | Type of tests to generate. One of: unit | integration | api | e2e | contract | performance | security | |
| project_dir | No | Absolute path to the caller's project root. The SQLite registry and reports will be stored under <project_dir>/.utf/. Defaults to the current working directory of the MCP client process. | |
| source_code | No | Source code to analyze (function/class/module). Optional but recommended. | |
| requirements_text | No | User stories, acceptance criteria, Jira tickets, or requirements. Include IDs like US-001, AC-2.1, REQ-042 for traceability. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||