macOS
brew install mocolocal Homebrew formula metadata
安装
brew install mocolocal Homebrew formula metadata
概览
Stub server with Maven, Gradle, Scala, and shell integration
历史
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.
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.
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.
安全态势
broad file, network, media, or database tool signal. generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
moco | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/dreamhead/moco
安装元数据
| 软件包键 | brew:moco |
|---|---|
| 版本 | 1.6.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/moco |
| 主页 | https://github.com/dreamhead/moco |
| 仓库 | https://github.com/dreamhead/moco |
| 上游文档 | https://github.com/dreamhead/moco#readme |
| 许可证 | MIT |
| 源码归档 | https://search.maven.org/remotecontent?filepath=com/github/dreamhead/moco-runner/1.6.1/moco-runner-1.6.1-standalone.jar |
| 最后更新 | 2026-05-02T15:41:41Z |
| Pulse | updated |
| 依赖 | openjdk |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.