Exeris AI Bridge

v0.9.0
io.github.exeris-systems/ai-bridge Checked 3 hours ago Published 22 days ago

Read-only Exeris context for AI agents: ADRs, SDK contract, build output, kernel diagnostics.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

docs-list_adrs

List all ADRs from the Exeris ecosystem registry. Each entry carries number, title, owning repo, scope, visibility, status, and link. Optional `status` filter narrows the result by the first token of the status cell (e.g. 'accepted', 'proposed', 'superseded', 'reserved').

ParameterTypeDescription
statusstringFilter to entries whose status.state equals this value (case-insensitive; trimmed before comparison).

docs-get_adr

Fetch the full markdown body of a specific ADR by number. Resolves the link from the registry against the ecosystem root, so cross-repo ADRs (those whose content lives in a sibling repo) are read from their authoritative source.

ParameterTypeDescription
number *integerADR number (e.g. 24 for ADR-024).

docs-get_template

Fetch one of the canonical decision-doc templates from exeris-docs/templates/. Three kinds: ADR (decision made), RFC (multi-option strategic question), RESEARCH (falsifiable hypothesis, lab-notebook shape).

ParameterTypeDescription
kind *stringTemplate kind: ADR, RFC, or RESEARCH.

docs-get_hla

Fetch the High-Level Architecture document (high-level-architecture.md) from exeris-docs. Canonical narrative of the three-tier model.

docs-get_whitepaper

Fetch the B2B technical whitepaper (b2b-technical-whitepaper.md) from exeris-docs.

docs-list_repos

List sibling Exeris repos under the ecosystem root that publish a `docs/` directory. Returned names are usable as `repo` input to `docs-list_repo_docs` and `docs-get_repo_doc`.

docs-list_repo_docs

List markdown documents under `<repo>/docs/**` for an Exeris sibling repo. The `adr/` subdirectory is excluded — those are the registry's territory and reachable via `docs-list_adrs` / `docs-get_adr`. Use `docs-list_repos` to discover valid repo names.

ParameterTypeDescription
repo *stringRepo name (e.g. 'exeris-kernel'). Must match /^exeris-[a-z0-9][a-z0-9-]*$/.

docs-get_repo_doc

Fetch a specific markdown document from `<repo>/docs/<path>`. Use `docs-list_repo_docs` to discover valid paths.

ParameterTypeDescription
path *stringPath relative to `<repo>/docs/`, e.g. 'subsystems/bootstrap.md'.
repo *stringRepo name (e.g. 'exeris-kernel'). Must match /^exeris-[a-z0-9][a-z0-9-]*$/.

lsp-list_domains

List all @ExerisDomain types known to the active LSP session.

lsp-describe_domain

Return the source-model description of an @ExerisDomain type: fields, actions, relationships, generated artefacts, and the `sourceDigest` that `lsp-preview_mutation` takes as its concurrency token.

ParameterTypeDescription
qualifiedName *stringFully-qualified Java class name.

lsp-list_actions

List all @Action methods across the workspace, with their owning @ExerisDomain.

lsp-preview_mutation

Preview how the SDK's canonical writer would change an @ExerisDomain source file for one mutation, applied in memory. Returns `{ result, sourcePath, diff }`: a unified diff and the SDK outcome in `result.outcome` — SUCCESS, CONFLICT (the source drifted from the baseline; the result carries baseline, current and intended values), VALIDATION_ERROR, or NO_BASELINE. Nothing is written: apply the diff with your own file tools. For a stale-free preview, pass the entity's last-emitted metadata as `baselineJson` and the `sourceDigest` from `lsp-describe_domain` as `concurrencyToken`.

ParameterTypeDescription
op *objectOne SDK MutationOp, discriminated by `op`: addField, removeField, renameField, changeFieldType, addRelationship, removeRelationship, changeRelationshipCardinality, addAction, removeAction. Every op ca…
qualifiedName *stringFully-qualified Java class name of the target domain.
baselineJsonstringThe entity's last-emitted `target/classes/exeris-metadata/<entity>.json` (see `build-get_domain_metadata`), as a string. The base of the three-way drift check.
concurrencyTokenstringThe `sourceDigest` returned by `lsp-describe_domain` for this domain.

kernel-list_providers

List all SPI providers registered with the running kernel, including driver origin (community/enterprise priority).

kernel-get_bootstrap_dag

Snapshot of the kernel bootstrap dependency DAG — nodes (subsystems) with their phase, declared dependencies, and running state.

