mockserver-monorepo

mcp
Guvenlik Denetimi
Gecti
Health Gecti
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 4879 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).

README.md

MockServer            Build status
GitHub license
GitHub stars

MockServer is an HTTP(S) mock server and proxy for testing. Mock any HTTP/HTTPS, REST, gRPC, or JSON-RPC dependency; record-and-replay real traffic as a proxy; and drive it all from a client library (Java, Node, Python, Ruby) or a built-in dashboard. Recent releases add first-class LLM / AI-agent provider mocking (Anthropic, OpenAI, Gemini, Bedrock, Ollama and more), an MCP server for AI coding assistants, and chaos / fault injection on mocked and forwarded responses — see the changelog for what has shipped in each version.

Quick Start

Run MockServer with Docker in seconds:

docker run -d --rm -p 1080:1080 mockserver/mockserver

Then create your first expectation and call it (MockServer exposes a REST control plane on the same port):

# 1. Mock an endpoint: GET /hello -> 200 "Hello World"
curl -X PUT http://localhost:1080/mockserver/expectation \
  -H 'Content-Type: application/json' \
  -d '{
        "httpRequest":  { "method": "GET", "path": "/hello" },
        "httpResponse": { "statusCode": 200, "body": "Hello World" }
      }'

# 2. Call your mock
curl http://localhost:1080/hello
# -> Hello World

The same can be done from any client library or the dashboard at http://localhost:1080/mockserver/dashboard. For more configuration options see the Docker documentation.

Documentation

For usage guide please see: www.mock-server.com

Developer Documentation

Architecture, code structure, infrastructure, and operations documentation is available in the docs/ directory.

AI Integration

MockServer includes a built-in MCP server for AI coding assistant integration at /mockserver/mcp. See llms.txt and AI Integration docs.

Change Log

Please see: Change Log

Community

Discussions GitHub Discussions
Issues, Bugs & Feature Requests GitHub Issues
Roadmap GitHub Project
Security Security Policy

Requirements

Runtime: MockServer 6.x requires Java 17+. The minimum was raised from Java 11 as part of the Jakarta EE 10 / Spring 7 platform modernisation — see the Java 17 / Jakarta upgrade guide. If you are still on Java 11, pin to the 5.15.x line (no longer receiving security updates). The official Docker image already bundles a Java 17 runtime.

Building from source: requires JDK 17+; the produced bytecode targets Java 17.

Security Note: MockServer is a development and testing tool only. See SECURITY.md for important security considerations.

Versions

Maven Central mockserver

Maven Central contains the following MockServer artifacts under the org.mock-server groupId. Every artifact ships in two forms — -no-dependencies (shaded, zero transitive deps, recommended) and the plain form (transitive deps declared in the POM, for the rare case where you need to override versions yourself).

Server:

Java client:

Test framework integrations:

Build-tool plugin:

Tip: The -no-dependencies artifacts bundle all dependencies into a single JAR with packages relocated under shaded_package.*, so they declare zero transitive dependencies. This avoids classpath conflicts with versions of Netty / Jackson / Guava / Bouncy Castle that your project already uses, and it removes the noise from CVE scanners flagging unused transitive dependencies. See the Maven Central page for full coordinates, snapshot repository setup, and the executable jar-with-dependencies form for command-line use.

6.0.0 breaking change: the <classifier>shaded</classifier> form has been removed. Replace mockserver-netty:<version>:shaded with mockserver-netty-no-dependencies:<version> (and likewise for the other shaded artifacts). The replacement produces the same shaded bytes; only the coordinates change.

SNAPSHOT builds are published to the Sonatype Central Portal snapshot repository at https://central.sonatype.com/repository/maven-snapshots/org/mock-server/.

Node Module & Grunt Plugin

NPM Registry contains the following module:

Docker Hub

Docker Hub contains the following artifacts:

Helm Chart
MockServer Clients
Community Tools
Previous Versions
Version Date Git & Docker Tag / Git Hash Documentation Java API REST API
6.1.0 (latest) 27 May 2026 mockserver-6.1.0 / 33c273 Documentation Java API 6.1.x REST API
6.0.0 20 May 2026 mockserver-6.0.0 / 6a254e Documentation Java API 6.0.x REST API
5.15.0 11 Jan 2023 mockserver-5.15.0 / 7c071b Documentation Java API 5.15.x REST API
5.14.0 22 Aug 2022 mockserver-5.14.0 / 808eba Documentation Java API 5.14.x REST API
5.13.2 05 Apr 2022 mockserver-5.13.2 / 81105b Documentation Java API 5.13.x REST API
5.13.1 02 Apr 2022 mockserver-5.13.1 / 39d1cc Documentation Java API 5.13.x REST API
5.13.0 17 Mar 2022 mockserver-5.13.0 / 604888 Documentation Java API 5.13.x REST API
5.12.0 12 Feb 2022 mockserver-5.12.0 / 61747f Documentation Java API 5.12.x REST API
5.11.2 08 Nov 2020 mockserver-5.11.2 / eb84f2 Documentation Java API 5.11.x REST API
5.11.1 22 Jul 2020 mockserver-5.11.1 / 361e5c Documentation Java API 5.11.x REST API
5.11.0 08 Jul 2020 mockserver-5.11.0 / 756758 Documentation Java API 5.11.x REST API
5.10.0 24 Mar 2020 mockserver-5.10.0 / 14124d Documentation Java API 5.10.x REST API
5.9.0 01 Feb 2020 mockserver-5.9.0 / eacf07 Documentation Java API 5.9.x REST API
5.8.1 23 Dec 2019 mockserver-5.8.1 / f0e9ab Documentation Java API 5.8.x REST API
5.8.0 01 Dec 2019 mockserver-5.8.0 / 7c9fc5 Documentation Java API 5.8.x REST API
5.7.2 16 Nov 2019 mockserver-5.7.2 / 7c9fc5 Documentation Java API 5.7.x REST API
5.7.1 09 Nov 2019 mockserver-5.7.1 / 0ca353 Documentation Java API 5.7.x REST API
5.7.0 01 Nov 2019 mockserver-5.7.0 / b58bc5 Documentation Java API 5.7.x REST API
5.6.1 21 Jul 2019 mockserver-5.6.1 / aec1fb Documentation Java API 5.6.x REST API
5.6.0 21 Jun 2019 mockserver-5.6.0 / 8f82dc Documentation Java API 5.6.x REST API
5.5.4 26 Apr 2019 mockserver-5.5.4 / 4ffd31 Documentation Java API 5.5.x REST API
5.5.1 29 Dec 2018 mockserver-5.5.1 / 11d8a9 Documentation Java API 5.5.x REST API
5.5.0 15 Nov 2018 mockserver-5.5.0 / 06e6fd Documentation Java API 5.5.x REST API

Issues

If you have any problems, please check the project issues and avoid opening issues that have already been fixed. When you open an issue please provide the following information:

  • MockServer version (i.e. 6.1.0)
  • How your running the MockServer (i.e maven plugin, docker, etc)
  • MockServer log output, at INFO level (or higher)
  • What the error is
  • What you are trying to do

Contributions

Pull requests are, of course, very welcome! Please read our contributing to the project guide first. Then head over to the open issues to see what we need help with. Make sure you let us know if you intend to work on something. Also check out the project roadmap to see what is already in the backlog.

Feature Requests

Feature requests are submitted to GitHub issues and tracked on the project roadmap.

Maintainers

Yorumlar (0)

Sonuc bulunamadi