A JUnit reporter for mocha.
Mocha MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. A JUnit reporter for mocha.
[Build Status][travis-badge]][travis-build] [npm][npm-badge]][npm-listing]
Once Mocha is connected, these are the calls the assistant has available:
Attachments — enabling the attachments configuration option will allow for attaching files and screenshots in [JUnit AttachmentsThe server ships on npm as mocha-junit-reporter, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
You will need one environment variable: BUILD_ID. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Mocha's toolset — Attachments — is a fair guide to whether it matches your workflow. It is maintained by mrmichael; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Mocha's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Attachments | enabling the attachments configuration option will allow for attaching files and screenshots in [JUnit Attachments Plugin](https://wiki.jenkins.io/display/JENKINS/JUnit+Attachments+Plugin) format. |
{
"mcpServers": {
"reporter": {
"command": "npx",
"args": ["-y", "mocha-junit-reporter"],
"env": {
"BUILD_ID": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| BUILD_ID | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.