Adapter SDK
Write and test your own adapters for further tools – with the open-source Adapter SDK of contract, compatibility kit and templates.
Work in progress. This documentation is not complete yet. If something is missing, write to us: support@wiestigo.com
As of 14 November 2026 · checked against the Adapter SDK 1.1
Mirador syncs requirements with Jira and Jama out of the box. You connect any other tool yourself: with an adapter. Everything you need for that is in the Adapter SDK – a public repository on GitHub:
github.com/Wiestigo/wiestigo-mirador-adapter-sdk
The SDK is open source under the Apache License 2.0. Its two templates are under MIT No Attribution (MIT-0): copy them, build your adapter on them and license the result as you like.
Text version
- Your adapter declares what your tool can do, reads and writes – in the terms of your tool.
- Mirador handles everything else: mapping, change detection, reconciliation, schedule and reports.
- Choose the way: a plugin in Java or your own service in any language.
- Copy the template and replace the example with your tool.
- Test with the compatibility kit: mvn test, without a running Mirador.
- Deliver the jar; the administrator uploads it, releases it and creates the connection.
What an adapter does – and what Mirador handles
Whoever syncs two tools usually writes little code for reading and writing – and a great deal for everything around it: what has changed? What was deleted? What happens when a run breaks off and starts again? That part already exists in Mirador. An adapter contains only what sets your tool apart from others.
An adapter connects Mirador with exactly one tool. It talks to the tool's API and translates between that API and Mirador's tool-neutral model: artifacts, links, comments and attachments. It stays in the terms of its tool – the tool's identifiers, type names, field labels and values. It needs to know nothing about Mirador: neither its types nor its projects.
Mirador handles everything else, and none of it is adapter code:
| Task | What Mirador does | What you do not write |
|---|---|---|
| Mapping | translates types, attributes, values and link types by a mapping file that the administrator adjusts per connection | translation tables in code; a new build for every changed field |
| Detecting changes | compares what the adapter delivers with the state in the project | your own comparison of old and new |
| Reconciling deletions | reconciles the sets in a full run and sees what is missing in the tool | bookkeeping of what once existed |
| No duplicates | remembers each element's external reference; a repeated run creates nothing twice | your own mapping of identifiers |
| Hierarchy and order | builds the tree and creates elements in the right sequence | sorting parents, children and links |
| Batching and parallel writes | groups calls and writes concurrently, as far as the tool allows | batches, threads and their failure cases |
| The way to the network | throttles, retries after a transient failure, keeps deadlines, applies the connection's certificates | retries, waiting times and TLS settings |
| Schedule and operation | schedules runs, keeps them in a queue, shows progress and run reports | a service of your own with a schedule and a user interface |
| Settings | shows the settings the adapter declares in the administration, checks their values and hides secrets in the log | forms, validation and the handling of credentials |
Why this makes connecting a tool simple
You write only what is special. Reading and writing in the terms of your tool – that is the whole adapter. An adapter that only reads does not need the writing part at all.
You declare instead of programming. The adapter states what its tool can do, and Mirador acts accordingly. If the tool cannot filter by “changed since”, Mirador uses full runs. If it cannot change a link, Mirador creates the new one and deletes the old one. If it has no tree, everything sits below the sync point.
The mapping is a setting. Your adapter brings a template for the mapping. If a field has a different name at a customer, the administrator changes the connection's mapping file – without a new build, without you.
You start with something that runs. The templates are complete projects: they build, pass the compatibility kit and deliver a jar or a service. You replace the example instead of starting from nothing.
You test at your desk. The compatibility kit runs in your build, without Mirador and without a test installation. You know whether the adapter honours the contract before anyone uploads it.
The contract stays stable. Within a major version it changes only in a backward-compatible way. An adapter that runs today keeps running unchanged with the next minor version.
Two ways: plugin or your own service
| Plugin | Your own service | |
|---|---|---|
| What it is | one jar that Mirador loads | an HTTPS service that you run |
| Language | Java, version 17 or later | any |
| Interface | the contract rmm_adapter_api | the remote protocol, JSON over HTTPS |
| Compatibility kit | rmm_adapter_tck | rmm_remote_tck |
| Template | rmm_adapter_template | rmm_remote_service_template |
A plugin runs with the rights of Mirador. Where several customers share one installation, only plugins that the operator is responsible for run there; a customer's adapter runs as a service of its own. Choose the service as well when the adapter is not written in Java or has to run in your own network.
What is in the SDK
| Module | Purpose |
|---|---|
rmm_adapter_api | the contract, semantically versioned |
rmm_adapter_model | the transfer model: artifacts, links, comments, attachments and their fields, plus the mapping |
rmm_adapter_tck | the compatibility kit for a plugin, with reference adapters |
rmm_remote_tck | the compatibility kit for a service, over HTTPS |
rmm_adapter_http_spring | Spring clients over the contract's HTTP path |
rmm_adapter_template | an adapter project to copy, with a complete CSV example |
rmm_remote_service_template | a service to copy, using only the JDK |
Technical names – modules, packages, headers – carry the abbreviation rmm.
Starting a plugin
You need a JDK from version 17 and Maven 3.6.3 or newer.
- Get the SDK: build it from source once (
mvn installin the repository) or use the released packages. The repository's README describes both under “Getting the SDK”. - Copy
rmm_adapter_templateand replace the example with a class for your tool. The template's README says what to rename. mvn testruns the compatibility kit and your own tests;mvn packagebuilds the jar.
Your project depends on two artifacts; the current version is on the repository's releases page:
<dependency>
<groupId>com.wiestigo.mirador</groupId>
<artifactId>rmm_adapter_api</artifactId>
<version>…</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.wiestigo.mirador</groupId>
<artifactId>rmm_adapter_tck</artifactId>
<version>…</version>
<scope>test</scope>
</dependency>
Mirador supplies the contract at run time, so it does not belong in your
jar (provided).
Starting a service
A service implements the remote protocol. In content these are the same calls as in the contract: describe yourself, read, write. The protocol asks three things of every service:
- Mutual TLS. Mirador identifies itself with the certificate of the connection; the service accepts only certificates installed with it. There is no token.
- The binding in the header. Every request names the connection it
belongs to in the
X-RMM-Bindingheader; the service keeps data and state separate per connection. - The protocol version. Mirador speaks exactly one version, currently version 4, and does not bind a service with an older one.
The template rmm_remote_service_template is a runnable service that
passes the compatibility kit. docs/REMOTE_PROTOCOL.md in the repository
describes every path, field and rule.
Testing with the compatibility kit
The compatibility kit checks an adapter against the contract without a
running Mirador. It is an ordinary JUnit test in your build: you extend a
test class, name your adapter and its configuration, and mvn test runs
the checks.
Two entries are enough for the checks on the adapter's structure. The kit checks reading and writing once you give it a test project or a simulated tool. A check whose entry is missing counts as skipped, not as passed.
The compatibility kit for services works the same way, over HTTPS against the running service.
Delivering and releasing
A plugin goes into operation in four steps:
- Upload. The administrator uploads the jar. The administration shows its checksum (SHA-256) and its self-description without running any of its code.
- Release. No plugin runs without an explicit release of exactly this jar. Every new build needs a new release; until then the last released version keeps running.
- Restart. Mirador loads new code only when it starts.
- Connect. The administrator creates a connection of this type and enters its values.
For a service, the administrator creates a connection with the address of the service and installs the connection's certificate at the service.
Mirador does not certify adapters: whether a plugin is trustworthy is for the administrator to decide before the release.
Versions
The contract has a major and a minor version, currently 1.1; the SDK version follows it. Within a major version the contract changes only in a backward-compatible way: an adapter built against an earlier minor version keeps running unchanged.
A plugin states the version of the contract it is built against. If it needs a newer one than Mirador knows, Mirador does not load it and names the version it needs.
Further reading
- Developer guide – from an empty project to a tested, packaged adapter
- Remote protocol – the calls of a service in detail
- REST API – for scripts and reports that need no ongoing sync
- Jira and Jama – the sync as it looks in the tool
Planning an adapter and have a question? Write to us – or open an issue in the repository.