JME Architecture Repository Example
This example shows how to set up and run the jEAP Architecture Repository (archrepo) service locally. It contains the following modules:
- jme-archrepo-service: An instance of the Architecture Repository service, powered by jeap-archrepo-web. It stores and displays architecture documentation including database schemas, OpenAPI specifications, and system relationships.
- jme-archrepo-auth-scs: An instance of the OAuth mock server to authenticate against the Architecture Repository.
Prerequisites
To use this project, ensure you have the following installed:
- Java Development Kit (JDK): Version 25.
- Docker: For running the required infrastructure (PostgreSQL).
Note: Use the provided Maven wrapper to build and run the project.
Getting started
Infrastructure
Before the application can be started, the infrastructure (PostgreSQL) must be running:
docker-compose -f docker/docker-compose.yml up
Build
The project can be built with:
./mvnw install
Start
Then the individual modules can be started using:
./mvnw --projects jme-archrepo-auth-scs spring-boot:run -Dspring-boot.run.profiles=local
./mvnw --projects jme-archrepo-service spring-boot:run -Dspring-boot.run.profiles=local
Access
Once started, the Swagger UI is available at:
http://localhost:8080/jme-archrepo-service/swagger-ui/index.html
MCP server for AI agents
The service includes the MCP server of the Architecture Repository (jeap-archrepo-mcp). AI agents can search and
read the systems and components of the architecture model, their dependencies, interfaces and data models through
the tools find_systems, get_system, get_component, get_dependencies, get_interfaces and
get_data_models. The endpoint is a Streamable HTTP MCP server at
http://localhost:8080/jme-archrepo-service/mcp; its tools are open
to every caller by default, so a client connects without signing in:
# Claude Code
claude mcp add --transport http archrepo http://localhost:8080/jme-archrepo-service/mcp
# GitHub Copilot CLI
copilot mcp add --transport http archrepo http://localhost:8080/jme-archrepo-service/mcp
The server needs the external URL of its endpoint, jeap.mcp.security.resource-uri (see application-local.yml).
See the MCP server documentation of
the Architecture Repository for the tools, their results and how to require authentication.
Profiles
- application-local: Contains all configurations for running the application locally (local PostgreSQL, mock OAuth server).
Integration Tests
The jme-archrepo-test module contains end-to-end integration tests that verify that the Architecture Repository
service and its configuration work: it covers Docker Compose infrastructure and both service modules.
How it works
The test uses Spring Boot Docker Compose support to automatically start and stop the Docker infrastructure
(PostgreSQL) before and after the test run. It then starts the two Spring Boot services (auth-scs and
archrepo-service) as Maven subprocesses via mvnw spring-boot:run and polls their health endpoints until they
are ready.
The tests themselves use REST-Assured to interact with the services:
registerSystemAndVerifyModel— Registers a system via the management API and verifies it appears in the model.modelEndpointsShouldReturnSuccessfully— Verifies that the REST-API-relation and system-components endpoints respond correctly.shouldObtainAccessTokenFromAuthScs— Verifies the OAuth flow works end-to-end with the mock server.mcpServerAnswersAnAgentWithoutAToken— Calls the MCP server like an AI agent, without a token: lists its tools and finds the configured system withfind_systems.
Running locally
# Build and install all local modules
./mvnw install -pl '!:jme-archrepo-test'
# Run integration tests
./mvnw verify -pl jme-archrepo-test
This will:
- Start the Docker Compose infrastructure (PostgreSQL container is stopped after the test).
- Build and start the two Spring Boot services on ports 8080 and 8081.
- Run the integration tests.
- Stop all services and containers.
Ensure Docker is running and ports 5432, 8080, and 8081 are available.
Running on CI
On CI the CI environment variable must be set. This activates the ci Spring profile which uses
docker-compose-ci.yml as an overlay (removing host port bindings and using the container hostname for the
PostgreSQL datasource URL). On CI, an isolated Docker network is used to allow for parallel builds.