kernel-describe_subsystem

Detail for a single kernel subsystem by name (e.g. memory, crypto, persistence, graph, transport, events, flow, http, security).

ParameterTypeDescription
name *stringSubsystem name to describe.

kernel-get_jvm_ergonomics

What the JVM running the kernel actually resolved at startup: selected GC, max/committed heap, visible processors, and the container limits it detected (cgroup CPU quota/period, memory cap, cpuset) plus large-page, CDS and AOT-cache state. Null fields mean the kernel could not determine that value. A kernel that does not implement this answers a snapshot with gcName 'unknown' and -1 byte counts.

build-list_domains

List what this project's last build emitted into target/classes/exeris-metadata: every @ExerisDomain entity, plus the enums, capabilities and views the processor wrote alongside them, each with its kind. Use it to discover names before calling build-get_domain_metadata. A project that has not been built, or has no @ExerisDomain sources, returns present:false rather than an error.

build-get_domain_metadata

Fetch the DomainMetadata JSON the annotation processor emitted for one declaration of this project — the authoritative AST the code generators consume, including fields, actions, events, relationships and the system-field flags. `name` is the Java simple name (e.g. 'Station'), as listed by build-list_domains. Returns the record verbatim, plus the schemaVersion and (when the build could compute one) the ADR-042 sourceDigest.

ParameterTypeDescription
name *stringJava simple name of the entity, enum, capability or view.
kindstringWhich kind of declaration to read. Defaults to 'domain'.

build-explain_artefacts

List the files Exeris codegen has generated into this project, each with the generator that produced it and when that generator emits — handlers, services, repositories, domain errors, event publishers, graph projections, sagas, Flyway migrations, OpenAPI specs, and the project-wide bootstrap. Ask this BEFORE hand-writing SQL, a DTO or a controller for an Exeris entity: the build usually already emits it. Optional `entity` narrows to one entity's artefacts. Reports what the pipeline actually emitted, read from its own output manifest and explained by the generator catalogue exeris-tooling pu…

ParameterTypeDescription
entitystringOptional Java simple name (e.g. 'Station'). Narrows to the artefacts whose filename carries that name; project-wide artefacts are always included.

build-get_detach_state

Report whether this project's generated code is still pipeline-owned (L1, src/main/generated/java — regenerated on every build, so edits are lost) or has been detached into the developer's own sources (L2, src/main/java — owned, safe to edit). Ask this before editing anything under a generated tree. Returns the state, the observations behind it, and how many files the pipeline claims.

build-explain_diagnostic

Decode an error, warning or note exeris-tooling printed — an annotation-processor message, a codegen plugin goal failure or warning, a capability-graph or cap-tier Wall refusal, a missing runtime driver, a code-generation pipeline or CodegenMain line, or an exeris-initializr error. Paste the diagnostic text verbatim; returns what it means, the rule behind it, and what to do. Looks each diagnostic up by its stable EXT- identifier (ADR-095), which exeris-tooling prints from 0.9.0, and falls back to message text only for output that carries none. An identifier with no catalogue entry is named b…

ParameterTypeDescription
text *stringThe diagnostic, pasted verbatim. A whole build log is fine — every recognised diagnostic in it is returned.

build-get_starter

Return the build files for a NEW Exeris application and write none: for 'backend', a pom.xml whose parent is exeris-app-parent and which depends on exeris-app-starter; for 'frontend', a package.json with @exeris/codegen-ts and its exeris-gen generate script; for 'both', the two under backend/ and frontend/. Ask this BEFORE hand-writing a pom.xml or package.json for an Exeris application: the starter already wires the annotation processor, the codegen goals and the dependency set. Every version comes from the exeris-app-bom the bridge was released with, which names one tested tooling + kernel +…

