# Install moco with Homebrew

Stub server with Maven, Gradle, Scala, and shell integration. Version 1.6.1 via Homebrew; verified 2026-05-02.

## Install

```sh
sudo av install brew:moco
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install moco
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:moco
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/moco>
- **Version:** 1.6.1
- **Source summary:** Stub server with Maven, Gradle, Scala, and shell integration
- **Homepage:** <https://github.com/dreamhead/moco>
- **Repository:** <https://github.com/dreamhead/moco>
- **Upstream docs:** <https://github.com/dreamhead/moco#readme>
- **License:** MIT
- **Source archive:** <https://search.maven.org/remotecontent?filepath=com/github/dreamhead/moco-runner/1.6.1/moco-runner-1.6.1-standalone.jar>
- **Last updated:** 2026-05-02T15:41:41Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- moco (cli)
- moco (alias)

## Dependencies

- openjdk

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.6.1
- Package-manager updated: 2026-05-02
- Local data: ok
- Upstream repository: https://github.com/dreamhead/moco
- info: No cached GitHub release or tag data was available.
## Project history and usage

Moco is a Java stub-server and mocking framework from ZHENG Ye's dreamhead/moco project, with copyright dates in the upstream README beginning in 2012. The project was built around a small alternative to deploying temporary WAR files or embedded application servers for HTTP integration testing: write a JSON response description, run the standalone runner, and point tests or clients at the local stub endpoint.

### Project history

Its ecosystem role is deliberately practical. Moco can be embedded as a Java API in JUnit tests, run as a standalone server, or reached through Maven, Gradle, shell, and Scala integrations. The documentation covers HTTP, HTTPS, socket, REST, WebSocket, and SSE APIs, which places it in the Java testing niche alongside mock HTTP servers and service-virtualization tools rather than full API gateways.

### How it is used

The Homebrew formula exposes the `moco` executable for command-line use, while the upstream project also publishes Maven artifacts such as `moco-core` and the standalone runner. The 2.0.0 line moved the project to Java 17 or later, marking a runtime baseline change for a tool that had long been used in build and integration-test workflows.

### Sources

- <https://formulae.brew.sh/formula/moco>
- <https://github.com/dreamhead/moco>
- <https://raw.githubusercontent.com/dreamhead/moco/master/README.md>
- <https://raw.githubusercontent.com/dreamhead/moco/master/moco-doc/usage.md>


## Security Notes

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** moco
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [mockserver](https://www.automicvault.com/pkg/brew/mockserver/) - Shares av.db curated category or tags: api, cli, developer-tools, http, testing.
- [goku](https://www.automicvault.com/pkg/brew/goku/) - Shares av.db curated category or tags: cli, developer-tools, http, testing.
- [gor](https://www.automicvault.com/pkg/brew/gor/) - Shares av.db curated category or tags: cli, developer-tools, http, testing.
- [jmeter](https://www.automicvault.com/pkg/brew/jmeter/) - Shares av.db curated category or tags: cli, developer-tools, java, testing.
- [prism-cli](https://www.automicvault.com/pkg/brew/prism-cli/) - Shares av.db curated category or tags: api, cli, developer-tools, testing.
- [ain](https://www.automicvault.com/pkg/brew/ain/) - Shares av.db curated category or tags: api, cli, developer-tools, http.
- [allure](https://www.automicvault.com/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [artillery](https://www.automicvault.com/pkg/brew/artillery/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [sqlancer](https://www.automicvault.com/pkg/brew/sqlancer/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, java, openjdk.
- [fake-gcs-server](https://www.automicvault.com/pkg/brew/fake-gcs-server/) - Local metadata places this package in an adjacent workflow. Shared terms: api, cli, developer, developer-tools, server.

## Combined YAML source

View the package source record on GitHub. [combined/moco.yml](https://github.com/automic-vault/db/blob/main/combined/moco.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
