Date: 2026-08-23
Proposed
TODO.md (2026-08-23) proposes an MCP server so an LLM assistant can administer/query Islandr — "list peers", "create a peer", "check an ACL grant" — as tools an assistant calls directly. Two shapes were sketched:
GET /api/mcp/sse (event stream) + POST /api/mcp/message (JSON-RPC tools/list/tools/call), with a Settings toggle and an mcp:access-scoped API key, translating the running app's own JAX-RS resources to MCP tool calls at runtime./api/external/v1/... facade (ADR-0026) on the other, deriving its tool definitions from the hand-written docs/api/openapi.yml rather than any runtime introspection.This is the same fork every prior "do we add a protocol surface" decision in this project has faced — ADR-0019 (ACME client), ADR-0023 (DNS resolver), ADR-0012 (Docker socket proxy), and ADR-0026 itself (OpenAPI spec: hand-written, not quarkus-smallrye-openapi) all chose to keep an additional protocol or generation concern out of the core native-image binary rather than pull in a library or annotation processor to serve it. MCP is a heavier version of the same question: an MCP SDK (session/transport handling, JSON-RPC framing, capability negotiation) is a dependency with its own update cadence, attack surface, and native-image reflection-config burden, added to every user's binary, to serve an assistant-integration use case only some operators want.
This time the question isn't only build size — it's what the operator has to run. Islandr's primary deployment promise (README, docs/install.md) is one systemd unit running one native binary; Docker is the secondary path, and even there ADR-0012 fought hard to keep the footprint to exactly one additional process (islandr-proxy, a small Go daemon with a narrow allowlisted protocol) rather than a stack of containers. That sidecar was accepted because it closes a real capability gap no in-process code could (the container has zero Linux capabilities and needs something on the host to call wg/nft) — not because sidecars are free. A second sidecar for MCP has no equivalent forcing function: nothing about talking MCP-to-REST requires living outside the container/host boundary the way wg/nft calls do. Every option below is judged against that bar, not just against native-image size.
The facade this would sit on is also not yet ready for meaningful LLM administration: ADR-0026 originally scoped v1 to peers (list/create) and users (list) only — no ACL grants, no sites/resources. An MCP layer at that point could offer little more than "list peers" and "create a peer", which doesn't yet justify the integration on its own.
Update (2026-08-23): sites (list), resources (list), and roles (list) have since been added to the facade (read-only), narrowing this gap. ACL grants themselves (which role/user can reach which resource) are still internal-only — the one piece still missing for an assistant to actually answer "who can reach X" or "grant Y access to Z", which was the concrete example in the originating TODO.md idea ("ACL-Grant prüfen"). That remains the blocking precondition below.
Defer building either option until the external facade covers enough resources to make LLM administration meaningful (ACL grants, at minimum — sites/resources/roles are covered as of 2026-08-23). When that precondition is met, build the MCP surface as a separate adapter process, not a native Quarkus endpoint — the same "adapter process talking to a stable API, not a dependency inside the core binary" shape as ADR-0012's socket proxy.
Concretely, once undertaken:
islandr itself. Nothing in build.gradle.kts changes./api/external/v1/... (ADR-0026). No new auth mechanism, no mcp:access scope carve-out — v1 API keys are already all-or-nothing per ADR-0026's own decision (R-184), and a separate scope would be a half-step that still doesn't bound what a leaked key can do.docs/api/openapi.yml (offline, e.g. an openapi-generator-style step run by a maintainer or a build step in the adapter's own repo) — the same "the spec is the interface, not something introspected at runtime" posture ADR-0026 already established for the facade itself. Islandr never needs to know an MCP client exists.Settings.externalApiEnabled (ADR-0026) already gates the whole facade the adapter depends on; a second toggle for the same surface would be redundant state to keep in sync.docs/install.md ships. This is what keeps the "single binary" promise intact for everyone who doesn't ask for MCP: the cost of this decision is paid only by the operator who opts in, unlike ADR-0012's socket proxy, which every Docker-mode operator runs whether they use it or not (it isn't optional — the container cannot reach wg/nft without it).Explicitly weighed, not just implied by the Pugh Matrix below:
islandr-proxy but not offset by that ADR's justification (a capability the host process structurally cannot have). A native endpoint has zero install cost for this operator: it's already running, a Settings toggle turns it on.Baseline: separate adapter process over the external facade, deferred until the facade covers more resources (the decision). +1 better, 0 equal, −1 worse.
| Criterion (weight) | Separate adapter process (baseline) | Native Quarkus MCP endpoint (/api/mcp/sse, in-process) |
Build now, against today's peers/users-only facade |
|---|---|---|---|
| Native-image build size / dependency surface (5) | 0 | −1 | 0 |
| Facade already provides everything needed (auth, DTOs, stable contract) (4) | 0 | −1 | 0 |
| Usefulness of the resulting tool surface to an assistant (4) | 0 | 0 | −1 |
| Implementation effort right now (2) | 0 | −1 | +1 |
| Consistent with prior "adapter/hand-rolled over library" ADRs (0012/0019/0023/0026) (3) | 0 | −1 | 0 |
| Installation effort for the operator who opts in (extra process to run/update) (4) | 0 | +1 | 0 |
| Development/maintenance effort for the project (second repo, release cadence, version compat) (3) | 0 | +1 | 0 |
| Installation effort for operators who don't want MCP (the default-install promise) (5) | 0 | −1 | 0 |
| Weighted total | 0 | −13 | −4 |
Notes:
@Path methods, and pulling in the dependency (or hand-rolling the protocol) inside the shipped native image repeats exactly the trade-off ADR-0026 just rejected for OpenAPI generation — paying a build-time/binary-size cost in every user's binary for a feature only some operators use. It also duplicates auth (a new mcp:access scope) instead of reusing the facade's existing API keys. It does win two real criteria — nothing extra to install/update for the operator who wants it, and one release cadence instead of two for the maintainer — which is exactly why this decision is close on paper (−13 vs. the −4 "build now" option is not a landslide) rather than obvious; it loses on the criterion weighted highest here: what every other operator has to install, which a permanent binary-size/dependency cost affects and an opt-in sidecar doesn't.islandr itself from this ADR — it records a decision on shape, not an implementation. The facade (ADR-0026) is the only dependency, and it already exists./api/external/v1/... needs ACL-grant endpoints (which role/user can reach which resource) — sites, resources, and roles are covered as of 2026-08-23, but the grants connecting them are still internal-only (natural follow-on work to ADR-0026, tracked in TODO.md, not yet a GitHub issue).islandr.docs/install.md already documents. docs/install.md gets a new, clearly-optional section for it when implementation starts; it is never folded into the default install steps.tools/call → facade write endpoints (e.g. create a peer, change an ACL grant) without the human noticing until the audit log is reviewed. Mitigation: the facade's existing one-time-reveal/revocable/audit-logged API key model (ADR-0026) is the only control at v1 — no additional agent-specific guardrail (e.g. a human-confirmation step, a read-only key mode) is designed here; if the adapter is built, scoped/read-only key modes should be revisited as a precondition, not an afterthought.TODO.md (2026-08-23, "MCP-Server für LLM-Zugriff") — the originating idea, including the "Weg 1" native-endpoint sketch this ADR evaluates and declines