ParameterTypeDescription
variant *stringWhich application to start: 'backend' (Maven), 'frontend' (npm), or 'both' (a backend and a frontend that generates from the backend's build).

build-preview_generation

Preview what the code generator would write for this project's current metadata (target/classes/exeris-metadata), without writing anything into the project. It runs the project's own generator in a separate process — for 'ts' the @exeris/codegen-ts installed in the project's node_modules, confined by Node's permission model to write only its scratch directory; for 'java' the eu.exeris:exeris-codegen-cli jar from the local Maven repository at the version the project pins — never downloaded and never substituted; when none resolves, a structured generator_unavailable with a reason and remedy…

ParameterTypeDescription
target *stringWhich generator to run: 'java' (exeris-codegen-cli) or 'ts' (exeris-gen).

build-validate_brief

Check the pre-construction brief(s) of this project, docs/briefs/<area>.brief.yaml, against the brief schema (ADR-106) and say whether each is ready for authoring. Reads only the brief files, the project's pom.xml (and the app BOM poms it inherits from, read from the local Maven repository), the brief schema and, when present, target/classes/exeris-metadata; writes nothing, starts no process and uses no network, and is local only: the family needs the project root, so private product intent never reaches a hosted endpoint. The schema is the one inside the project's pinned eu.exeris:exeris-sdk-…

ParameterTypeDescription
areastringOptional name of one bounded area (lowercase letters, digits and hyphens): validates docs/briefs/<area>.brief.yaml. A name, never a path.

caps-list_capabilities

List the capability modules composed into this project, from the build-time cap-manifest.json: each module's qualified name, the services it provides with their versions, and which module owns the lifecycle. Also returns initOrder exactly as the manifest states it. A project with no capabilities returns an empty list, not an error.

caps-describe_composition

Report the composition stamp from cap-manifest.json: whether the capability graph validated, the composition version, and the content binding digest, alongside the manifest schema version, the module count and initOrder. Answers 'is this build's composition trustworthy, and which build is it'. A project with no capabilities returns a present:false answer, not an error.

sdk-list_annotations

List Exeris SDK annotations from the authoring contract: name, qualified name, package, targets, retention, and purpose. Supports optional filtering by package (e.g. 'system', 'security', 'capability', or full package name), target (e.g. 'METHOD', 'TYPE', 'FIELD'), or query string.

ParameterTypeDescription
packagestringOptional package filter, e.g. 'system', 'security', 'capability', or full package name.
querystringOptional case-insensitive search string matching annotation name or purpose.
targetstringOptional ElementType target filter, e.g. 'TYPE', 'METHOD', 'FIELD', 'PARAMETER'.

sdk-describe_annotation

Describe a specific Exeris SDK annotation: simple and qualified name, owning package rationale, targets, retention, purpose, detailed description, all attributes (with types, defaults, required-ness, descriptions, and deprecations), and annotation-level deprecation status.

ParameterTypeDescription
annotation *stringThe annotation name to inspect. Accepts simple name (e.g. 'ExerisDomain', 'Field', 'Validation') or fully-qualified name (e.g. 'eu.exeris.sdk.annotation.ExerisDomain'). Case-insensitive.

sdk-get_scoping_rules

Get canonical authoring contract scoping rules for Exeris SDK annotations (including @Field vs @Validation split, FieldMetadata as single AST carrier per ADR-054, derived SQL NOT NULL and API not-blank generator semantics, form lifecycle scoping, deprecations, and sibling vs nested form trap). Supports optional filtering by rule ID or query string.

ParameterTypeDescription
rulestringOptional rule identifier (e.g. 'field-vs-validation-split', 'single-ast-carrier', 'derived-nullability-semantics', 'form-lifecycle-scoping', 'deprecation-fallbacks', 'nested-form-trap') or search quer…

sdk-list_deprecations

List all deprecated Exeris SDK annotations and attributes across the authoring contract, including replacement guidance, since version, and forRemoval status. Supports filtering by package or forRemoval only.

ParameterTypeDescription
forRemovalOnlybooleanIf true, only returns items marked for removal (forRemoval: true). Defaults to false.
packagestringOptional package filter (e.g. 'system', 'security', 'capability', or full package name).

sdk-get_ast_schema

Get JSON Schema for the Exeris build-time DomainMetadata AST and sibling records. If 'definition' is omitted, returns the top-level schema envelope, reader requirements (such as Jackson 3 constraints), and definition list. If 'definition' is specified (e.g. 'DomainMetadata', 'FieldMetadata', 'ActionMetadata'), returns the schema definition for that specific record.

ParameterTypeDescription
definitionstringOptional AST definition name (e.g. 'DomainMetadata', 'FieldMetadata', 'ActionMetadata').

bridge-version

Identify this MCP server: package name and version, the Node runtime it is running on, which persona mode it resolved to, and what bundled reference data it carries. Use it to confirm which bridge build an answer came from, and which upstream release that data reflects.

bridge-health

Report which tool families can serve requests and why the others cannot. Each family carries its state and, when unavailable, the reason and the remedy. Families backed by a child process also report that process's current state — without starting it. Call this first when a tool returns 'family_unavailable'.