Read-only mirror of https://github.com/jme-admin-ch/jme-deploymentlog-example — Bundesamt für Informatik und Telekommunikation. Issues & pull requests at the source. Catalog: https://www.opensource.admin.ch/en/softwares/v9lu76 https://www.opensource.admin.ch/en/softwares/v9lu76
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-03 15:33:57 +01:00
.github/workflows JEAP-7947: Restore the OSS validation build 2026-12-03 08:40:39 +01:00
.mvn chore(deps): update dependency maven to v3.10.2 2026-11-23 00:14:10 +00:00
.run JEAP-6502: JME OSS preparation 2026-07-02 08:00:31 +02:00
docker chore(deps): update repo.bit.admin.ch:8444/postgres docker tag to v19 2026-11-21 00:13:56 +00:00
src JEAP-7485: Update the DeploymentLog to 16.35.0 and test get_systems and get_components 2026-12-03 11:31:58 +01:00
.gitignore JEAP-6502: JME OSS preparation 2026-07-02 08:00:31 +02:00
CHANGELOG.md JEAP-7485: Bump version to 13.29.1 2026-12-03 15:33:57 +01:00
CONTRIBUTING.md JEAP-6502: JME OSS preparation 2026-07-02 08:00:31 +02:00
exclude-patterns.txt JEAP-6502: JME OSS preparation 2026-07-02 13:24:18 +02:00
LICENSE JEAP-6502: JME OSS preparation 2026-07-02 08:00:31 +02:00
mvnw JEAP-7629 Modernize the Maven wrapper 2026-09-18 11:47:20 +02:00
mvnw.cmd JEAP-7629 Modernize the Maven wrapper 2026-09-18 11:47:20 +02:00
pom.xml JEAP-7485: Bump version to 13.29.1 2026-12-03 15:33:57 +01:00
publiccode.yml JEAP-7485: Bump version to 13.29.1 2026-12-03 15:33:57 +01:00
README.md JEAP-7485: Move the Changes section to the end of the README so the published page keeps the MCP server section 2026-12-03 15:33:49 +01:00
SECURITY.md JEAP-6502: JME OSS preparation 2026-07-02 08:00:31 +02:00
THIRD-PARTY-LICENSES.md JEAP-7485: enable mcp server and smoke test 2026-12-02 10:36:08 +01:00

JME DeploymentLog Example

This example project shows how to assemble a runnable deployment-log service using the jeap-deploymentlog-service-instance starter. The starter contains all the necessary components (REST API, persistence, security) to set up a deployment-log service instance; this project wires it up with a minimal pom.xml/configuration and a PostgreSQL database, without any custom application code of its own.

What this example demonstrates

A deployment log records, per system and environment, which component version was deployed, when, by whom, and which artifact was used — used to answer "what is running where" questions. This example shows the minimal setup needed to run such a service:

  • Depending on jeap-deploymentlog-service-instance to get the deployment-log REST API and persistence out of the box.
  • Adding the optional jeap-deploymentlog-mcp module to offer an MCP server, so AI agents can read the deployed versions and search the deployment history (see MCP server).
  • application.yml configuring the service name, database schema, and enabling Swagger.
  • A PostgreSQL database provisioned via docker/docker-compose.yml.
  • An integration test (DeploymentLogExampleIT) that starts the service and exercises its API end to end: registering a new deployment via PUT /api/deployment/{id} (with basic-auth write credentials), then reading it back via GET /api/deployment/{id} (with basic-auth read credentials) and via the MCP tools find_deployments, get_systems and get_components.

Prerequisites

To use this project, ensure you have the following installed:

  1. Java Development Kit (JDK): Version 25.
  2. Docker: For running the required infrastructure.

Note: Use the provided maven wrapper to build and run the project.

Getting started

Infrastructure

Before the examples can be started the infrastructure has to be started using docker. This starts the PostgreSQL database the deployment-log service persists its data to:

docker-compose -f docker/docker-compose.yml up

Build

The project itself can be built with a simple

./mvnw install

Start

Then the project can be started using

./mvnw spring-boot:run -Dspring-boot.run.profiles=local

Trying it out

Once the application is running, open the Swagger UI at http://localhost:8080/jme-deploymentlog-service/swagger-ui.html to explore the deployment-log API — registering a deployment (PUT /api/deployment/{id}) requires basic-auth credentials with a write role, reading one back (GET /api/deployment/{id}) requires a read role. See DeploymentLogExampleIT for a runnable end-to-end example of both calls.

MCP server

The dependency on jeap-deploymentlog-mcp is all it takes: the service then also offers a Streamable HTTP MCP server at http://localhost:8080/jme-deploymentlog-service/mcp with the read-only tools get_systems, get_components (the components of one system), get_deployed_version and find_deployments. The MCP endpoint is open, it requires no authentication; the REST API keeps its basic authentication.

Connect an MCP client to the running service, for example:

# Claude Code
claude mcp add --transport http deploymentlog http://localhost:8080/jme-deploymentlog-service/mcp

# GitHub Copilot CLI
copilot mcp add --transport http deploymentlog http://localhost:8080/jme-deploymentlog-service/mcp

Then ask the agent e.g. which versions of a system are deployed on DEV, after registering a deployment as described above. The tools, their parameters and the operating limits are described in the MCP server documentation of the DeploymentLog service.

Profiles

  • application-local: Contains all configurations for running the application locally.

Changes

This library is versioned using Semantic Versioning and all changes are documented in CHANGELOG.md following the format defined in Keep a Changelog.

Note

This repository is part of the open source distribution of JME. See github.com/jme-admin-ch/jme for more information.

License

This repository is Open Source Software licensed under the Apache License 2.0.