Mainworthy documentation
Use this guide to write test cases, report results, and decide whether a change can ship. Mainworthy keeps every version of a case and records results from people, pipelines, and AI agents together.
When tests fail, Mainworthy groups failures with the same cause into a question. In the queue, you can see the evidence and answer with one key. For example, you can identify a product defect, a flaky test, or an infrastructure failure. Your answer can cover later failures with the same cause. The gate uses the results and decisions to tell your pipeline whether the change can go into main. Run mainworthy gate to read its verdict.
Teams can use Mainworthy in CI/CD to gate releases and show what they tested. Manual and automated results count toward the same verdict, so you can automate at your own pace. Agents connect through the Model Context Protocol (MCP) with their own tokens. Each project's policy specifies who answers questions and which answers count. Mainworthy is open source. You can host it yourself and export your cases, results, and decisions at any time.
Where to start #
- You have never used it. Follow the quickstart to start an instance and answer a failure question in about ten minutes.
- You want to look around a filled project first. Run
mainworthy seed demo. See a project of demo data. - You want to understand the model before using the app. Read how Mainworthy works.
- You are connecting a pipeline. Read report results, then changes and the gate.
- You want to inspect a gate's results or find an automated test. See changes and the gate and report results.
- You are setting up Mainworthy for a team. Read what you can customize, then policy and people, agents and pipelines.
- You found an unfamiliar word. Look it up in the glossary.
All pages #
Start #
- How Mainworthy works. A test case describes what you expect the software to do. A result records what happened. When a failure needs judgment, Mainworthy asks a question and records the answer that settles it as a decision. The gate uses results and decisions to tell you whether a commit meets the testing requirements.
- Quickstart. In about ten minutes, you can start a local Mainworthy server, write a test case, and upload a failed result. Then you can answer the resulting question and see how your answer changes the gate. The gate tells you whether a commit meets the testing requirements.
Use it #
- Write cases. Use Suite to write test cases, compare and restore earlier versions, and resolve overlapping edits. Find cases by folder, tag, or search.
- Import cases from CSV. Use a CSV file to bring cases into Mainworthy. Preview how the columns map to case content and project fields before you confirm the import.
- Report results. Send a test report from your runner or CI pipeline. Check the tested commit's gate to see whether it meets the project's testing requirements. Include the pipeline's identity, retries, and case links so you can see who reported each result, what they tested, and what happened on each try.
- Decide in the queue. Use Queue to read the evidence behind a question and choose an answer. A question asks for judgment about evidence Mainworthy has recorded. The policy sets who can answer and which answers count. An answer the policy accepts becomes a decision. Read the consequence beside each answer to see how it affects the gate, which tells you whether a commit, change, or run has enough evidence to pass.
- Planned runs. Start a planned run to test a set of cases and close the run with a verdict. Each case gets a slot that keeps the version that was current when you started the run. Report results by hand or let CI results fill qualifying slots so you can focus on the work that remains.
- Changes and the gate. Use Changes to see whether a pull request, branch, or reported commit has enough test evidence to pass. Mainworthy calls this check the gate. Read its verdict to see what needs attention, or use the command line to decide whether CI can continue.
- Reports. Use Reports to see how often tests pass, which tests are flaky, and how much time reruns cost. You can also see which cases are automated, how much time people spend running cases, and which requirements have cases that pass. Every report uses the same results from people, pipelines, and agents.
- Let an agent in. Give an AI agent its own token and connect it over Model Context Protocol (MCP). The agent can then read cases, review changes, and report results. The project's policy sets who answers each kind of question and which answers count.
Customize #
- What you can customize. Mainworthy has settings for the instance, each project, cases, runs, and your browser. This page lists who can change each setting and links to instructions.
- Policy. A project's policy sets who answers each kind of question and which answers count. Compare the four built-in policies, called presets, and choose how your project handles case edits, test results, and requests to close a run.
- People, agents and pipelines. Choose what people, AI agents, and pipelines can do in each project. A token is a secret that identifies the person, agent, or pipeline using it. An instance admin holds the
adminpermission on every project and can issue tokens. People can also create their own command-line tokens. - Billing. This page explains how organisations pay for Mainworthy on instances that sell subscriptions, such as hosted instances. Checkout adds any sales tax or VAT the buyer owes. The buyer receives receipts and invoices by email. Mainworthy never sees the card. Self-hosted instances sell no subscriptions and show no billing controls. See the privacy policy for who processes payments.
- Configuration. The server reads its settings from environment variables. These settings control where the server listens, where it keeps its data, and who owns it. There is no configuration file.
- Your data. Find your data, export it to a text file, back it up and move it to another machine. Your cases, results and decisions are yours, and you can take them out at any time.
- Privacy. This policy explains what data we keep, why we keep it, and how we handle it. It also explains your rights over that data. We never sell your data, and we try to keep as little of it as Mainworthy can work with.
- Terms of service. These terms set out what you and we agree to when your organisation uses
mainworthy.com: your content, acceptable use, fees, backups, leaving, and the limits of our liability.
Reference #
- Keyboard. This page lists the web app's keys by screen. ? lists the keys for the current screen. The bar at the bottom shows common actions. Its editor hints follow the focused field.
- Command line. This page lists every
mainworthycommand, with its flags and exit codes. The tables describe the version of Mainworthy that serves this guide. - API and agent tools. This reference lists each Mainworthy operation, its address, the permission you need, and the input it accepts. The web UI, command line, and agent tools call the same operations. The HTTP API and command line list every operation. Mainworthy exposes ten of them through the Model Context Protocol (MCP) for agents.
- Glossary. These definitions explain the words you see in Mainworthy and its command output, with links to the pages that describe them.
- Troubleshooting. Find the message or symptom you see in Mainworthy and follow the steps in that section.
- How it is built. Mainworthy runs as one server process connected to PostgreSQL 18. This page explains how the server records results and decisions, and what the tests check about that design.
- Licence. Mainworthy is open source under the Apache License 2.0. This page describes its terms and the licences of the software it bundles.
Help while you work #
The app links to the documentation in these places:
- Docs at the bottom of the sidebar, beside Keys and Theme, opens the page about your current screen in a new tab. For the queue, that page is decide in the queue. g d opens the same page.
- ? lists every key that works on the current screen, with a link to the same page.
- An empty list links to the page that explains how to add items to that list. Each section of Settings links to its documentation. The gear beside your name at the bottom of the sidebar opens Settings. g , also opens Settings.
- The sign-in page links here too, because the docs need no account.
- ⌘ K opens the palette. A search for
docsand a word finds documentation pages.
These pages come with the server you are running, so they describe that version. The version is at the bottom of every page.